String searchStr = "Baidu"; /* 取得网页搜寻的intent */ Intent search = new Intent(Intent.ACTION_WEB_SEARCH); search.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); search.putExtra(SearchManager.QUERY, searchStr); final Bundle appData = getIntent().getBundleExtra( SearchManager.APP_DATA); if (appData != null) { search.putExtra(SearchManager.APP_DATA, appData); } startActivity(search);
初级程序员
by: 小蘑菇 发表于:2013-05-05 23:10:12 顶(0) | 踩(0) 回复
收藏,备用
回复评论