Hi,
My game runs fine on my PC and on my phone when using Gideros Android player.
Unfortunately when trying to start it on my phone from an actual apk, it instantly closes itself.
I tried another phone, there it was the same behaviour.
The two phones are [OnePlus One -> CyanogenMod 12.0/Android 5.0.2] and [HTC One Mini -> Android 4.4.2]
I'm currently running the latest version of Gideros studio, but up to today I was using 2014-04. (The error was my reason to update, but it happens in both versions)
I checked if something's wrong with my Eclipse setup, but I was able to deploy and start another simple app I wrote recently, without any troubles. So it has to be something in my game code.
I really don't know where to start, because when I tested my game locally or on phone via the Gideros software, everything was fine. Are there any known 'bad practices' to avoid when going to android? In the beginning, I'm creating about 200 fonts within loops. Can't imagine that this would crash the app though.
Comments
Also plug the phone via usb into a PC then send the program across using Eclipse (using run) - you should get debug messages explaining the crash.
Likes: Holonist
https://deluxepixel.com
So for example if you have image.PNG file and you use it as image.png it will work on Desktop, but will crash on Android
If you dont see this popup window then check your phones drivers.
Likes: Holonist
I was able to make a 'run' on my phone and get a logcat output.
I'm adding it as txt file.
I'd be glad if you guys would take a look at it.
In the beginning it says "fileNotFoundException" quite often. Are folders/files with a leading '_' not allowed?
(The files do exist when I look for them in the imported eclipse project)
1) check if file really exists in your apk
2) check if whole path name case is the same as you use
3) if both previous are yes, then probably _ is not allowed
Likes: SinisterSoft