Author Topic: [SOLVED] Crashing on Android 6  (Read 5855 times)

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: Crashing on Android 6
« Reply #15 on: 2016-Aug-28 »
SUB functions removed. Added ALLOWSCAPE FALSE and AUTOPAUSE FALSE.

Ian Price says that the app crash inmediately on Android 6. :(

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3684
    • View Profile
    • Space Fractal
Re: Crashing on Android 6
« Reply #16 on: 2016-Aug-28 »
Sub functions sould actually been used for best, etc for saving example (SUB GLB_ON_RESUME and GLB_ON_PAUSE). GLB_ON_QUIT is sometimes called, but not allways. They are best to been used when ALLOWESCAPE is set to FALSE.

Im do still need the crash log, if its a Java or a permission issue.

Virtual machines is not supported, due OpenGl is missing, bt emulators like BlueStacks is supported.

Currectly im do only have Android 5.x.

Ian Price, can you send me the crash logcat from ADB. Im need that to checkout.

PS. Make sure to use the newest Android Extras. Im dont thinks you due, since im have fixed the gps issue some time ago. Its should NOT ask for gps location on newer Android, even when the permission was not set. A strange Android bug really.
« Last Edit: 2016-Aug-28 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: Crashing on Android 6
« Reply #17 on: 2016-Aug-28 »
Is it necessary GLB_ON_PAUSE and GLB_ON_RESUME in my code?


Enviado desde mi iPhone utilizando Tapatalk

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3684
    • View Profile
    • Space Fractal
Re: Crashing on Android 6
« Reply #18 on: 2016-Aug-28 »
only if you save and load game progress. otherwise not.
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: 1539
    • View Profile
Re: Crashing on Android 6
« Reply #19 on: 2016-Aug-29 »
You need GLB ON PAUSE / RESUME for showing Ads and probably Inapp purchases too :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: Crashing on Android 6
« Reply #20 on: 2016-Aug-29 »
I have not yet managed to run correctly InApp, so I have not implemented.


Enviado desde mi iPhone utilizando Tapatalk

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: Crashing on Android 6
« Reply #21 on: 2016-Sep-01 »
Fixed up. I had to make a DoesFileExist for each Sprite, Font, File or INI file that I loaded. Now it works fine.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3684
    • View Profile
    • Space Fractal
Re: [SOLVED] Crashing on Android 6
« Reply #22 on: 2016-Sep-01 »
I'm only did that for data files, not media. But you can make sure.

But I'm will check why OPENFILE fails to call it automatic. Can been a bug :-)
« Last Edit: 2016-Sep-01 by spacefractal »
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3684
    • View Profile
    • Space Fractal
im confirm there is a bug in OPENFILE, its does not call glb_prepare_reading_file(s) correctly. Its only call it on one case. Gernot, you should move it top of the command to make sure its called.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline msx

  • Prof. Inline
  • *****
  • Posts: 773
    • View Profile
Re: [SOLVED] Crashing on Android 6
« Reply #24 on: 2016-Sep-01 »
Loadmusic, Loadsprite,... not find the files without using DOESFILEEXIST
« Last Edit: 2016-Sep-01 by msx »

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3684
    • View Profile
    • Space Fractal
Re: [SOLVED] Crashing on Android 6
« Reply #25 on: 2016-Sep-01 »
can been a newer bug in glb_prepare_reading_file(s). Im checks out. Greedy Mouse do still use glbasic 12 throught. So the path fix might have breaked it?

Howover you could also do a CREATEDIR "Media", which im thinks can been the main isssue (folder not exists). But im will still count a bug.

Please report it in the bug section (even its fixed, its not 100% the right way, since glbasic should have do that automatic, but can been buggy for Android 6).
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.