android - Keep camera captured by an activity after picture taken -
it necessary application keep camera captured until released manually activity (i realize bad practice, no other applications able use camera). used able avoiding camera.release() call in surfacedestroyed function camerapreview, no longer works after 2.1.
is there way keep camera in captivity, without being automatically released after surfacedestroyed?
as workaround question answer instead of previous one, there way take picture within service, without preview view inflated?
you may able call camera.lock() re-obtain lock on camera hardware. failing can reopen camera.
however, drawback worse preventing other apps accessing camera. rapidly drain battery, because keeps camera sensor , dsp powered. according this thread, potentially kill battery dead in 2 hours.
Comments
Post a Comment