how can i put appwidget on my view and let it updated itself??now,i can put the remoteviews on my activity,but it seems not update itself, how can i make it update itself?
A:
It won't "update itself". You need to get a fresh RemoteViews
whenever you want to update it, by whatever means you got your first RemoteViews
.
CommonsWare
2010-09-09 14:55:35
hi,CommonsWare.you mean, i have to make a new thread to fresh the remoteViews by loop every time?
yuankai
2010-09-09 15:22:22
@yuankai: I don't know about the "new thread" part. And you are welcome to experiment with `AppWidgetHost` to see if you can use that to automate the updates. But just because you manually apply an app widget's `RemoteViews` does not mean it will somehow magically update itself.
CommonsWare
2010-09-09 16:11:05