Try this, onActivityResult you will Returned data
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// TODO Auto-generated method stub
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case Utils.CROP_IMAGE:
if (resultCode == RESULT_OK) {
// Create an instance of bundle and get the returned data
try {
Uri outputFileUri = data.getData();
String path = getRealPathFromURI(outputFileUri)
} catch (Exception e) {
// TODO: handle exception
}
}
break;
default:
break;
}
}
Get file path fome URI.
public String getRealPathFromURI(Uri contentUri)
{
String[] proj = { MediaStore.Audio.Media.DATA };
Cursor cursor = managedQuery(contentUri, proj, null, null, null);
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Audio.Media.DATA);
cursor.moveToFirst();
return cursor.getString(column_index);
}