Posts tagged " Android "

Logging in Android

July 6th, 2017 Posted by Embarcadero, Mobile 4 comments

RAD Studio’s ability to do remote debugging of Android apps on device is fantastic for tracking down issues. However sometimes you have issues where the debugger can’t help. Case in point is one of the projects we were doing for a customer recently. The Android portion included a Service, which needed to be auto-started when the Android device booted. It worked fine if it was started manually, but auto-starting at boot resulted in a  crash. We couldn’t use the RAD Studio debugger as it was all over so quickly at boot time. Fortunately we were already logging messages out to the Android logs from within our app, so we were able to track down the problem. How?

Let’s go through the two necessary pieces:

  • Logging a Message
  • Viewing the Android log

(more…)

Hey RAD Studio 10.2 Tokyo, where’s my adb.exe?

June 28th, 2017 Posted by Embarcadero, Mobile No Comment yet

The RAD Studio installer has been significantly improved over recent releases. One of the newer features is the ability to quickly add and remove Supported Platforms to your installation from within the IDE (see the Tools | Manage Platforms menu in the IDE). The same utility also lets you install other items, like bundled 3rd party tools, other language support and also the Android SDK.

 

However, if you do all of those things, you might be a little puzzled as to why it looks like the Android SDK Tools have not been installed. For example, if you go looking for adb.exe you won’t find it. Search the whole hard drive, it’s just not there. (more…)

Which Keystore was used to sign this Android App?

October 13th, 2016 Posted by Embarcadero, Mobile No Comment yet

Recently we were doing some work on an existing RAD Studio Android app for a customer. Their previous developer had let them down so they’d brought it to us to do the next version.

Everything went smoothly until we needed to do an AppStore build. As part of this, you need to specify a keystore file that will be used to sign the APK. Fortunately they had the keystore file and password that the previous Developer had used. Unfortunately, they had two keystore files, and didn’t know which one had been used for the prior version.

This matters a lot, because if we used a different one, the Google Play store would view this as a brand new app, and not an updated version of the old app. That means their current users would not be prompted to download an update, and they would instead have to somehow get them to all uninstall the old one and install the new one. (more…)