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);

你可能感兴趣的:(浏览器)