diff --git a/CHANGELOG.md b/CHANGELOG.md index 2059d7d..9150234 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,17 @@ OpenSeizureDetector Android App - Change Log ============================================ - V2.0 - January 2015 + V2.0.3 - 23 April 2016 + Further modification to beep code to avoid occasional crashes + if system tries to beep during a re-start. + Log faults to alarm log on SD Card. + V2.0.2 - 13 April 2016 + Modified 'beep' code to try to avoid crashes on some systems. + + V2.0.1 - 02 April 2016 + Fixed issue with fault alarms not sounding if watch disconnects from phone. + + V2.0 - 30 March 2016 Behind the Scenes - Merged the server and client apps so only one app is needed to remove code duplication. - Major rewrite of background service back-end to handle different data sources - either pebble or network so it can act as either server or client. @@ -17,4 +27,6 @@ - Added an 'about' page with links to http://openseizuredetector.org.uk web site and copyright and acknowledgement notices. - Added ability to latch alarms so they have to be actively accepted to silence the alarm, rather than it re-setting when the movement stops. - Fixed problem with the system being difficult to shut down if as multiple instances of main screen could be active at once. + + diff --git a/app/app-release-2.0.3.apk b/app/app-release-2.0.3.apk new file mode 100644 index 0000000..072af9e Binary files /dev/null and b/app/app-release-2.0.3.apk differ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e733776..89b4f24 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="24" + android:versionName="2.0.3" > diff --git a/app/src/main/java/uk/org/openseizuredetector/SdServer.java b/app/src/main/java/uk/org/openseizuredetector/SdServer.java index 2e41a63..442350e 100644 --- a/app/src/main/java/uk/org/openseizuredetector/SdServer.java +++ b/app/src/main/java/uk/org/openseizuredetector/SdServer.java @@ -292,6 +292,7 @@ public class SdServer extends Service implements SdDataReceiver { } mToneGenerator.release(); + mToneGenerator = null; } @@ -451,6 +452,7 @@ public class SdServer extends Service implements SdDataReceiver { // Fault if ((sdData.alarmState) == 4 || (sdData.alarmState == 7)) { sdData.alarmPhrase = "FAULT"; + writeAlarmToSD(); faultWarningBeep(); } else { stopFaultTimer(); @@ -477,8 +479,13 @@ public class SdServer extends Service implements SdDataReceiver { * beep for duration milliseconds, but only if mAudibleAlarm is set. */ private void beep(int duration) { - mToneGenerator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, duration); - Log.v(TAG, "beep()"); + if (mToneGenerator!=null) { + mToneGenerator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, duration); + Log.v(TAG, "beep()"); + } else { + mUtil.showToast("Warming mToneGenerator is null - not beeping!!!"); + Log.v(TAG, "beep() - Warming mToneGenerator is null - not beeping!!!"); + } } /* diff --git a/local.properties b/local.properties index 240fb29..7e7f3cb 100644 --- a/local.properties +++ b/local.properties @@ -7,6 +7,5 @@ # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. -#Mon Nov 09 19:12:29 GMT 2015 -ndk.dir=/usr/local/android-sdk-linux/ndk-bundle -sdk.dir=/usr/local/android-sdk-linux +#Sat Apr 23 18:39:21 BST 2016 +sdk.dir=/home/graham/Android/Sdk