Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor the browsing content in android?

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 ?

like image 963
android user Avatar asked Dec 04 '25 15:12

android user


1 Answers

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?)

like image 125
Ganesh K Avatar answered Dec 06 '25 05:12

Ganesh K