Android Question Compiling an APK to test away from the PC

oliverm

Member
Licensed User
Longtime User
Is there a way to compile an APK to take away from the PC? I'm not fussed about it being signed, it's not for release, just to test whilst I'm on the train and the likes and not running the IDE.

Olly
 

Beja

Expert
Licensed User
Longtime User
I understand that you want to compile the App and install it in your phone or tablet, right?
if so the answer is yes.
After compiling the App, close the IDE and open the "Objects" folder.. you will see the compiled APP "xxx.apk"
(xxx is the name of your b4a project and also the apk). then connect your device in the computer and copy the apk
file in the downloads folder (or any other folder that you can remember). And finally disconnect your device from
the computer and open the apk from that folder in your device and follow the installation instructions.
I hope this is what you wanted and didn't waste your time.
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
Another option would be connect your device to PC using USB debugging mode or via B4A Bridge ... and compile in release mode direct to device.
 
Upvote 0

oliverm

Member
Licensed User
Longtime User
MJ, how can I compile direct to device? I've tried compiling in release mode but when I when stop Bridge the app stops running. I want to be able to run it like any other app.

Would be good to have a "Compile and Send APK to device" and have the bridge put the APK in the Downloads folder on the device.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
( and have the bridge put the APK in the Downloads folder on the device.)

Why don't you just copy the apk from the Objects folder in your PC to the download folder in the phone?
it is like copying a file from the desktop to a flash memory disk. then you can compile it by clicking on it, or share it with others.
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
When you compile a project either with a USB connection or with B4A_Bridge the apk file is automatically copied onto the device !
It is in the program list on the device with its ApplicationLabel.
You should compile in Release mode, otherwise you will see a message 'Waiting for Debugger ...'.
Cilck on the square area with six or nine dots to display all the installed programs, your is in there.
 
Upvote 0
Top