@ Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (data.getData()!=null) {
videoUri = data.getData();
if (resultCode == RESULT_OK) {
if (requestCode == REQUEST_VIDEO) {
Toast.makeText(this, data.getData().toString(), Toast.LENGTH_LONG).show();
} else if (requestCode == VIDEO_RECORD_REQUEST) {
videoUri = data.getData();
Toast.makeText(this, data.getData().toString(), Toast.LENGTH_LONG).show();
}
}
}
else
{
Toast.makeText(this, "No file", Toast.LENGTH_SHORT).show();
}
}
I have tried this code it works fine but I also want to get the thumbnail of result video URI.