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 -

Python ctypes access violation with const pointer arguments -