Author Topic: Android Crashes reduced!  (Read 391 times)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1296
    • View Profile
Android Crashes reduced!
« 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.



Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3442
    • View Profile
    • Space Fractal
Re: Android Crashes reduced!
« Reply #1 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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1296
    • View Profile
Re: Android Crashes reduced!
« Reply #2 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.

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline yoxola

  • Community Developer
  • Mr. Drawsprite
  • ******
  • Posts: 52
    • View Profile
Re: Android Crashes reduced!
« Reply #3 on: 2018-Mar-15 »
I'd pay for a Unicode version/addon for GLBasic, it's essential for modern applications.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3442
    • View Profile
    • Space Fractal
Re: Android Crashes reduced!
« Reply #4 on: 2018-Mar-15 »
Techical 16bit strings is all ready supported, but we still use old school 8bit bitmap fonts.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1296
    • View Profile
Re: Android Crashes reduced!
« Reply #5 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



Comp:
Speccy-48k, Speccy-128k, Amigas, PCs