Use system.exit to on exit
This commit is contained in:
parent
368e0014bb
commit
41787d7e1e
1 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,9 @@ public class MainMenuActivity extends Activity {
|
|||
((OsmandApplication) activity.getApplication()).closeApplication();
|
||||
//moveTaskToBack(true);
|
||||
activity.finish();
|
||||
//http://stackoverflow.com/questions/2092951/how-to-close-android-application
|
||||
System.runFinalizersOnExit(true); //if any threads are running, they will prevent app from exit
|
||||
System.exit(0); //exit
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue