Commit Graph

608 Commits

Author SHA1 Message Date
Graham Jones
4fb83d04c9 Added check of system battery usage optimisation with dialog to prompt user to disable it. 2022-02-05 20:40:32 +00:00
Graham Jones
dd7c01b8ea Fixed data sharing status box text on MainActivity. 2022-02-03 20:44:09 +00:00
Graham Jones
d911d89e34 Added error checking for network connection issues - MainActivity logic needs correcting though - Airoplane mode shows as ok 2022-02-02 22:17:43 +00:00
Graham Jones
c12a8097c6 Corrected issue with default AlarmFreqMin setting - changed to 8Hz 2022-02-01 22:42:31 +00:00
Graham Jones
87088c63b9 Added checks on network status to data sharing status area 2022-02-01 22:40:05 +00:00
Graham Jones
d2874cc031 Added dividers in main activity menu 2022-01-31 21:18:43 +00:00
Graham Jones
93e68dfb0b Draft D of V4.0.0 built 2022-01-29 22:03:38 +00:00
Graham Jones
6a98054857 Added code to check if battery optimisation is switched on...but it does not seem to work 2022-01-29 21:10:38 +00:00
Graham Jones
c6a838fe1d Changed LogManagerControlActivity to slow down UI updates once the UI is populated, not stop them alltogether 2022-01-29 20:52:29 +00:00
Graham Jones
02510d455d Updated text from 'Remote Database' to 'Share Data' 2022-01-29 20:14:09 +00:00
Graham Jones
e973154896 Added data sharing status text field to main activity 2022-01-29 19:57:56 +00:00
Graham Jones
fd1aff80b1 Fixed problem with default logging preference settings being incorrect 2022-01-28 23:04:44 +00:00
Graham Jones
438f0cb0b9 Tidied up menus and button labels - call this version 4.0.0a - very alpha but it does most of what it needs to :) 2022-01-27 22:46:32 +00:00
Graham Jones
7f9a61c2a5 Added New User Registration button to authentication activity 2022-01-27 15:05:11 +00:00
Graham Jones
203ffdc07f Added notification of unvalidated events in the database that will take user to the log manager activity 2022-01-26 20:54:25 +00:00
Graham Jones
27a508ce88 Tidying up Authenticate activity 2022-01-26 19:15:52 +00:00
Graham Jones
bdd7b49358 Updated WebApiConnection to use callbacks rather than interfaces, moved the shared preference handling code into SdServer so it is all together. Updated the various activities to use the single instance of LogManager and WebApiConnection in SdServer rather than creating new instances which are likely to resuld in duplicate data being uploaded. 2022-01-23 22:13:38 +00:00
Graham Jones
4d1c217109 Merge branch 'Logging' of https://github.com/OpenSeizureDetector/Android_Pebble_SD into Logging 2022-01-23 19:56:35 +00:00
Graham Jones
9f870e69af Added checks for null response in volly error callbacks to stop it crashing if there is no network connection. 2022-01-23 19:56:25 +00:00
Graham Jones
0bf9567bfb Added checks for null response in volly error callbacks to stop it crashing if there is no network connection. 2022-01-23 06:43:57 +00:00
Graham Jones
990b9e345c Setting up test framework for logmanager - does not do anything useful yet! 2022-01-23 06:29:43 +00:00
Graham Jones
8c7cd852bb Converted all localDB select queries to async tasks 2022-01-21 22:34:55 +00:00
Graham Jones
40251112b6 Updated getEventsList to use a generic asynctask class for doing queries - seems to work so will convert the other 'get' functions to use it 2022-01-21 20:31:01 +00:00
Graham Jones
29bb02b963 Converted some localDB operations to AsyncTask to avoid hogging the UI thread 2022-01-21 11:50:21 +00:00
Graham Jones
13200e95b5 Added OSD Alarm state and refresh button to EditEventActivity 2022-01-21 10:40:16 +00:00
Graham Jones
c052178082 LogManagerActivity now displays remote database events and allows editing 2022-01-19 21:01:03 +00:00
Graham Jones
0469604fef EditEventActivity now retrieves data and saves it back to the remote database 2022-01-19 19:01:48 +00:00
Graham Jones
a4a1faf67c getEvent seems to be working... 2022-01-17 23:04:43 +00:00
Graham Jones
cd5ef5192a Modified EditEvent to use radiobuttons 2022-01-17 22:26:23 +00:00
Graham Jones
307a268c4a Converted eventType from listview to radiogroup 2022-01-17 19:56:40 +00:00
Graham Jones
ff9bb06241 Populating ListViews for Event type and sub-type, but can't get the selected one to highlight. Will change to use spinners instead. 2022-01-17 18:34:49 +00:00
Graham Jones
1c20387753 Added edit event activity. Populates event type and sub-type from file stored on remote server. Needs to actually retrieve the event data from the remote database and save it befor eit is working properly. 2022-01-15 22:16:37 +00:00
Graham Jones
01e07f2e12 Disabled logging data to CSV file now we have the database data logging working 2022-01-10 20:39:31 +00:00
Graham Jones
dc5719c64c Added delay to allow activity to bind to server before trying to access server variables. 2022-01-10 20:29:36 +00:00
Graham Jones
783abd93f0 Converted LogManagerControlActivity to use the SdServer LogManager instance rather than a separate one - just in case it causes problems... 2022-01-10 19:40:20 +00:00
Graham Jones
fefca589dd Tidied up mute alarms button wording (in English!) to avoid the button expanding when muted. 2022-01-10 19:02:07 +00:00
Graham Jones
e1f46efe30 Merge branch 'Logging' of https://github.com/OpenSeizureDetector/Android_Pebble_SD into Logging 2022-01-10 16:42:08 +00:00
Graham Jones
6f883cc318 Added 'Raise Alarm' button on main screen 2022-01-10 16:42:02 +00:00
Graham Jones
ef27ba430d Added 'Raise Alarm' button on main screen 2022-01-10 16:31:25 +00:00
Graham Jones
ee2e5042ec Store remote event Id in local database uploaded field. 2022-01-09 23:08:00 +00:00
Graham Jones
38f6e3233f Added upload status to event list in local database. Added (non-functioning) click listener ready to open a new activity to edit the remote database event entry. 2022-01-08 22:01:23 +00:00
Graham Jones
276f14afba Added data logging preferences to settings page 2022-01-07 22:05:30 +00:00
Graham Jones
5294353bcf Report seizure function now seems to be working. Added list of events to LogManagerControlActivity. Removed redundant files that look similar to the working code. 2022-01-07 20:02:06 +00:00
Graham Jones
f303adef50 Added 'Report Seizure' activity. UI seems to work, but database part that looks for the closest datapoint is not working. 2022-01-05 21:55:50 +00:00
Graham Jones
5d9f920b2c Added activity to view the remote database data - needs to point to a (not yet written) ReactJS based page - just shows the API raw data at the moment. 2022-01-05 19:49:23 +00:00
Graham Jones
58a62d1469 Deleting some unused files to tidy up the repository 2022-01-05 18:13:45 +00:00
Graham Jones
8a2bbd1cfb Added LogManagerControl activity to view and control the status of the LogManager 2022-01-05 18:03:46 +00:00
Graham Jones
93c0fc91cc Fixed two issues: Now uploads raw data as well as processed data and will upload ALARM events in preference to WARNING events (you only get one ALARM event uploaded even if the data goes OK->WARNING->ALARM->WARNING->OK 2022-01-05 10:41:50 +00:00
Graham Jones
68bf89b0ff Added prune database option to limit size of local database 2022-01-04 21:08:33 +00:00
Graham Jones
0715ce4f44 Fixed issue with 12 hour times - now uses 24 hour times. 2022-01-04 20:41:54 +00:00