Searched and not found solution. Does anyone have same problem and find a way to resolve it?
Having activity (with launchMode="singleTask") which handles the sharing.
When activity is running, open camera app to do sharing through this app. This activity's onNewIntent(Intent intent) is called with Intent { act=android.intent.action.SEND...}. The sharing request is handled, so far so good.
Then hit "Back" button to dismiss the app. Now open the running app tray (long press the home button) and pick this app to open it.
The app's activity onCreate() is called with savedInstanceState==null, and the same intent for last sharing request is passed in: { act=android.intent.action.SEND ...}.
In this case it will always open the app in handling some sharing request, which has been already handled before.
Is there way to avoid the consumed intent to be passed in again?
Thanks! /L