I have an android app that is opened through a intent on a webpage. This app does few things and when it finishes I want to come back on browser on another page. I can do that but it opens a new tab while I would like to change page without open a new tab.
This is what I do:
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(callbackUrl));
startActivity(browserIntent);
MainActivity.this.finish();
Is there a way to do this?
Thanks