android - Release camera when other app requires it -


i building app uses camera's flashlight. has acquire camera camera.open() gives me control of device's camera until release it.

the problem comes when user tries open app uses camera, such default camera app. if app running gives can't connect camera. error frustrating , potentially little confusing user. don't want hog camera, use flashlight if no other app using it.

from research looks unlikely know of way hook camera request app can release hold on immediately?

acquire camera between onstart , onstop of activity.


Comments