I have file in this path:
file:/storage/emulated/0/iWallet/photos/JPEG_20180119040510_972640968.jpg
I want to convert it to android.net.Uri
and use it in this:
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
if (takePictureIntent.resolveActivity(getActivity().getPackageManager()) != null) {
if (photoFile != null) {
takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT,photoFile.toURI());
startActivityForResult(takePictureIntent, REQUEST_TAKE_CAMIRA);
}
}