---
title: "android 打开地图上的指定位置"
author: "zhy20045923"
date: "2018-07-12T11:29:49Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2018-07-12T11:29:49Z"
id: 2426726
url: "https://null-point.iteye.com/blog/2426726"
---

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

```



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

```