Android Question Create different APK files for DEBUG and RELEASE

Derek Johnson

Active Member
Licensed User
Longtime User
I'd like to automatically create different installed versions of my app when I run in Debug mode or Release mode eg Install MyApp.apk in release mode and MyApp-Debug.apk in Debug mode.

This is so that when I disconnect my USB connection to the device I can still run the last Release version of the code that I created.

I'm pretty certain that this can be done with Custom Build Actions, after the complile but I'm unsure exactly what to specify.

Derek
 

RichardN

Well-Known Member
Licensed User
Longtime User
Small problem Derek.....

The device must remain connected to B4A in both USB debug mode and Bridge debug mode, otherwise it won't run.
 
Upvote 0

Derek Johnson

Active Member
Licensed User
Longtime User
Small problem Derek.....

The device must remain connected to B4A in both USB debug mode and Bridge debug mode, otherwise it won't run.

Yes, that is the point. When I'm making frequent changes to the code during development, I often disconnect my device from the PC but want to try a reasonably up to date version, and then I could run the last version created in Release mode.
 
Upvote 0
Top