onActivityResult do not fire if launch mode of activity is singleInstance

前端 未结 5 1848
無奈伤痛
無奈伤痛 2020-12-02 20:52

I have an Activity which is basically my main activity and its launch mode is single instance. But because of singleInstance, the onActivityResult() callback do

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 21:19

    If an activity is singleInstance, it will be the only one in the task so it always be the top of the task. So when you call startActivityForResult it will fire the callback method immediately.

提交回复
热议问题