Synchronous startActivityForResult - Waiting for Activity to Complete

后端 未结 2 1324
一个人的身影
一个人的身影 2020-12-20 16:14

I have an application where I am launching a new Activity, and need to have the result of the activity before proceeding.

I realize that startActivityForResult is as

2条回答
  •  难免孤独
    2020-12-20 17:11

    This will block your UI thread so other activity will not execute either. I would use some kind of callback class provided by higher level function, in this kind of situation and call its callback function in onActivityResult

提交回复
热议问题