Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / APK export from IDE doesn't always work

Author
Message
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 12th Dec 2014 09:23
I'm finding that APK's exported from the IDE are not 100% reliable.

code that is broadcast to the player and works fine, doesn't always seem to work when exported as an APK.

It seems random, and I haven't been able to track a reason. (i'm doing this from a MAC)

Also, sometimes iOS doesn't work at all and won't read the code signing file. If you reset the IDE it will read the file.
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Dec 2014 08:29
I'm still finding that APK's made with the export from IDE are unstable.

Maybe this is a problem that only occurs with the MAC version of the IDE?
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Dec 2014 11:22
I also don't think this is limited to just APKs. I am also having an issue with IPA's exported from the IDE on MAC.

I seem to get random crashes, that don't occur when the app is played via the player / broadcast.

These are all built using alpha 9.
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 15th Dec 2014 11:47
Can you build the same project on a PC and Mac and compare the APKs?

-- Jim - When is there going to be a release?
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Dec 2014 11:53
I need to do some more testing, but I think the crashes occur when there is any write access to storage.

I'll try building from the PC, and from Eclipse to check it.
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 15th Dec 2014 12:03
Hi

Do you use setfolder() or code like that (getnextfile()...) in your appli ?

I have seen that in some of my application, it works fine with the Player and crash when I make an APK (windows8 -> android). In some case, it was because I use SetFolder() and other "File/Folder" feature, to read or write a file in the media folder.
For setFolder(), the doc explain that, in android, we have to create the same folder hierarchy in the media (write) like in the media folder (read).

http://www.dracaena-studio.com
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Dec 2014 12:53
No, I don't use setfolder() or Getnextfile().
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 15th Dec 2014 17:28
I haven't seen this happen, if you get an APK that crashes can you email it to me so I can debug it? Also the source for the project used to create it might be helpful in tracking it down.
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 15th Dec 2014 18:13
I've emailed you the apk and all the project files.


Thanks.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Dec 2014 05:00 Edited at: 16th Dec 2014 05:06
Thanks, I think I found the problem. The app was generating an array out of bounds error which was closing the app instead of displaying the error. The reason it only happened in the exported app is because exported Android apps are case sensitive and some of the image paths have different cases in the file system and the tier 1 code. In most cases a broadcast app will display the runtime error at the same place as the exported app just closes. I'll fix this in the next version so exported apps display the runtime error message properly.
paulrobson
10
Years of Service
User Offline
Joined: 22nd Nov 2014
Location: Norfolk, England
Posted: 16th Dec 2014 09:25
This is a point worth emphasising - given the variable case sensitivity it is probably a good idea to have all your media file names in lower case throughout unless absolutely essential.

Login to post a reply

Server time is: 2024-11-25 13:40:47
Your offset time is: 2024-11-25 13:40:47