As a part of enterprise security, I need to restrict the default android browser to block some website.
I have implemented a background service that will notify me when user opens the browser.
How to get the website URL or browsing content while the user accesses a website ?
How to monitor it ?
As Far As I know, it is not possible to get current URL from default browser. If you want, you can implement your own browser using android web view and using web view client you can get what URL user is browsing by overriding
public boolean shouldOverrideUrlLoading(WebView view, String url)
for more check below link
Get the current page being viewed in the browser (Possible?)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With