1. android manages multimedia files (audio, video, and image. In the/data/com. android. providers. in media, find the database file and open external. for more information about the db file, see the ing between the file path (_ data) and the Uri ID (_ id) in the media table. Ii. URI and file conversion 1. obtain the file path [java] string myImageUrl = "content: // media/external/images/media/***" from URI; Uri uri Uri = URI. parse (myImageUrl); String [] proj = {MediaStore. images. media. DATA}; Cursor actualimagecursor = this. ctx. managedQuery (uri, proj, null); int actual_image_column_index = actualimagecursor. getColumnIndexOrThrow (MediaStore. images. media. DATA); actualimagecursor. moveToFirst (); String I Mg_path = actualimagecursor. getString (actual_image_column_index); File file = new File (img_path); Uri fileUri = Uri. fromFile (file); 2. URI [java] Uri mUri = Uri from the file path. parse ("content: // media/external/images/media"); Uri mImageUri = null; Cursor cursor = managedQuery (MediaStore. images. media. EXTERNAL_CONTENT_URI, null, MediaStore. images. media. DEFAULT_SORT_ORDER); cursor. moveToFirst (); wh Ile (! Cursor. isAfterLast () {String data = cursor. getString (cursor. getColumnIndex (MediaStore. mediaColumns. DATA); if (picPath. equals (data) {int ringtoneID = cursor. getInt (cursor. getColumnIndex (MediaStore. mediaColumns. _ ID); mImageUri = Uri. withAppendedPath (mUri, "" + ringtoneID); www.2cto.com break;} cursor. moveToNext ();}