title: Android Widget : big image scrollable - out of memory
body: <p>I try to create a <strong>widget</strong> on Android, showing a <strong>dynamically generated image</strong>, bigger than the widget.</p>
  
  <h2>1. How I did</h2>
  
  <p>This can be done with a <strong>ListView</strong>, and the adapter is a <strong>RemoteViewsService</strong> where I build my bitmap. Then I create a <strong>RemoteViews</strong>, and I call setImageViewBitmap with my bitmap.
  It's working, the widget displays well my image width a vertical scroll (what I want !).</p>
  
  <blockquote>
    <p>Widget => ListView => setRemoteAdapter(RemoteViewsService) => getViewAt() => RemoteViews => create a view and retrieve bitmap => setImageViewBitmap</p>
  </blockquote>
  
  <h2>2. My memory problem</h2>
  
  <p>When the widget is resized, I redraw the bitmap and do the job again (Image depends on widget size). And I see memory growing each time up to <strong>out of memory</strong>...</p>
  
  <p>Thanks for your help.</p>