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/ type these codings.
a) Attach a click listener to the button,When user click on it, it will open mobile browser and display URL :

Step3 :- Run the Application

1) Normal Button

2) After Click on the Button



Leave a Reply

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