Reputation: 1851
The application brings up the startup intent
. The startup intent
does some checks for updates. After the process is completed a new intent
is loaded and the old one is finish()
.
When a user minimizes
the application and then brings the application back to focus
the first intent
is loaded and the process checking for updates starts again.
How do I bring the intent
the user had last back?
Upvotes: 0
Views: 84
Reputation: 1107
Add this to activity in AndroidManifest.xml
android:launchMode="singleInstance"
So it should look like this:
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleInstance" />
Upvotes: 2