I am using MapView in my application, Which contains several markers of different users.I want to update user location.What i tried is, i remove and add all these markers when i get a new user location.Is there any way to identify the marker which i add for a particular user among all other markers ?
Can anyone help me ?
What I do is set the
Snippetto a JSON string representation(using Google’s GSON library) of any object which references or identifies the marker. When the marker is tapped, i use GSON to get my object back.for your
onTap(int index)method:This all assumes that you have an object you can serialize/deserialize
GSON: http://code.google.com/p/google-gson/