When you talking about animating every 100ms, you mean a short term
animation for a second or thereabouts, triggered by your 6 hour
update, right? Similar to the occaisonal weather animation on the HTC
Clock widget?

If so, then you can use the ProgressBar in your widget layout, set to
Indeterminate mode, and give it an AnimationDrawable. Then try showing/
hiding that when you want to update.

That is a better smoother option than doing the animation manually by
setting a bitmap on a ImageView based on a timer or Alarm Manager,
although for short periods of animation <2s say, that also works fine.
For longer periods, you start to get Garbage Collection which causes
blips and judders in your animation.

But if you mean actually having a permanent animation, updating every
100ms, then AppWidgets are not really appropriate for that,
LiveWallpapers would be better.


On Jun 22, 7:37 pm, rams <[email protected]> wrote:
> Hi all,
>
> I have tried a weather widget and its working fine.
> The Weather widget is an app widget and I update
> the widget once in 6 hrs similar to the application
> on android site using AlarmManager. Now I want
> to animate the widget (ImageView) every 100 ms
> similar to HTC homescreen.
>
> I dont think AppWidgets will scale well for this case.
> How can I implement this widget?
>
> I have seen "Custom Homescreens" in previous
> Android SDK's. Should I have modify the Homescreen
> widget for doing this or is there any other way.
>
> Thanks,
> Ram.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to