Here is my scenarios:
- The user opens the app and uses it => the app is in one of its screens
- The user moves the app in the background by using the Home key
- The user starts the browsing and browses on my site. Withing the website, certain links open the app
- The user clicks on a link in the browser and the app is started, BUT even if activity is onPause, it is not being resumed, but started all over again, so the current session is being lost.
My main activity is using intent filter data so I've added:
<activity android:name=".HomeActivity"
<intent-filter>
<data android:scheme="myprop" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
so when the user clicks a custom url in the browser, my app wakes up and starts the activity.
So as I stated before, if my HomeActivity
is onPause
(meaning that the user already used it) is it possible to simply resume it (and of course parse the myprop parameters) while keeping the current user progress ?