FAQS


How to Open a webpage In Browser

Views: 2941  |   Date: 2013-08-16 08:44:48

How we can open a Web Page with Given URL in Android.

Answer 1

We can open a Web Page with Given URL in Android. To do this start an Activity passing the URL of the WebPage as data.

Make sure you declare following permission to access Internet

   

Use this code :
  
   Intent i = new Intent(Intent.ACTION_VIEW);
    i.setData(Uri.parse("http://www.cnn.com"));
    startActivity(i);
 

 
Submit Your Answer
  |  
 
 
 

Preview :