Starting an ACTION_VIEW activity to open the browser, how do I return to my app?

前端 未结 4 909
终归单人心
终归单人心 2021-01-11 11:43

In my app i need to open the bank\'s page, to make the user able to pay. Reading the Android documentation I see that I should use an ACTION_VIEW (and not a Web

4条回答
  •  悲哀的现实
    2021-01-11 12:21

    Just put a ResultCode argument on your startActivityForResult method, something like =this.startActivityForResult(intent, PAYMENT_ACCEPTED)

    It will be returned as resultCode when you finish your second activity.

提交回复
热议问题