A couple of years ago I created an AI2 app to pick an image, place it in a canvas and draw a grid on the image. It works great on my Samsung J7 running Android 6. I tried installing the very same apk on a Samsung s23+ running Android 14 and when I try to use image picker or the camera to insert a jpg into the canvas, I get a Runtime Error "Attempt to invoke virtual method "int android.graphics.Bitmap.getHeight()" on a null object reference.
Can anyone help me out here?
Permissions requirements have changed significantly from Android 6 to Android 14. Have a read here: