Try this:
Intent i = new Intent(Intent.VIEW_ACTION,
Uri.parse("http://www.cnn.com"));
startActivity(i);
--
Jack Ha
Open Source Development Center
・T・ ・ ・Mobile・ stick together
The views, opinions and statements in this email are those of
the author solely in their individual capacity, and do not
necessarily represent those of T-Mobile USA, Inc.
On Jul 13, 5:43 am, Donn Felker <[email protected]> wrote:
> Hello,
>
> Here's what I'm attempting to do. I have a menu, and when a user
> selects a particular option in the menu I want the browser application
> to open and display the web page. However, I cannot seem to do this.
>
> My application uses a TabWidget to display its content (which works
> perefectly) but I cannot for the life of me figure out how to open a
> link into the browser. I have tried adding a WebView to the TabWidget
> (but when I request it from the view by findViewById(...) I get a
> null. I've also tried creating a separte view and performing a
> setContentView(...) and then I get an exception. I've also tried using
> an intent I've seen demostrated on this group.
>
> It seems like this should be fairly easy, but I must be missing
> anything. I've looked at the sample apps as well as the Apps-for-
> android samples and have followed them to the T, yet still to no avail
> I cannot get the browser to open (or anything like that).
>
> Does anyone have any recommendations/tips/code? Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---