Android Question How to test an apk on all versions of Android?

vecino

Well-Known Member
Licensed User
Longtime User
Hello, every now and then I get a call, or an email, from a customer who complains that something is not working.
After a lot of research I discover that the culprit is a change I don't know about in some version of Android that I haven't been able to test.

For example, the latest has been "GetSubscriberId" which now forces me to make changes in the program, notifying all customers to update and register again with a new identifier.

My problem in this case is that I don't have any device with a modern version of Android.
So my question is: how do you test your apk on all versions of Android?
I have three smartphones and three tablets, but the most modern one has Android 6.
Do I have to buy a device with every new Android version? I hope not
Any suggestions?
Thank you.
 

Martin Larsen

Active Member
Licensed User
Longtime User
Apart from my phone running Android 9 I use Genymotion for tests. It is a very fast and effective emulator which works very well. It is very simple to install Google Play services on Genymotion.

As I use Linux, I develop with B4X in VirtualBox running Windows 7. But Genymotion is running directly in Linux. That setup works fine.

If you run Windows of course you just install Genymotion normally.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hi, I've been using Linux forever too. I also use VirtualBox for B4X with win7.
With Genymotion can you change the Android version or is it fixed?
Thank you.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Also, some emulators need a PC running with an Intel CPU (AMD CPU's might not work).
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Also, the Android SDK's emulator allows you to select the Android version:
 
Upvote 0

Martin Larsen

Active Member
Licensed User
Longtime User
With Genymotion can you change the Android version or is it fixed?

You can install as many Android versions as you like. It only takes a minute. You then start the wanted device. You can even start several devices at the same time, for example if you develop apps that talks to each other. Of course, you need enough RAM for this.

I find it much easier to work with Genymotion than the official emulators.
 
Upvote 0

asales

Expert
Licensed User
Longtime User
I have three smartphones and three tablets, but the most modern one has Android 6.
Do I have to buy a device with every new Android version? I hope not
I have old smartphones from Motorola and Samsung and I update with the ROMs available to them.
Now I have devices with Android 5.1, 7.1, 9.0 and 10.0 to make tests.
Better than buy a new device.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
I have old smartphones from Motorola and Samsung and I update with the ROMs available to them.
Now I have devices with Android 5.1, 7.1, 9.0 and 10.0 to make tests.
Better than buy a new device.
That's something I have yet to learn.
Right now, since I don't know him, I think it's too complicated and dangerous.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Well, that's easy, I hadn't thought about linux emulators, I didn't know that at all.
By the way, how do you install your apk to test in the emulator? do you send it by email, ftp, memory card, pendrive...?
 
Upvote 0

Martin Larsen

Active Member
Licensed User
Longtime User
Well, that's easy, I hadn't thought about linux emulators, I didn't know that at all.
By the way, how do you install your apk to test in the emulator? do you send it by email, ftp, memory card, pendrive...?

Usually I just install B4A Bridge in the emulator and then connect the IDE to it. It's like using a normal phone. Alternatively you can simple drag and drop the apk file onto the emulator, then it will install.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Usually I just install B4A Bridge in the emulator and then connect the IDE to it. It's like using a normal phone. Alternatively you can simple drag and drop the apk file onto the emulator, then it will install.
That's great.
Thank you very much.
 
Upvote 0

mcqueccu

Well-Known Member
Licensed User
Longtime User
Upload your APK to Appetize.io and emulate from there.

You will get from Android 4.4 upwards from there, also be able to rotate the screens, choose different device sizes example phones or tablets, take screenshots, etc

You can test you iOS(IPA) files too with it.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Hello, unfortunately, the joy was short-lived. With genymotion I tried 3 different systems and in all of them I always get the following error, when my apk is in the installation process.
It doesn't show any more messages, so I don't know what it is due to.
I'll have to try something else :/

 
Upvote 0

sorex

Expert
Licensed User
Longtime User
what api levels did you define in the manifest?

if you set it higher than the api of the virtual machine I believe you get such errors.
 
Upvote 0

Martin Larsen

Active Member
Licensed User
Longtime User
Also try build in release mode and drag the apk file to genymotion. I use Genymotion on several machines as do someone I work with. I never had this problem.
 
Upvote 0

vecino

Well-Known Member
Licensed User
Longtime User
Sorry, this is exactly it:
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
Because some users have very old devices.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…