Create a Release-Ready APK/AAB Package with Flutter in Visual Studio Code

Create a Release-Ready APK/AAB Package with Flutter in Visual Studio Code

Tiempo de lectura: 2 minutos Today we are going to learn how we can generate an APK or AAB to distribute or publish our application to the app store using Flutter and VS Code. We have to create an application signing file with the following command: keytool -genkey -v -keystore ~/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias upload Indicate … Read more

Transform Android XML Vector to SVG Using the Command Line

Transform Android XML Vector to SVG Using the Command Line

Tiempo de lectura: < 1 minuto We will learn today how to transform an Android XML vector into a vector in SVG format using the command line. With the vector in SVG, we can use it both in React, Flutter or Web. First, we will install this library (if we want to use the web version): npm install -g vector-drawable-to-svg Once … Read more

Install and use Android ADB on Ubuntu

Install and use Android ADB on Ubuntu

Tiempo de lectura: < 1 minuto We’re going to learn how to install Android ADB on Ubuntu today. Android ADB (Android Debug Bridge) is a versatile tool that enables communication between a computer and an Android device. ADB is part of the Android Software Development Kit (SDK) and offers a range of useful features for both developers and advanced users. Here … Read more

The Best Open Source Program for Screen Sharing Between Your Android Device and PC (SCRCPY)

The Best Open Source Program for Screen Sharing Between Your Android Device and PC (SCRCPY)

Tiempo de lectura: 3 minutos If we want to share our mobile screen with our computer, we have several options including SCRCPY. SCRCPY is an open-source program that you can download from GitHub, helping you share your Android device screen with your PC. I love this program because it offers the following: It allows turning off the device screen while … Read more

Fix error in scrcpy: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

Fix error in scrcpy: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission

Tiempo de lectura: < 1 minuto   When using the SCRCPY program to screen share with our device, you may encounter the error: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission To solve this, you’ll need to do the following: Go to Developer Options > USB Debugging (Security Settings). You must enable this option. Finally, restart the device. DevCodeLightdevcodelight.com

Fixing error Could not find Ninja on PATH or in SDK CMake bin folders in React Native with Expo

Fixing error Could not find Ninja on PATH or in SDK CMake bin folders in React Native with Expo

Tiempo de lectura: < 1 minuto Today we are going to solve the following error: A problem occurred evaluating project ‘expo’. A problem occurred configuring project ‘expo-modules-core’. [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders. This error occurs when we try to generate the development build with Expo: npx run:android To solve this error, we need … Read more

SDK Location Not Found Error in React Native

SDK Location Not Found Error in React Native

Tiempo de lectura: < 1 minuto If we encounter this error while trying to generate an apk of a React Native application SDK location not found Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project’s local properties file, we need to do the following to fix it. Now we will create … Read more

Create Admob App Loading Ad on Android

Create Admob App Loading Ad on Android

Tiempo de lectura: 2 minutos Today we are going to learn how to create an app loading ad with Admob on Android. First, we will implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And add in the manifest (below </application>) … Read more

Create Admob Interstitial Ad on Android

Tiempo de lectura: 2 minutos Today we’re going to learn how to implement an Interstitial ad on Android using Java. First, we’ll implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then, we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And add in the manifest (below </application>): <meta-data android:name=”com.google.android.gms.ads.AD_MANAGER_APP” android:value=”true” … Read more

Create rewarded Admob ad on Android

Create rewarded Admob ad on Android

Tiempo de lectura: 2 minutos Today we’re going to learn how to add a rewarded Admob ad on Android using Java. First, we’ll implement in our build.gradle: implementation ‘com.google.android.gms:play-services-ads:23.0.0’ Then we need to initialize the ads in our MainActivity: MobileAds.initialize( this, new OnInitializationCompleteListener() { @Override public void onInitializationComplete(InitializationStatus initializationStatus) {} }); And we add in the manifest (below </application>) <meta-data … Read more