title: getRealPathFromURI() not working with ICS & Picasa based images
body: <p>I'm trying to get the local path of a image in order to upload it to a server. When using pre ICS it would get a standard path within the android device via <code>getRealPathFromURI(theURI)</code> </p>
  
  <p>However with ICS URI will contain a <code>uriString</code> as something like : <code>content://com.google.android.gallery3d.provider/picasa/item/12312312312312</code>.</p>
  
  <p>and running <code>getRealPathFromURI(theURI)</code> returns <code>null</code></p>
  
  <p>Do I now need to extract the above <code>uriString</code> and manually download the image via the API (if i detect that its a Picasa gallery image) rather than one locally stored? or am I completely missing something?</p>
  
  <p>thanks for any advice</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>seems i was searching on the wrong question...</p>
  
  <p>found the problem in the below link... which is pretty much what I expected I'd need to do. Pretty annoying google/android didn't handle this more elegantly.</p>
  
  <p>To properly handle fetching an image from the Gallery you need to handle three scenarios: </p>
  
  <ol>
  <li><p>The user selected a local image file </p></li>
  <li><p>The user selected a Picasa image and the device is running Android version prior to 3.0</p></li>
  <li><p>The user selected a Picasa image and
  the device is running Android version 3.0 and higher</p></li>
  </ol>
  
  <p><a href="http://dimitar.me/how-to-get-picasa-images-using-the-image-picker-on-android-devices-running-any-os-version/" rel="nofollow">http://dimitar.me/how-to-get-picasa-images-using-the-image-picker-on-android-devices-running-any-os-version/</a></p>