Drop Pin by default Google Maps from my app in Android?

I have an address for a location. when i click a button in my application. it should redirect to the default google map in android and move the pin to that specific location. how to do it? Any idea?

0


a source to share


2 answers


The Android documentation describes the various Intents

that the Google Maps app will respond to if it exists on a given device. Presumably you will need geo:0,0?q=my+street+address

Uri

on ACTION_VIEW

Intent

.



+5


a source


Here is an example of how I did it using the View button on the map . Held here to help those in need, because it took me a whole day to figure it out:



http://randroidblog.blogspot.com/2012/01/view-on-map-activity.html

0


a source







All Articles