i run intent action_open_document.
it returns uri path " content:/com.android.providers.downloads.documents/document"
how correct path returned uri?
that uri not uri path like.
actual file saved using below snippet.
uri selectedimage = data.getdata(); string[] filepathcolumn = {mediastore.images.media.data}; cursor cursor = getcontentresolver().query(selectedimage,filepathcolumn, null, null, null); cursor.movetofirst(); int columnindex = cursor.getcolumnindex(filepathcolumn[0]); string picturepath = cursor.getstring(columnindex);
Comments
Post a Comment