I'm just wondering how to fire up an Intent to the phone's browser to open an specific URL and display it.
Can someone please give me a hint?
To open a URL/website you do the following: String url = "http://www.example.com"; Intent i = new Intent(Intent. ACTION_VIEW); i.
In this way, an Intent is like the dual of a hyperlink. With a hyperlink, the source page specifies the exact URL to be navigated to. With an Intent, the source page specifies the nature of the task to be done, and the user can select any of a number of applications to be used to complete the task.
To open a URL/website you do the following:
String url = "http://www.example.com"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i);
Here's the documentation of Intent.ACTION_VIEW
.
Source: Opening a URL in Android's web browser from within application
The short version
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://almondmendoza.com/android-applications/")));
should work as well...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With