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( ??????);
]]>
< ![CDATA[
http://developer.android.com/reference/android/content/Intent.html#setData%28android.net.Uri%29
]]>
< ![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.
]]>
< ![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.
]]>
< ![CDATA[
is G+ acting weird? or is your working code gone?
Would you be so kind, to post it again?
]]>
< ![CDATA[
See above
]]>
< ![CDATA[
huh,? OK, coffee helped 😉
super thanks!
]]>