Reputation: 7840
I have just started Android application development, I have develop the application of Google map and added the marker on Google map after following this tutorial.
http://mobiforge.com/developing/story/using-google-maps-android
Now I want to blink the marker on Google map, please give the direction so that I can blink the marker on Google map.
Upvotes: 3
Views: 5890
Reputation: 4081
Currently there is no way to do it. There is a feature request submitted, please vote on that: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4768&thanks=4768&ts=1357300845
I've tried some workarounds but they are pretty bad:
So all-in-all, it is not really possible and I wasn't able to find a good workaround. Vote up the issue above and hope we got a quick fix. :)
I've created a workaround for a blinking marker you can use it until the Maps team fixes the issue: https://github.com/balazsbalazs/blinking-marker-mapsv2
Upvotes: 1
Reputation: 15267
From API point of view this is not possible but there might be a workaround that should work I am not sure if it works but theoretically it must
Create a Thread that must redraw the marker at some interval 1sec and change the image alternatively in code where you draw the marker like red image first then greeen and so on
//---add the marker---
Bitmap bmp = BitmapFactory.decodeResource(
getResources(), R.drawable.pushpin);
canvas.drawBitmap(bmp, screenPts.x, screenPts.y-50, null);
Upvotes: 2