首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

ndroid 应用代码打开浏览器,打电话,开地图

2012-07-26 
ndroid 使用代码打开浏览器,打电话,开地图1,调用web浏览器Uri myBlogUri Uri.parse(http://daisy-sea.i

ndroid 使用代码打开浏览器,打电话,开地图

1,调用web浏览器

Uri myBlogUri = Uri.parse("http://daisy-sea.iteye.com");Intent returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri);startActivity(returnIt);


2. 直接拨打电话
Uri callUri = Uri.parse("tel:100861");Intent returnIt = new Intent(Intent.ACTION_CALL, callUri);startActivity(returnIt);


3. 地图
Uri mapUri = Uri.parse("geo:38.899533,-77.036476");Intent returnIt = new Intent(Intent.ACTION_VIEW, mapUri);startActivity(returnIt);

热点排行