开发者

Android ACTION_WEB_SEARCH

I am not able to get the ACTION_WEB_SEARCH to work correctly, does this require any permissions on the AndriodManifest.xml?

This is my code:

 String q = edittext.getText().toString();
 Intent myIntent = new Intent(Intent.ACTION_WEB_SEARCH, Uri.p开发者_如何学编程arse(q));
 startActivity(myIntent);

Any help would be much appreciated.

Platform 2.0.


 String q = edittext.getText().toString();
 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH );
 intent.putExtra(SearchManager.QUERY, q);
 startActivity(intent);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜