For example if I have 3 buttons and I want to use this buttons to redirect to different urls without use many webviews but only one webview.
button1 = http://example.com
button2 = http://stackoverflow.com
button3 = http://android.com
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.
On the click of each
Button:Change the URL that has to be passed to the
WebViewdepending on theButtonclicked.In the
Activitythat holds theWebView:Adapt the code if you are doing things a little differently.