I am trying to open a browser window with my service link that opens on the current browser tab. when i use
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://www.google.com")); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); context.startActivity(intent);
If the browser was open and in the foreground, before my service launches the intention and the browser opens the link in the same window / tab. If the browser was minimized and the service launched the intent, the browser will open the web page in a new window / tab.
I canโt use the web view as it should be in the web browser and it will only work with the default browser. I checked the stream on Open url in Android browser, avoid multiple tabs , but it had no answer. I also tried closing the browser, but this also does not work.
Thanks for the help!
java android
Aitchehtee
source share