my camera(camera2 api) eats so much from battery and device is being hot after 5 minutes running. During trying to find out where is the problem, i saw that onCaptureCompleted method of CameraCaptureSession.CaptureCallback is being called continuously when preview is in running state. Is it normal ?
Should onCaptureCompleted method be called continuously?
855 views Asked by user0770 At
1
If you call
setRepeatingRequest()then it is normal to get multiple call inonCaptureCompleted(). If you want a single shot you can replacesetRepeatingRequest()withcapture().And the number of time
onCaptureCompleted()called is depend on things like capture request's template type.