title: Get image uri from picasso?
body: <p>I have a fairly large list of image URL's that I'm using to load up a <code>ViewPager</code> using Picasso. I need to be able to provide sharing capabilities for these images via an intent (ultimately sharing via <a href="http://developer.android.com/guide/topics/ui/actionbar.html#ShareActionProvider" rel="nofollow noreferrer">ShareActionProvider</a>). From what I've read, Picasso isn't really built to handle this sort of thing out of the box, though it provides all the necessary tools to do so. </p>
  
  <p>My plan before research was to create a simple <code>LruCache</code> which uses the url as the key and bitmap value. This caching would occur in <code>onBitmapLoaded</code> via Picasso's <code>Target</code> interface. Whenever I want to share an image, I'll check the cache for the bitmap. If it's not there, I'll fetch with Picasso. Now that I have a cached bitmap regardless, I'll write to a file (...this part doesn't seem right, though I have to write to a file to get a uri, right?) and add the file uri to the intent.</p>
  
  <p>However I see that with the <code>Picasso.Builder</code> I can set (and retain a reference to) my own cache - <a href="https://stackoverflow.com/a/18552559/413254">https://stackoverflow.com/a/18552559/413254</a>. This means I could do away with the custom <code>Target</code> and confusion with properly implementing <code>hashCode</code> and <code>equals</code> methods to ensure accurate recycling, retrieval, etc. </p>
  
  <p>My question is, how does Picasso use this cache? What are the keys? Is there a way to get a bitmap Uri without writing it to disk?</p>