How to open a url on browser from my application ?How to open a url on browser from my application ?

Answer 1

Open url in an intent by Intent.ACTION_VIEW option.

Use This Code :
   
    String URL = "http://www.google.com";

    Uri uri = Uri.parse(URL);

    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
    startActivity(intent);

SUBMIT YOUR ANSWER

  |  
 
 
 

Preview :