title: How to get sdcard path of image sync from google plus?
body: <p>I am able to get sdcard path of local image but unable to get path for non-local image sync using like google plus,dropbox etc.</p>
  
  <p>My code is below:-</p>
  
  <pre><code>       @Override
                  public void onClick(View v) {
                      // TODO Auto-generated method stub
                      if(v == imgSelectPhoto){
                          Intent i = new Intent(Intent.ACTION_PICK,
                                  android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI);
                          startActivityForResult(i, 0);
                      }
                    }
  
          @Override
          protected void onActivityResult(int requestCode, int resultCode, Intent data) {
              // TODO Auto-generated method stub
              super.onActivityResult(requestCode, resultCode, data);
              switch (requestCode) {
              case 0:
                  if(resultCode == RESULT_OK) {
  
                      try
                      {
  
                      DisplayImageOptions options;
                      options = new DisplayImageOptions.Builder()
                      .showStubImage(R.drawable.ic_stub)
                      .showImageForEmptyUri(R.drawable.ic_empty)
                      .showImageOnFail(R.drawable.ic_error).cacheInMemory()
                      .cacheOnDisc().bitmapConfig(Bitmap.Config.RGB_565).build();
                      imageLoader = ImageLoader.getInstance();
                      imageLoader.init(ImageLoaderConfiguration.createDefault(getApplicationContext()));
                      imageLoader.displayImage(data.getData().toString(), imgImagePreview, options);
                      //imgImagePreview.setImageURI(data.getData());
                      fileUrl = getRealPathFromURI(data.getData());
                      Log.w("TEST","ImageURI : "+ data.getData()+" Path : "+ fileUrl);
                      }
                      catch(Exception  e)
                      {
  
                      }
              objAdapter.InsertLocalImage(fieldNotes, displayName, fileLargerName, fileUrl)
                  }
              }
          }
  
          public String getRealPathFromURI(Uri contentUri) {
              String[] proj = { MediaStore.Images.Media.DATA };
              Cursor cursor = managedQuery(contentUri, proj, null, null, null);
              int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
              cursor.moveToFirst();
              return cursor.getString(column_index);
          }
  </code></pre>
  
  <p>Logcat:-</p>
  
  <pre><code>01-17 17:50:58.242: W/TEST(11961): ImageURI : content://com.sec.android.gallery3d.provider/picasa/item/5955342059370063154 Path : https://lh4.googleusercontent.com/-vAwMltvVVdE/UqWgDNyyJTI/AAAAAAAABtc/IiAikNj0uwI/I/20131209_162222.jpg
  </code></pre>
  
  <p>If anyone have idea please reply.
  Thanks in advance...</p>