diff --git a/src/main/java/org/havenapp/main/service/MonitorService.java b/src/main/java/org/havenapp/main/service/MonitorService.java index be71e5eb..c620b27f 100644 --- a/src/main/java/org/havenapp/main/service/MonitorService.java +++ b/src/main/java/org/havenapp/main/service/MonitorService.java @@ -15,8 +15,10 @@ import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; +import android.content.Context; import android.content.Intent; import android.graphics.Color; +import android.graphics.PixelFormat; import android.os.Build; import android.os.Handler; import android.os.IBinder; @@ -26,6 +28,12 @@ import android.support.v4.app.NotificationCompat; import android.telephony.SmsManager; import android.text.TextUtils; +import android.view.Gravity; +import android.view.SurfaceHolder; +import android.view.SurfaceView; +import android.view.WindowManager; + +import com.google.android.cameraview.CameraView; import org.havenapp.main.HavenApp; import org.havenapp.main.MonitorActivity; @@ -138,8 +146,10 @@ public void onCreate() { showNotification(); + // startCamera(); + PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); - wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, + wakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MyWakelockTag"); wakeLock.acquire(); } @@ -360,4 +370,6 @@ else if (eventTrigger.getType() == EventTrigger.CAMERA_VIDEO) { } + + }