Here is a small piece of code to open a URL/Website from your application, place it on your class that has startActivity function, for example your class that extends Activity
String url = "http://almondmendoza.com/android-applications/";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
Hope this helps.
12 comments:
Simple and effective!
10x a lot!
Good solution. thx
nice !
The code worked,interesting code, to open the url of a website from our application.
It cant be any better and neater than this !!!
Thanxxxx a bunch
Thank you very much!
Thank you very much.
Thanks, very quick & effective, saved me time & trouble!
it worked...thanks...
Thank you for sharing!
I would like to know if is it posible hide the address toolbar?
Thanks again
Good work.....
How can we get string from Edittext and then allow go to the link.
Post a Comment