From 7f604c47cecfbff27854f5daac6b81beb1e988d3 Mon Sep 17 00:00:00 2001 From: Branden Archer Date: Sun, 27 Dec 2015 20:41:01 -0500 Subject: [PATCH] Prevent child device from sleeping if listening If the screen turns off, the child device will be unable to record from the microphone. Keep the screen on in the monitor activity to keep microphone on. --- res/layout/activity_monitor.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/res/layout/activity_monitor.xml b/res/layout/activity_monitor.xml index 566286e..07625b9 100644 --- a/res/layout/activity_monitor.xml +++ b/res/layout/activity_monitor.xml @@ -8,6 +8,7 @@ android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" + android:keepScreenOn="true" tools:context="protect.babymonitor.MonitorActivity" >