public String getRealImagePath(Uri uriPath) {
String[] proj = {MediaStore.Images.Media.DATA};
Cursor cursor = managedQuery(uriPath, proj, null, null, null);
int index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
String path = cursor.getString(index);
path = path.substring(5);
return path;
}
[이 게시물은 더어플님에 의해 2016-07-12 15:23:56 개발 꿀팁에서 복사 됨]