[android-developers] How to launch the browser

2009-11-11 Thread Susan
I am trying to create a widget that, when clicked on, launches the browser and goes to a particular URL. Unfortunately, I have had a lot of problems. I started with a (working) widget that, when clicked, opened the alarm clock. Then, using the code from another Groups post

Re: [android-developers] How to launch the browser

2009-11-11 Thread Mark Murphy
Susan wrote: I am trying to create a widget that, when clicked on, launches the browser and goes to a particular URL. Unfortunately, I have had a lot of problems. I started with a (working) widget that, when clicked, opened the alarm clock. Then, using the code from another Groups post

Re: [android-developers] How to launch the browser

2009-11-11 Thread Jason Proctor
you can't instantiate a Uri from a string, need to use the parse() factory method. this is how i do it, works for me -- Intent intent = new Intent (); intent.setAction (android.intent.action.VIEW); intent.addCategory (android.intent.category.BROWSABLE); intent.setData (Uri.parse