If you want to open a new screen to display the web page you can use:
Intent myIntent = new Intent(Intent.VIEW_ACTION,
ContentURI.create("http://androidcommunity.com"));
startActivity(myIntent);
But, of course, replace "http://androidcommunity.com" with the URL you want to open.
Luisa
import android.content.Intent;
import android.net.ContentURI;
cool thanks for the tip
instead of android.net.contentUri......use android.net.uri....
Hi,
I am new to android dev. I try it but Eclipse how the following error..
1- ConentURI cannot be resolved
2 - Intend.view_action cannot be resolved.
any idea?
Thanks
Hey all, first post! Whoopdy-do, right?
Anyways, do you all have any idea how to simply have an program icon which launches a website? I understand that it's only a shortcut in functionality, but I'm new to Android and would LOVE for you guys to give me a hand in getting started.
~Thanks
Brandon
Hi! Thanks for the info...I was looking for something like this :P
Thanks for the valuable tip. I just tried this on my Droid and it worked.
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Bookmarks