My app opens a browser activity via startActivity(). Can I close that browser activity if I feel like it?
For one thing, startActivity() does not return anything – can I get an Activity object back from it somehow?
In the JavaScript world, the convention is that whoever opened a new browser window has the authority to close it. Just sayin’.
As outlined here, if you activate the root activity with the following intent flags:
it will finish all activities on top of it in the navigation stack. Including the browser.