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

前端 未结 4 944
终归单人心
终归单人心 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:24

    How would the browser know that user is done with the bank page? It has no way to know that.

    Also, browser does not react to startActivityForResult() by setting result and then finish().

    So, you can not use Android browser to accomplish this task.

    The only possible way would be to start WebView and to detect when user is finished, by detecting certain url that is (supposedly) shown when user is finished with the bank task.

提交回复
热议问题