I use ZXing lib in my apk . Sometimes I have problem with my camera ( it's global problem ) and I get error message . I get this when run default camera apk or some QRCode Scaner , but In my apk I have black screen -nothing else. How Can I detect problem with camera ? I want catch this and show alert for user.
You have to implement broadcast receiver from camera. Check android docs for details about camera events
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.