Created
January 7, 2015 07:22
-
-
Save hangox/d9129543b385a8558ad7 to your computer and use it in GitHub Desktop.
通过intent查看地图
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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