Showing posts with label Browser. Show all posts
Showing posts with label Browser. Show all posts

Monday, April 16, 2012

Android: Open browser with link example

You simply call a new Intent with URL link like following:


    public void openBrowser(final String link) {
       if(link.contains("http")) {
             Intent i = new Intent(Intent.ACTION_VIEW);
             i.setData(Uri.parse(link));
             startActivity(i);
       }
    }