The camera in the app has a white screen
Some mobile phones have a white screen when the camera is turned on in the App, and it returns to normal after a short period of time;
Troubleshooting solution:
check whether the camera has been opened for preview multiple times
camera.setPreviewDisplay(holder);
camera.startPreview();
The camera in the App failed to open, check the camera of the mobile phone, after opening, it prompts that the machine needs to be restarted to use it
After turning off the camera on some mobile phones, when the camera is turned on again, it prompts to turn on the camera recognition, and then after the phone’s camera is turned on, it also prompts that there is a problem with the service, and the machine needs to be restarted to use the camera Troubleshooting solution: Check whether the camera has stopped previewing and releasing
multiple
times
camera.setPreviewCallback(null);
camera.stopPreview();
camera.release();
Summarize:
For heavyweight startup and shutdown, it is necessary to package well, and if it involves cooperation with a third party, don't stop at api disabling, but also understand the operation content processing after api disabling