Camera crash on Android 10

It might be something to do with the out of memory problem, just like in the discussion of this thread.

Try to call takePicture with the size of the parameters like: Camera.TakePicture(640,480) to limit the size of the picture is taken.