Get path name from Uri Android Lollipop

version of Lollipop.

I used this code to determine the file path from Uri. Works well, but if I select a file from the downloaded application, the getRealPathFromURI_API19 function does not work for me. the entire Id for this case is / document / 4, for example, and my application crashed.

Ok, I made some changes for this function, and the "id" for Uri "/ document / 4" is now 4, but the function returns null.

Is it possible to get the file path for the selected image from any application? I need a file path for ExifInterface.

+1
source share
1 answer

, , (MediaStore), .

?

. A Uri File. , - Uri , Uri , , . Uri , , URL- , -. , URL- , , Uri , .

ExifInterface.

, , EXIF, Uri, , , , . ExifInterface , , .

:

0

All Articles