intent.ACTION_VIEW together with intent.setComponent() -


android: there way send intent.action_view intent.setcomponent(), there in no choose of apps, launch special app (not own) on phone with action_view? (but not work):

string url = "http://something"; intent in = new intent(intent.action_view);  in.setdata(uri.parse(url)); in.setcomponent(new componentname(packagename, name)); startactivity(in); 

of cause works:

string url = "http://something"; intent in = new intent(intent.action_view);  in.setdata(uri.parse(url)); startactivity(in); 

and too:

intent in = new intent("android.intent.action.main"); in.addcategory("android.intent.category.launcher"); in.setcomponent(new componentname(packagename, name)); startactivity(in); 


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -