title: Retrieve a non cached Picasa image from Gallery. 3.0 and 4.0
body: <p>My app is calling the gallery with an intent that looks like this:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_PICK,
          android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
  startActivityForResult(intent, SELECT_IMAGE_FROM_GALLERY);
  </code></pre>
  
  <p>In versions &lt; 3.0 there's no problem.</p>
  
  <p>With 3.0 and greater versions, when you get a local image, the intent in the onActivityResult method contains an Uri like...</p>
  
  <pre><code>content://media/external/images/media/XXX
  </code></pre>
  
  <p>but when you select a picasa image the uri is something like...</p>
  
  <pre><code>content://com.google.android.gallery3d.provider/picasa/item/XXXXXXXXXXXXXXXXXXXXX
  </code></pre>
  
  <p>I read many about that problem and I tried many workarounds.</p>
  
  <p>At the moment, I can obtain just cached images using:</p>
  
  <pre><code>getContentprovider().openInputStream(uri)
  </code></pre>
  
  <p>The problem is that, when the image is not cached, the <strong>openInputStream(uri)</strong> method, throws a <strong>FileNotFoundException</strong>, and i can't get the image  :_(</p>
  
  <p>Anyone knows how to get the file or the url to download the file or something to get the image??</p>
  
  <p>Thanks!!</p>