ITeye博客

android 打开地图上的指定位置

zhy20045923 · 2018-07-12 11:29 · 移动开发 · Markdown


                Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:0,0?q="+Uri.encode("西安火车站")));
                startActivity(i);


                Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:10,10"));
                startActivity(i);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。