My onActivityResult
is not working because getBitmap
is deprecated, any alternative codes to achieve this?
here are the codes that needs to
It was evident that the getBitmap
API doesn't work with the latest Android SDK - 29. So, this worked for me
Uri contentURI = data.getData();
try {
imageView.setImageURI(contentURI);
} catch (Exception e) {
e.printStackTrace();
}
Please let me know if this doesn't work for any of you, shall other options!