Launch URL in browser

Send Snippet To: Save this snippet to Code Collector Pro -- view all rick paape's snippets
language: Java for Android
license: Other

Code for Snippet:

                
String url = "http://www.example.com";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 36
Date Added: 2017-07-24 15:04:36
Last Modified: 2017-07-24 10:04:51

Web Analytics