diff --git a/app/release/app-release-4.0.0a.apk b/app/release/app-release-4.0.0a.apk
new file mode 100644
index 0000000..2e7b8fa
Binary files /dev/null and b/app/release/app-release-4.0.0a.apk differ
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 66c7269..eb86d9a 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
package="uk.org.openseizuredetector"
android:versionCode="92"
- android:versionName="3.9.0a">
+ android:versionName="4.0.0a">
diff --git a/app/src/main/java/uk/org/openseizuredetector/AuthenticateActivity.java b/app/src/main/java/uk/org/openseizuredetector/AuthenticateActivity.java
index e26fb79..aae30b8 100644
--- a/app/src/main/java/uk/org/openseizuredetector/AuthenticateActivity.java
+++ b/app/src/main/java/uk/org/openseizuredetector/AuthenticateActivity.java
@@ -50,6 +50,8 @@ public class AuthenticateActivity extends AppCompatActivity {
logoutBtn.setOnClickListener(onLogout);
Button registerBtn = (Button) findViewById(R.id.RegisterBtn);
registerBtn.setOnClickListener(onRegister);
+ Button resetPasswordBtn = (Button) findViewById(R.id.ResetPasswordBtn);
+ resetPasswordBtn.setOnClickListener(onResetPassword);
mUnameEt = (EditText) findViewById(R.id.username);
mPasswdEt = (EditText) findViewById(R.id.password);
@@ -178,6 +180,23 @@ public class AuthenticateActivity extends AppCompatActivity {
}
};
+ View.OnClickListener onResetPassword =
+ new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Log.d(TAG, "onResetPasswordBtn");
+ //Intent i;
+ //i = new Intent(getApplicationContext(), RemoteDbActivity.class);
+ //i.putExtra("url", "https://osdapi.ddns.net/static/register.html");
+ //startActivity(i);
+ String url = "https://osdapi.ddns.net/static/request_password_reset.html";
+ Intent i = new Intent(Intent.ACTION_VIEW);
+ i.setData(Uri.parse(url));
+ startActivity(i);
+ }
+ };
+
+
private void saveAuthToken(String tokenStr) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
prefs.edit().putString(TOKEN_ID, tokenStr).commit();
diff --git a/app/src/main/java/uk/org/openseizuredetector/MainActivity.java b/app/src/main/java/uk/org/openseizuredetector/MainActivity.java
index 7fdcfcd..dc00663 100644
--- a/app/src/main/java/uk/org/openseizuredetector/MainActivity.java
+++ b/app/src/main/java/uk/org/openseizuredetector/MainActivity.java
@@ -270,13 +270,16 @@ public class MainActivity extends AppCompatActivity {
mConnection.mSdServer.sendSMSAlarm();
}
return true;
- case R.id.action_test_phone_alarm:
+
+ /*case R.id.action_test_phone_alarm:
Log.i(TAG, "action_test_phone_alarm");
if (mConnection.mBound) {
mConnection.mSdServer.sendPhoneAlarm();
}
return true;
- case R.id.action_authenticate_api:
+ */
+
+/* case R.id.action_authenticate_api:
Log.i(TAG, "action_autheticate_api");
try {
Intent i = new Intent(
@@ -287,6 +290,8 @@ public class MainActivity extends AppCompatActivity {
Log.i(TAG, "exception starting export activity " + ex.toString());
}
return true;
+ */
+ /*
case R.id.action_export:
Log.i(TAG, "action_export");
try {
@@ -298,6 +303,7 @@ public class MainActivity extends AppCompatActivity {
Log.i(TAG, "exception starting export activity " + ex.toString());
}
return true;
+ */
case R.id.action_logs:
Log.i(TAG, "action_logs");
try {
diff --git a/app/src/main/res/layout/activity_authenticate.xml b/app/src/main/res/layout/activity_authenticate.xml
index f71b98e..063b0cb 100644
--- a/app/src/main/res/layout/activity_authenticate.xml
+++ b/app/src/main/res/layout/activity_authenticate.xml
@@ -4,13 +4,25 @@
android:layout_height="fill_parent"
android:orientation="vertical">
-
+
+
+
+
+
+
-
+ android:orientation="horizontal">
+
+
+
+
+
+ android:text="@string/back" />
-
-
+-->
-
-
+-->
-
+
-
OpenSeizureDetector
- "V3.9.x - Added logging of data to remote server
+ "V4.0 - Added logging of data to remote server
\nV3.7.0 - Added support for Garmin Blood Oxygen Saturation measurements
\nV3.6.2 - Fix of issue with log file permissions on some Android 10 devices and added more translatable strings with polish translation.
\nV3.6.1 - Possible fix for issue with shutting down system and expanded Polish translation to all settings screens.
@@ -328,4 +328,6 @@
Back
Unvalidated Seizure Events
Register New User
+ Reset Password
+ Log in to osdApi Remote Database