How to interact with various Android browsers (get URL)

I am looking for a way to interact with various browsers for Android. My intention is to get the URL of the website that the browser opens. My application should work in the background and give a warning when opening a specific URL, while it is for testing and learn more about android.

Is there a way to tell the browser to pass the url string to my application every time a new url is entered? I already have an idea to implement a local proxyserver that checks all http requests for a specific url, but is there a better way? In addition, this should work with each browser, not only standard, but, for example, firefox or dolphin.

I have been looking for the past few days, but could not find the answer ....

+5
source share
1 answer

Yes you can do it! Check out http://seleniumhq.org/ how to automate your web browser.

0
source

All Articles