I have an application in which on clicking a button, or on changing place, or after a particular time, I am able to get longitude and latitude values. I want to use this values to show them on Google Map application. I am opening a map using intent to show location, but somehow its not showing cordinates which I am getting.
Share
This is a working piece of code that I use in one of my apps. This code also includes a check to find out if the user has Google Maps installed on his / her device. If the check returns the app as installed, then the function will pass on the data to the app. If the check fails, it displays an AlertDialog informing the use that the app is not installed.
This line of code mentioned below sends it to Google Maps and instead of displaying just the Pin also displays the location name.
EDIT: If you do not wish to display the PLACE_NAME, modify that particular line with:
geo:latitude,longitudeinstead of the one used in the code block.Check this link for further combinations possible, like zoom for example: http://developer.android.com/guide/appendix/g-app-intents.html