[SOLVED] Crashing on Android 6

Previous topic - Next topic

msx

SUB functions removed. Added ALLOWSCAPE FALSE and AUTOPAUSE FALSE.

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

spacefractal

#16
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx

Is it necessary GLB_ON_PAUSE and GLB_ON_RESUME in my code?


Enviado desde mi iPhone utilizando Tapatalk

spacefractal

only if you save and load game progress. otherwise not.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

You need GLB ON PAUSE / RESUME for showing Ads and probably Inapp purchases too :)
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

msx

I have not yet managed to run correctly InApp, so I have not implemented.


Enviado desde mi iPhone utilizando Tapatalk

msx

Fixed up. I had to make a DoesFileExist for each Sprite, Font, File or INI file that I loaded. Now it works fine.

spacefractal

#22
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 :-)
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

msx

#24
Loadmusic, Loadsprite,... not find the files without using DOESFILEEXIST

spacefractal

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).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/