when i load a url in a webview. it loads perfectly.
but i touch anything in that webview its redirected to the browser by default.
how to set that link will load in the same webview itself.
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Implement a
WebViewClient, overridingshouldOverrideUrlLoading()to tell Android what you want to do on link clicks. Attach thatWebViewClientto theWebViewviasetWebViewClient().