Android Question Debugging an APP in release mode

JakeBullet70

Well-Known Member
Licensed User
Longtime User
I have an APP that works in debug mode but fails in release mode. No error on the screen or anything, just terminates to Android.

How does one debug this?
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
How do you connect to the device to see the unfiltered logs? Do I need the B4A bridge? Everything seems to work when B4A bridge is running.
I have tried to connect with USB but it does not seem to work or I am doing something wrong.
 
Upvote 0

MarcRB

Active Member
Licensed User
Longtime User
I know it is a bad way, but if there is no better way, it will help you. :

You can place some messageboxes with test-a, test-b, test-c, test-d, test-e, test-f......in each logical step of your app.
Now you can find the moment when it crashed. After finding for example it comes to test-G. you can set some other messages after the G area to find the exact line. If needed you can show some values in the messagbox too.
Tip: If you place some prefix in your messagetext like 'test-' you can find all those lines very easy by the search function, so you can be sure you removed all those lines before creating a serious release.
 
Upvote 0

WAZUMBi

Well-Known Member
Licensed User
Longtime User
Don't know if this relates to your issue but I've had this happen when I include multi-track audio files.
The app crashes on some devices that (apparently) do not support these types of sound files.
The files have to be converted to mono.

I've also had this happen when I fail to comment out log commands. Not really sure why...
 
Upvote 0

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Don't know if this relates to your issue but I've had this happen when I include multi-track audio files.
The app crashes on some devices that (apparently) do not support these types of sound files.
The files have to be converted to mono.

I've also had this happen when I fail to comment out log commands. Not really sure why...

Good call. Yes, I have it working now just by changing an MP3 file. No idea why it works in debug mode. I have 3 test tablets (4.01, 4.2, 4.4) and they all react differently. What a PAIN!!!!!

Wondering if it is better to use only use WAV files? What program did you use to fix your sound files?
 
Upvote 0
Top