How to open an URL in Android’s web browser using Button.

Published on Author Ashish Raj NaiduLeave a comment

Step1:-  In Resource/main.xml  create Button  as per Shown in the image below.

Step2 :- In src/Weburl.java type these codings.
a) Attach a click listener to the button,When user click on it, it will open mobile browser and display URL : http://www.howwhywhat.in

Step3 :- Run the Application

OUTPUT:-
1) Normal Button

2) After Click on the Button

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *