title: Convert real path format to Uri in android
body: <p>for example </p>
  
  <p>real path is mnt/sdcard/image_1.jpg
        Uri path  is content://media/external/images/media/140 like this</p>
  
  <pre><code>  Uri photoUri =Uri.parse("content://media/external/images/media/140");
                                              Log.d("selectedphoto",""+photoUri);
                 selectedImagePath = getPath(photoUri);
  
       public String getPath(Uri uri) {
              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>In above code I convert Uri to real path but dnt know how to convert real path to Uri</p>