Use system.exit to on exit

This commit is contained in:
Pavol Zibrita 2011-09-10 06:45:13 +02:00
parent 368e0014bb
commit 41787d7e1e

View file

@ -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
}
});