My app is composed by 2 Activities:
- Splash
- Main
Splash intent filters are:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
Launch modes are: Splash: not defined Main: singleTask
Follow the steps below:
- My App is closed
- Open GoogleMap
- Select a location on the chart
- Tap on share
- Select my App
The app is opened as expected and the flow (coming from log added) is:
- Splash.onCreate
- Splash.onResume
- Splash.onPause
- Main.onCreate
- Main.onResume
- Splash.onDestroy
Now put the app in background and reopen Google Map and share a new location using my App. The app is opened as expected but the flow is:
- Main.onResume
Nothing more.
The behaviour changes if my App is opened the first time by the User and after that the User starts to interact with Google Map Share feature. Please find below the flow about the latest scenario:
- Splash.onCreate
- Splash.onResume
- Splash.onPause
- Main.onNewIntent
- Main.onResume
- Splash.onDestroy
I cannot change the activities launch flags.
Have you any idea about why I have only onResume in the flow?
Thanks.