Skip to content

Instantly share code, notes, and snippets.

@hangox
Created January 7, 2015 07:22
Show Gist options
  • Select an option

  • Save hangox/d9129543b385a8558ad7 to your computer and use it in GitHub Desktop.

Select an option

Save hangox/d9129543b385a8558ad7 to your computer and use it in GitHub Desktop.
通过intent查看地图
// Map point based on address
Uri location = Uri.parse("geo:0,0?q=1600+Amphitheatre+Parkway,+Mountain+View,+California");
// Or map point based on latitude/longitude
// Uri location = Uri.parse("geo:37.422219,-122.08364?z=14"); // z param is zoom level
Intent mapIntent = new Intent(Intent.ACTION_VIEW, location);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment