Friday, 15 June 2012

android - Receiving No apps can perform this actions error -



android - Receiving No apps can perform this actions error -

i attempting app offer me selection of browser use. have assigned url http://google.com. when run it, 'no apps can perform actions' error. i'm missing , cant figure out.

public class myclass{ static private final string url = "http://www.google.com"; .. .. implicitactivationbutton.setonclicklistener(new onclicklistener() { // phone call startimplicitactivation() when pressed @override public void onclick(view v) { startimplicitactivation(); } }); private void startimplicitactivation() { log.i(tag, "entered startimplicitactivation()"); intent baseintent = new intent(intent.action_send,uri.parse(url)); string title = "choose browser"; intent chooserintent = intent.createchooser(baseintent, title); log.i(tag,"chooser intent action:" + chooserintent.getaction()); startactivity(chooserintent); } ... ... }

to view web page, utilize action_view, not action_send.

android android-intent browser

No comments:

Post a Comment