How would I create an intent for the default browser to go to an specified URL?

How would I create an intent for the default browser to go to an specified URL?

item.setIntent( ??????);

]]>

6 Commentsto How would I create an intent for the default browser to go to an specified URL?

  1. Anonymous says:

    < ![CDATA[

    tried many things, like:



    i.setIntent(Intent.ACTION_VIEW, Uri.parse(myUrl);



    and



    i.setIntent(Intent.ACTION_VIEW, Intent.parseUri(myUrl);



    but can’t get it to work.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    LL.bindClass(“android.content.Intent”);


    LL.bindClass(“android.net.Uri”);


    var i=new Intent(Intent.ACTION_VIEW,Uri.parse(“http://www.google.com“));


    LL.startActivity(i);




    Note that http:// prefix is required.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    is G+ acting weird? or is your working code gone?


    Would you be so kind, to post it again?

    ]]>

  4. Anonymous says:

    < ![CDATA[

    See above

    ]]>

  5. Anonymous says:

    < ![CDATA[

    huh,? OK, coffee helped 😉


    super thanks!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *