10-24-2012 01:18 PM
I have made a game on Android platform.
There is an exit button which uses intent to launch Home screen of Android and finishes the activity on press of this button.
While porting it to BB10 Dev Alpha Device and Playbook, it gives me error for openning home screen. So Ihave commented this part in Blackberry. I just finish the activity and call System.exit(0);
This is not the right way of exiting the app as Android don't support such ways.
Is there any way I can exit my Android game on press of my Exit button?
Any best practice for such events while porting ?