The update-alternatives is used to handle situations where multiple applications that accomplish the same task are installed on the system, but we would like to set a default on which one to be used….. I moved the JDK from another
Android Studio – Automatically sign the apk in debug mode
Android Studio no longer automatically signs the apk when pressing the “Run” button in debug mode. That makes it challenging to develop and test on a physical devise, especially when the signature of the apk is required for some functions
Gradle fails after upgrading Android Studio to 3.2.1 with “Could not find aapt2-proto.jar”
Almost every other time I go through an Android Studio upgrade, my projects no longer compile and I spend an hour or so trying to figure out what was wrong or what I need to change. Due to this reason
How to connect your Android phone to Ubuntu to do development, testing, installations or tethering – Updated
All the way back in 2010 I wrote a post how to connect your Android device to your Ubuntu computer in order to develop on it. There have been a few changes since then, so here is the updated version
Gradle – Automatically rename the .apk file and copy the ProGuard mapping.txt file
ProGuard writes the mapping file under the build directory of the project. Under normal circumstances all files and directories under the build dirs are excluded from version control. That is a bit of an issue if you want to be able to save that file with every release build. I always forget to this manually. So, let’s do that at build time with Gradle and while we are at it, we might as well rename our apk file, so we don’t have to do that manually either.
The Android SDK Manager fails to fetch the platform and tools list from Google
If you get the following error message when launching the Android SDK Manager: Failed to fetch URL https://dl.google.com/android/repository/addons_list-2.xml, reason: File not found most likely the owner/permissions are not set correctly for the ~/.android directory. This error message is very confusing
Android Studio- What files and directories to exclude when importing into Subversion (or Git)
Update Oct. 17, 2019: ——————— This is the official .gitignore file maintained by JetBrains: https://github.com/github/gitignore/blob/master/Global/JetBrains.gitignore ——————— List of directories and files to be excluded when importing into a version control (relative to the root of the project): .gradle (directory) build
In-app Billing API v3 throws IllegalStateException
If you have followed Google’s instructions when implementing version 3 of the Android’s in-app billing API by exploring their TrivialDrive sample app, you probably have come upon some numerous IllegalStateExceptions, like these: java.lang.IllegalStateException: Can’t start async operation (consume) because another
How to detect a user pan/touch/drag on Android Map v2
If you are impatient, you can skip directly to the solution. The new implementation of the Android Map (v2) is great in many ways and their support for map fragments is awesome, but they fall a bit short in a
Implementing Android GCM in a different package other than the main application package
There is something you need to be aware of if you are placing your GCM (Google Cloud Messaging, aka push notifications) service (the one extending from GCMBaseIntentService) in a package other than the main application package. The default implementation of