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
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
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
3 matches
Mail list logo