androidandroid-browser

Is it possible to close browser tab in android programmatically?


I have an app which plays music from a local server and opens music player in the web browser but when the user goes back to the Home activity and launches Another activity which plays a video on the browser, The video opens in a different tab of the browser, while music tab does not get closed.

Can I close an already opened browser tab when another tab opens? If not. Please suggest some workarounds.


Solution

  • After lots of struglling ,i reached on conclusion,we cant handle the operation of other application without permission by owner of application,so i have found alternet solution using webview now its working.