How can I create only one activity (other than the main) or clear the activity stack and still be able to perform the work when the pages is loaded?
I have a BrowserActivity that is pretty much a container for a WebView and it’s reachable with the use of intent-filter and android.intent.action.VIEW
. In other words, links can be opened directly inside my app.
Then after the pages finishes loading I perform some work on the html source.
Everything works as expected but anytime the user click on a new link, a new activity is created on top of the previous one.
For this reason I have added into the manifest to my activity