Folks I have an activity that launches an embedded browser view rendering stuff that is out of my control. Now suppose the user navigates one more level by clicking on a link in the browser view. This opens a new browser window. In order for the user to go back to prior activity, the user would have to click back "twice".
I would like to implement a "soft" back button that always shows up at the top of the embedded browser view.
I found the question answered at Android WebView, how to handle redirects in app instead of opening a browser
But when I use that solution, the android native button also takes you back directly to the prior activity (instead of going back in history of the page). Is there a way so that I can do both (have a custom back button that takes me back all the way but have the android native back retain the expected behavior of going back one page at a time?
Thank you!