I have previously implemented in android app to capture an image that is working perfectly till Android 9 OS but suddenly stop working on Android 10 OS. if anyone else facing the same issue of this please come up.
// open the camera from the user's phone
private void takePhotoFromCamera() {
Intent intent = new Intent(ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, CAMERA);
}
// this code is writen in onActivityResult
if (requestCode == CAMERA) {
myProfileImage = (Bitmap) data.getExtras().get("data");
myImage.setImageBitmap(myProfileImage);
}