Thursday, 29 March 2012

Browsing Web using an Intent Android

 Use the following code to browse a link from your android app into web browser.

Syntax :-

Intent  <intentName> ;
<intentName> = new Intent(String action, Uri uri) ;
 startActivity(<intentName>)

Parameters :-

action The Intent action, such as ACTION_VIEW.
uri The Intent data URI.

 Example :-


Intent browseWeb = new Intent("android.intent.action.VIEW", Uri.parse("http://mahsanq.blogspot.com/"));
startActivity(browseWeb ); 


========================================
Your comments and suggestions are highly appreciable.
========================================