v2.0.8 - check for errors interpreting settings sent from watch - indicative of incompatible watch app version installed.

This commit is contained in:
Graham Jones
2016-08-24 20:55:03 +01:00
parent 3e46f50c47
commit 2df84341f2
4 changed files with 25 additions and 13 deletions

View File

@@ -1,6 +1,10 @@
OpenSeizureDetector Android App - Change Log OpenSeizureDetector Android App - Change Log
============================================ ============================================
V2.0.8 - 24 Aug 2016
- Added checks for correct version of pebble watch app for compatibility with this
Android App.
V2.0.7 - 18 Aug 2016 V2.0.7 - 18 Aug 2016
- Added AnalysisPeriod setting to Pebble Datasource to change - Added AnalysisPeriod setting to Pebble Datasource to change
the period between data analyses (rather than the default 5 seconds the period between data analyses (rather than the default 5 seconds

BIN
app/app-release-2.0.8.apk Normal file

Binary file not shown.

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="uk.org.openseizuredetector" package="uk.org.openseizuredetector"
android:versionCode="28" android:versionCode="29"
android:versionName="2.0.7"> android:versionName="2.0.8">
<uses-sdk android:minSdkVersion="14" /> <uses-sdk android:minSdkVersion="14" />

View File

@@ -412,6 +412,7 @@ public class SdDataSourcePebble extends SdDataSource {
if (data.getUnsignedIntegerAsLong(KEY_DATA_TYPE) if (data.getUnsignedIntegerAsLong(KEY_DATA_TYPE)
== DATA_TYPE_SETTINGS) { == DATA_TYPE_SETTINGS) {
Log.v(TAG, "DATA_TYPE = Settings"); Log.v(TAG, "DATA_TYPE = Settings");
try {
mSdData.analysisPeriod = data.getUnsignedIntegerAsLong(KEY_SAMPLE_PERIOD); mSdData.analysisPeriod = data.getUnsignedIntegerAsLong(KEY_SAMPLE_PERIOD);
mSdData.alarmFreqMin = data.getUnsignedIntegerAsLong(KEY_ALARM_FREQ_MIN); mSdData.alarmFreqMin = data.getUnsignedIntegerAsLong(KEY_ALARM_FREQ_MIN);
mSdData.alarmFreqMax = data.getUnsignedIntegerAsLong(KEY_ALARM_FREQ_MAX); mSdData.alarmFreqMax = data.getUnsignedIntegerAsLong(KEY_ALARM_FREQ_MAX);
@@ -423,6 +424,13 @@ public class SdDataSourcePebble extends SdDataSource {
mSdData.alarmRatioThresh = data.getUnsignedIntegerAsLong(KEY_ALARM_RATIO_THRESH); mSdData.alarmRatioThresh = data.getUnsignedIntegerAsLong(KEY_ALARM_RATIO_THRESH);
mSdData.batteryPc = data.getUnsignedIntegerAsLong(KEY_BATTERY_PC); mSdData.batteryPc = data.getUnsignedIntegerAsLong(KEY_BATTERY_PC);
mSdData.haveSettings = true; mSdData.haveSettings = true;
} catch (Exception ex) {
mUtil.showToast("*** Error interpreting settings sent from watch - Please check you have "
+ "the latest version of the watch app installed by using the OpenSeizureDetector "
+ "menu to install the Watch App");
mUtil.writeToSysLogFile("Error interpreting settings received from watch - wrong version "
+ "of watch app installed?");
}
} }
if (data.getUnsignedIntegerAsLong(KEY_DATA_TYPE) if (data.getUnsignedIntegerAsLong(KEY_DATA_TYPE)
== DATA_TYPE_RAW) { == DATA_TYPE_RAW) {