Author Topic: Android Dev Related Issues / Bugs  (Read 958 times)

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1810
    • View Profile
Android Dev Related Issues / Bugs
« on: 2020-Mar-07 »
Thought it would be good to have a bug topic for the Android Stuff...

Let me kick it off ...

My app is reporting errors for some devices with Tilt Changes...not sure if related to the admob action in the Tilt but it is a the most common of the crashes to date...still low though...

Here is the offending line on SDLSurface code

 Line 1903:   SDLGlbasic.TiltSensor(-x / SensorManager.GRAVITY_EARTH,y / SensorManager.GRAVITY_EARTH,event.values[2] / SensorManager.GRAVITY_EARTH); //****GLBASIC****

  at (
  at (
  at (
  at android.hardware.SystemSensorManager$SensorEventQueue.dispatchSensorEvent (
  at android.os.MessageQueue.nativePollOnce (Native Method)
  at (
  at android.os.Looper.loop (
  at (
  at java.lang.reflect.Method.invoke (Native Method)
  at$ (
  at (
Speccy-48k, Speccy-128k, Amigas, PCs

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4025
    • View Profile
    • Space Fractal
Re: Android Dev Related Issues / Bugs
« Reply #1 on: 2020-Mar-08 »
Me guess: You have property tried to show a ad before the ads even have been init (which sometimes can take a while). this can happens if you launch a ads too early, etc on launch.

This why im actuelly diddent show a ad in startup in Genius Greedy Mouse, but first do that much later when you leave a level.

Howover, just add a nullpointercheck to avoid it in public void show(int status), and then its fixed. etc mInterstitialAd object does first create after a init has been done.... which is done asyncon.

PS. Fixed in next release. its does now first try to show the ads after the init have been property done and a load has been loaded. If a ads has newer been loaded, then its will fails gracefull with no ads to been show (and you can checkout its status).
« Last Edit: 2020-Mar-08 by spacefractal »
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation and The beagle Jam.