android - When using System.exit() the app does't closes -


i have app in @ home screen onbackpressed() have used system.exit() nither app closes infact gives me forceclose.

home.class

 @override     public void onbackpressed() {         super.onbackpressed ();         system.exit (0);     }   

use finish() method instead of system.exit (0);


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -