3

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 ?

Aditya
  • 5,509
  • 4
  • 31
  • 51
  • 1
    as a part of your enterprise security, you can monitor the traffic in the responsible parts of the infrastructure (routers/firewalls etc). You are aware that all users of this enterprise security model, should have signed an agreement to be monitored, otherwise it's forbidden by law. Who did you say you were working for? – hovanessyan Jun 01 '12 at 12:08
  • This app is for android devices that use GPRS/Wi-Fi connection. Hence, monitoring using routers/firewalls is not possible. – android user Jun 01 '12 at 13:53
  • @androiduser: how did you get notification when user opens browser? please guide me through sample code or tutorial. Thanks. – Sam Feb 08 '14 at 08:47

1 Answers1

1

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

Community
  • 1
  • 1
Ganesh K
  • 2,623
  • 9
  • 51
  • 78