title: Application wide SpiceManager in Android using RoboSpice
body: <p>I've implemented a <code>BitmapSpiceManager</code> and <code>BitmapRequest</code> in my app to download an image or fetch from the cache if already downloaded. The problem is following the examples given by RoboSpice, the caching only works within one <code>Activity</code>. If you end that activity (by going back to a previous one for example) and then launch it again, the cache does not contain what was loaded in it before (it's cleared).</p>
  
  <p>I'm following the pattern where you have a base activity that holds a <code>BitmapSpiceManager</code> and from my subclass activity I make a request using the manager. This gets the file and caches it, I proved it comes from the cache again within the activity by hooking up a button which removes the ImageView then trys to load the image again.</p>
  
  <p>Is it possible to have the images cached in one Activity available in another? I need like an application wide SpiceManager. Ideally the cached items could persist beyond application runs too i.e. cache for a few hours. Is there a better way to structure the RoboSpice code in applications than the examples?</p>
  
  <p>If I subclass <code>BitmapSpiceService</code> and override the <code>createCacheManager()</code> method is that going to help? I could use <code>DiskLruCache</code> but the <code>BitmapSpiceService</code> uses <code>InFileBitmapObjectPersister</code> which says it writes files out, so I figure it's the same. I'm not sure why the cache is cleared when the Activity dies.</p>