Camera activity in android?
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.
精彩评论