rbarker Posted May 13, 2019 Share Posted May 13, 2019 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? Link to comment Share on other sites More sharing options...
Tony PH Lin Posted May 14, 2019 Share Posted May 14, 2019 Maybe you can try this. https://developer.android.com/reference/android/app/Activity.html#finish() Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now