Android - startActivityForResult immediately triggering onActivityResult

前端 未结 13 1162
感情败类
感情败类 2020-11-27 10:54

I am launching activities from the main activity in my app using the call startActivityForResult(intent, ACTIVITY_TYPE), and they are all working but one.

13条回答
  •  执念已碎
    2020-11-27 11:29

    I have seen this behavior before, please make sure your destnation activity (that special activity) is not singleInstance in AndroidManifest file. If the Activity is singleInstance, then it will return RESULT_CANCELED before launched!

提交回复
热议问题