Hi, Take a look at http://developer.android.com/training/scheduling/wakelock.html
You probably also need to set the Display Sleep time in Android Settings as well. Regards On Friday, April 15, 2016 at 12:07:03 PM UTC+10, David Karr wrote: > > I've assembled a custom video recorder app based on a common sample from > Google. You can see the entire source at > https://github.com/davidmichaelkarr/android-Camera2Video/tree/refinements > . > > Except for an annoyance I recently posted about here (writes zero length > file in addition to valid files), it works pretty well, except for the fact > that when the app sits idle for a minute or so, it seems like it just goes > away. > > I imagine there's an idle timeout, perhaps related to the overall power > management on the phone. > > For this particular app, when it's running, I want it to never time out. > What's the best way to make that happen? > -- 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/2f74a07d-20c3-43a6-8346-2d3f1f1b4899%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

