Re: [android-developers] question about the proper way of quitting the program

2010-12-03 Thread sunskyor sunskyor
for java layer, you can use following methods to "real" exit your application. 1.ActivityManager.resetPackage 2. android.os.Process.killProcess(android.os.Process .myPid()); for ndk layer, maybe you can kill your prcoess too? 2010/12/3 billconan > Hello guys, > > I'm working on a game, mainly b

[android-developers] question about the proper way of quitting the program

2010-12-02 Thread billconan
Hello guys, I'm working on a game, mainly based on NDK. I now have a problem of how to quit the application. Right now, i just implement my own function to handle the "back" button. inside that function, I simply call the activity.finish() api to finish the activity that uses my C++ code. However,