From my application I use an Intent to open a web page in the Browser. The default behaviour is that back button leads to previous page in the browser and not back to my application. Is there a way to force the back button to return the user to my App?
Share
Once you use an Intent to open into another app, it’s up to that App to handle the back button. If you just want to show a webpage as an activity, you can run your own activity that hosts a
WebViewand use the following to open your web page:And in your activity you can override the back button to do what you need to do: