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++ - libcurl curl_easy_setopt "Unknown error" -

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