开发者

Camera activity in android?

开发者 https://www.devze.com 2023-03-03 16:33 出处:网络
When i start recording video usingcamera ,itstarts recording , but if i hold the camera idle without doing any operation(like touch , tap..etc) , device went to sleep mode means device locked , then i

When i start recording video using camera ,it starts recording , but if i hold the camera idle without doing any operation(like touch , tap..etc) , device went to sleep mode means device locked , then i need to reopen the device.

I need to make the device active while recording and not want to go sleep mode while recording. If any one knows t开发者_高级运维hat solution please help me.

Thanks.


You are looking for the PowerManager service. Have a look at the official documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消