android 唤醒手机上的地图应用

来源:互联网 发布:手机算命软件下载 编辑:程序博客网 时间:2024/05/16 05:04

try {
StringBuffer sb = new StringBuffer();
39.940409 纬度116.355257 精度sb.append(“geo:”).append(“39.940409”).append(“,”).append(“116.355257”)
.append(“?”).append(“z=”).append(“18”).append(“?”).append(“q=”)
.append(“西直街”);
Uri mUri = Uri.parse(sb.toString());
Intent mIntent = new Intent(Intent.ACTION_VIEW, mUri);
startActivity(mIntent);
}catch (Exception e){
Toast.makeText(this, e.toString(), Toast.LENGTH_SHORT);
}

阅读全文
0 0
原创粉丝点击