Proper way to exit native application from Java?

rbarker
Explorer

Proper way to exit native application from Java?

We need to kill the application some times from Java. I've tried calling both System.exit(0); and Process.killProcess(Process.myPid());

 

Both seem to cause the AcitivyManager to restart the application. Is there a way to prevent this?

Vive Staff

Re: Proper way to exit native application from Java?