When setting to a single instance, the Activity does not allow another Activity to update it using the Activity for results method. What is the flag I should set so that I do not have to remove the initial launch mode as single instance?

Note: I am using another activity as an image loader, that updates the launcher activity. Launcher activity should be a single instance, because I am using it to notify using the status bar.

This is a challenge, so I can not use another activity for notifications.

有帮助吗?

解决方案

Yes, even I faced the same problem. That's why I was not able to use Activity for results with the launch mode as a single instance as I found I get the call on onActivityResult as the acivity B starts.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top