From 6fa962b50f30bedd2fa96b7bb58d1aee127c5ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Wu=CC=88rl?= Date: Fri, 25 Apr 2014 11:49:12 +0200 Subject: [PATCH] move alarm handler to app service start service at boot time --- AndroidManifest.xml | 11 ++ doc/README.txt | 2 +- .../{AlarmManager.java => AlertManager.java} | 59 +++----- .../android/alarm/listener/AlertListener.java | 11 ++ .../android/alarm/object/AlarmStatus.java | 6 + .../blitzortung/android/app/AppService.java | 124 +++++++++++++-- .../blitzortung/android/app/BootReceiver.java | 14 ++ .../org/blitzortung/android/app/Main.java | 142 +++++++++--------- .../blitzortung/android/app/Persistor.java | 23 +-- .../app/controller/NotificationHandler.java | 13 +- .../android/app/view/AlarmView.java | 33 ++-- .../android/dialogs/AlarmDialog.java | 5 +- .../map/overlay/OwnLocationOverlay.java | 10 +- ...ManagerTest.java => AlertManagerTest.java} | 106 +++++-------- .../map/overlay/OwnLocationOverlayTest.java | 2 +- 15 files changed, 307 insertions(+), 254 deletions(-) rename src/main/java/org/blitzortung/android/alarm/{AlarmManager.java => AlertManager.java} (86%) create mode 100644 src/main/java/org/blitzortung/android/alarm/listener/AlertListener.java create mode 100644 src/main/java/org/blitzortung/android/app/BootReceiver.java rename src/test/java/org/blitzortung/android/alarm/{AlarmManagerTest.java => AlertManagerTest.java} (66%) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 1d5c4487..f4e209d6 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -9,6 +9,7 @@ + + + + + + + +