Created by: d-mariano
I have created a method quit()
in AIMSICD.java
, which creates an intent with FLAG_ACTIVITY_TOP_CLEAR
to clear all activities above the main activity, before starting the main activity. The main activity is passed an extra "EXIT" through the intent, and tests this extra in onCreate()
. If quit was selected, the activity will finish. This stops the services and exits the app. The app still remains in recent apps, however, and may be relaunched this way.