I am developing an android camera app. Whenever i open the app the camera opens normally then after a few seconds most of the times it hangs and ultimately the emulator shows not responding after a while. Very rarely it operates normally when i open the app. Not only my custom camera app but i tested the default emulator camera, it also hangs after a while when it is opened. I don't know what is happening wrong. On real devices my camera works fine. So the issue is not with the app but the camera of my emulator.
It is a bug with certain versions of the emulator. For example, camera app hangs on emulator version 29.3.2.0 (build_id 6083285)
regardless of the whether it's emulated or set to Webcam0
, but works fine on 29.2.1.0 (build_id 5889189)
.
I have the same issue but only on one of my laptops. It seems someting is connected with computer graphic card. Try to change paramather Automatic with Software-GLES 2.0 in AVD manager-emulated perfromance. IT's slower but it works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.