[android-developers] Re: AppWidgets: Reusing RemoteViews instance leaks memory?

2013-01-24 Thread Tom
Thank you so much! These needs to be added to Android's documentation somewhere because it took many hours to come to this realization myself! I thought I was being smart by preserving my RemoteView's instance, but in reality I was keeping hard-references to Bitmaps. As a text clock widget update

[android-developers] Re: AppWidgets: Reusing RemoteViews instance leaks memory?

2009-05-26 Thread Jeff Sharkey
So internally RemoteViews is simply a set of actions that are "serialized" and sent to another process. Each time you make a call to something like setDouble(), you're adding an additional action to RemoteViews' internal list. Because there isn't a way of clearing these actions from a RemoteView