Which Programming Language to Learn?

Which Programming Language to Learn?

Tiempo de lectura: 2 minutos Reading time: 2 minutes The world of programming is constantly evolving, with a wide variety of programming languages available. Beginners often feel overwhelmed when trying to decide which language to learn. However, there is no simple, universal answer to this question, as it depends on many factors such as your learning goals, personal interests, and … Read more

Adding phpMyAdmin to a Visual Studio Code project using Ubuntu console on Windows with WSL/WSL2 for FastAPI

Adding phpMyAdmin to a Visual Studio Code project using Ubuntu console on Windows with WSL/WSL2 for FastAPI

Tiempo de lectura: < 1 minuto Reading time: < 1 minute You must have Ubuntu installed on Windows, a project created in Visual Studio Code, and Python installed beforehand. Here are the following helpful links: Install Ubuntu on Windows Create project in Visual Studio using commands in Ubuntu Install Python3 First, I install XAMPP for Linux: sudo chmod +x xampp-linux-x64-8.1.12-0-installer.run sudo ... Read more

Error in getSku when updating Google Play Billing to version 5

Error in getSku when updating Google Play Billing to version 5

Tiempo de lectura: < 1 minuto Reading time: < 1 minute When we update the Google Play Billing library to version 5: com.android.billingclient:billing:5.1.0 We may encounter the following issue: This is because now, to obtain the purchased product code, we no longer call the getSku() function. Instead, when iterating through the list of purchases, we need to call it in the ... Read more

Fixing Error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. When Generating APK or Executing in Android.

Fixing Error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. When Generating APK or Executing in Android.

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes If you encounter the following error when generating or running your APK: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. You can solve it by adding the following: First, go to your build.gradle file. Scroll down to the dependencies ... Read more

Fixing INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Error when Upgrading to targetSDKVersion 31 in Android

Fixing INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Error when Upgrading to targetSDKVersion 31 in Android

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes If changing the target version of Android to 31 gives us the following error: Installation did not succeed.The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl620487180.tmp/base.apk (at Binary XML file line #82): We need to do the following: Go to the AndroidManifest.xml ... Read more

Force Screen Refresh on Screen Change with React Navigation in React Native

Force Screen Refresh on Screen Change with React Navigation in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we want to force a screen to reload when it changes or is opened again in React Native, follow these steps: In our screen stack, add the following property: options={{unmountOnBlur: true}} By adding this property, unmountOnBlur will unmount the component and remount it every time we open it, ensuring ... Read more

Refreshing a FlatList in React Native

Refreshing a FlatList in React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute If we remove or add a new item to a FlatList in React Native, we need to follow these steps: First, we need to create a boolean state: const [refreshing, setRefreshing] = React.useState(false); Then, we assign it to the FlatList using the extraData attribute: <FlatList data={itemList} extraData={refreshing} renderItem={({ item }) ... Read more

Get language from Android or iOS device or web browser using React Native

Get language from Android or iOS device or web browser using React Native

Tiempo de lectura: < 1 minuto Reading time: < 1 minute To obtain the device language using React Native, we need to use the following method: First, we import the Platform and NativeModules methods from react-native. import { Platform, NativeModules } from ‘react-native’; And with the following method, we obtain the language: function getLanguage() { try { const deviceLanguage = Platform.OS … Read more

Adding icons in Tab Navigator in React Native.

Adding icons in Tab Navigator in React Native.

Tiempo de lectura: < 1 minuto Reading Time: < 1 minute When we create a Tab Navigator by default, it appears without icons: Based on this code: <NavigationContainer> <Tab.Navigator initialRouteName=”Home”> <Tab.Screen name=”Home” component={Home} /> <Tab.Screen name=”Buscar” component={MisCursos} /> <Tab.Screen name=”Perfil” component={Perfil} /> </Tab.Navigator> </NavigationContainer> If we want to add icons, we can do the following. We will use a library that … Read more

Add Top Tab Navigation using React Native

Add Top Tab Navigation using React Native

Tiempo de lectura: 2 minutos Reading time: < 1 minutes If you want to add a Top Tab Navigation using React Native to achieve the result shown in this image: First, you need to install the necessary dependency (remember to install React Navigation first): npm install npm install @react-navigation/material-top-tabs react-native-tab-view --save Once installed, it is used in the same way ... Read more