Sometimes when i go to exit my app using an in game exit button on the main menu it will freeze, just wondering if anyone else is having this same problem on android. I am using os.exit(). It is being called from a simple touch listener attached to the word exit. It does not crash all the time only sometimes. I am aware of the issues of calling exit on ios and i might just take it out for android also but i was wondering if anyone else was having this problem or if anyone has any suggestions for how to close the app another way? [import]uid: 126161 topic_id: 24742 reply_id: 324742[/import]
Try this one: native.requestExit()
See Joshua’s post regarding this:
http://developer.anscamobile.com/forum/2012/01/13/osexit-command-makes-simulator-crash#comment-79914
Naomi [import]uid: 67217 topic_id: 24742 reply_id: 100342[/import]
Thanks Naomi worked like a charm! [import]uid: 126161 topic_id: 24742 reply_id: 100447[/import]