Remain in web view using android


I have a website of which I have made the mobile version . Now, thing I want is to open the URL in web view and successfully I have done it , next thing is I want that when user login or click any button it should remain in the web view instead of going in the browser. I haven’t done this kind on work before so I wonder if it can be done . For example if the website have 4 links so when I click any of the link it should open with in the web view but now it will take it to the browser.


I don’t know how you structured your webView but if you use the following line after instantiating your webView, will resolve your issue.

<Your_WebView>.setWebViewClient(new WebViewClient());   

Answered By – Avadhani Y

Leave a Comment