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?
Asked
Active
Viewed 199 times
-1
-
Is it calling onUpdate() method? Can you put logs and check it? – Vinay Sep 09 '10 at 14:18
-
hi vinay,i mean i get all app widget from AppWidgetManager to show on my view, the problem is that they don't update by themselves,not create the new widget by myself, so i needn't to put log on onUpdate(). – yuankai Sep 09 '10 at 15:45
1 Answers
0
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
- 986,068
- 189
- 2,389
- 2,491
-
hi,CommonsWare.you mean, i have to make a new thread to fresh the remoteViews by loop every time? – yuankai Sep 09 '10 at 15: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 Sep 09 '10 at 16:11