GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2018-Mar-12

Title: Android Crashes reduced!
Post by: MrPlow on 2018-Mar-12
Reduced majority of crashing issues for one of my problem apps!

The app was reported to be crashing 8% of sesssions on Android.

Now it is less than 1% - I wasn't even sure to trust the Google stats as no users are reporting crashes or giving bad reviews due to crashes but anyhow even if the stats are only improved it all helps!

The issue might be done to a few things but the biggest change I did was removing the Virtual Keyboard in AE.
Instead I coded my own high score capture for the name. Others have said there are a few bugs in VKeyboard such as it shows your android menu panel after 1st use etc.

Removing (not using) this I suspect fixed a great deal of the crashing issues.

Just thought I would share with other Android devs on here.



Title: Re: Android Crashes reduced!
Post by: spacefractal on 2018-Mar-12
Im guess this could due unsupported Unicode chars caused it. Glbasic does not support them.

I'm personally have newer used it at all, and property could remove it for eventuelly stability reasons.

Could been working a "useKey" statement in Android manifest if want to use it. Im can do that.
Title: Re: Android Crashes reduced!
Post by: MrPlow on 2018-Mar-13
Another possibility I was thinking about,  is that with the menu bar showing it could causes touch conflicts...
Especially if your touch controls are near the bottom of the screen too.

Title: Re: Android Crashes reduced!
Post by: Youkaisan on 2018-Mar-15
I'd pay for a Unicode version/addon for GLBasic, it's essential for modern applications.
Title: Re: Android Crashes reduced!
Post by: spacefractal on 2018-Mar-15
Techical 16bit strings is all ready supported, but we still use old school 8bit bitmap fonts.
Title: Re: Android Crashes reduced!
Post by: MrPlow on 2018-Apr-16
Hi All

Just an update on my adventures in crash reduction for Android...I think I am getting somewhere now...

Some tips to avoid unnecessary crashing:

Add for Internet / Admob ads:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Remove: (Might help Wake lock background issues - my other apps that don't have this have less wake lock issues)
uses-permission android:name="android.permission.WAKE_LOCK" />

Also,
I think the music.play from AE  v2.9 is causing crashing.
Avoid any music and sound commands in GLB_ON_PAUSE and GLB_ON_RESUME

Hope this helps