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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

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