title: Photo Albums and dropbox application
body: <p>This is how i am firing an intent to get the picture from photo albums</p>
  
  <pre><code>Intent intent = new Intent();
  intent.setType("image/*");
  intent.setAction(Intent.ACTION_GET_CONTENT);
  startActivityForResult(intent, SELECT_PICTURE);
  </code></pre>
  
  <p>then from the result i take the path from the </p>
  
  <pre><code> Uri selectedImageUri = data.getData();
  
  public String getPath(Uri selectedImageUri) {
      String[] projection = { MediaStore.Images.Media.DATA };
      Cursor cursor = managedQuery(uri, projection, null, null, null);
      int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
      cursor.moveToFirst();
      return cursor.getString(column_index);
  }
  </code></pre>
  
  <p>of selected picture and put that image in sdcard.</p>
  
  <p>But as the dropbox application is also installed then that also comes up and when i select image then Uri comes like</p>
  
  <p>file:///mnt/sdcard/Android/data/com.dropbox.android/files/scratch/FloorPlanImage/7th_floor_new.jpg</p>
  
  <p>and now when i try getPath it crashes . Can you tell me how to fix this so that i can take the path of image  and save it in the sdcard?</p>