摘要: Android Intent 大全 android 中intent是经常要用到的。不管是页面牵转,还是传递数据,或是调用外部程序,系统功能都要用到intent。 ★intent大全: 1.从google搜索内容 Intent intent = new Intent(); intent.setAction(Intent.ACTION_WEB_SEARCH); intent.putExtra(SearchManager.QUERY,"searchString") startActivity(intent); 2.浏览网页 Uri uri = Uri.parse("ht 阅读全文
posted @ 2011-11-04 12:28 纯洁的坏蛋 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1. Uri uri = Uri.parse("http://www.google.com"); 2. Intent it = new Intent(Intent.ACTION_VIEW,uri); 3. startActivity(it);显示地图: 1. Uri uri = Uri.parse("geo:38.899533,-77.036476"); 2. Intent it = new Intent(Intent.Action_VIEW,uri); 3. startActivity(it);路径规划: 1. Uri uri = Uri.parse( 阅读全文
posted @ 2011-11-04 09:49 纯洁的坏蛋 阅读(611) 评论(0) 推荐(0) 编辑