I have one ImageView on a home screen widget , currently the image is static.
But I want to make that image flash, like ON and OFF automatically.
The image is keep flashing green -> red -> green like a siren.
Initially Image is Red
User Taps over Red Image , it stars flashing from Red to Green rapidly
User Tags again it stops flashing and set to Red
Thanks in advance
You can do this with a
ViewFlipperin XML. To start/stop the flashing you can use the remoteview methodsetViewVisibility()to toggle betweenredOnlyandredAndGreen.