I have a set of latitudes and longitudes saved in MySQL database. I plot them on my map using:
for (int i = 0; i < jArray.length(); i++) {
JSONObject json_data = jArray.getJSONObject(i);
double lat = json_data.getDouble("lat");
double lng= json_data.getDouble("long");
MyItem offsetItem = new MyItem(lat, lng);
mClusterManager.addItem(offsetItem);
(I use Async Task to fetch the location and have kept a Timer to keep calling that Task) These locations correspond to particular vehicles, hence I plan to add that using this link
Showing custom InfoWindow for Android Maps Utility Library for Android.
My question is that once the location of a particular entry is updated in the database I need to find that marker and move/animate the marker to new new positon.
How can I achieve this?