Re: [android-developers] How to stop terminate the Android application when using the native code

2012-07-20 Thread Clark kent
I know, i can disable it, so it will work, but i'd like to let the app can run many times again. So i disable the exit(), but when call the second times, it generates errors. Could you help? Thanks Clark On Sunday, July 15, 2012 5:52:38 AM UTC+7, Dianne Hackborn wrote: You just need to fix

Re: [android-developers] How to stop terminate the Android application when using the native code

2012-07-20 Thread Justin Anderson
I know, i can disable it, so it will work, but i'd like to let the app can run many times again. So i disable the exit(), but when call the second times, it generates errors. Could you help? Debug your code, find the cause of the errors, and fix them... Thanks, Justin Anderson MagouyaWare

[android-developers] How to stop terminate the Android application when using the native code

2012-07-14 Thread Clark kent
Hello every body I have this problem which can not resolve it. I'm calling the native code(*C code*) from the android application. But in the native code, they call function *exit(0)* so it makes the app on Android terminate. Could any one know how to stop this one, because after i called

Re: [android-developers] How to stop terminate the Android application when using the native code

2012-07-14 Thread Dianne Hackborn
You just need to fix your native code so it doesn't do this. Anyone giving you a native library that is calling exit() in it is an evil sadist. :p On Fri, Jul 13, 2012 at 3:02 AM, Clark kent nguyenle...@gmail.com wrote: Hello every body I have this problem which can not resolve it. I'm