Greetings all I am trying to build a camera which is able to take images every X seconds. For this I don't want the screen to be on in order to save the battery. I tried the approach of dimming the screen to the maximum and even reduced the preview size to 1px X 1px. I need the application to be running continuously(until the battery is dead) without any human intervention. This is just a personal project so I am also ready to alter the source of the android api is required. After talking to people on IRC, they said that using the Camera 2 API it is possible to take pictures without preview. I don't have any experience in using camera 2 api, so could someone point me to a resource for how to take images using camera2 api without preview/screen off. Also it would be great if someone could tell me about hacks(of any sort) to improve the battery and prolong the application. BTW I am using Nexus 5X as my device. Any help will be greatly appreciated.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5e973c8a-8b96-43c8-9277-e3dc8e8cf5c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

