cpfeiffer
567f27b0f4
Some initial fixes found by static analysis #92
2015-08-16 00:17:16 +02:00
cpfeiffer
802f48011d
Refactoring of database access
...
- the db is now exclusively locked for one thread
- the charts read from the db and analyze data in a background thread
+ some small cleanups
2015-08-03 01:21:44 +02:00
cpfeiffer
a1f60aab91
Fix logging configuration
...
Make sure to not invoke any logging before it is properly configured.
2015-07-25 00:09:24 +02:00
cpfeiffer
cc549a6c49
Basic database import and export (to external storage)
...
(In the Debug Activity)
2015-07-08 23:11:23 +02:00
cpfeiffer
f105bbbde3
Avoid crash when getExternelDir() returns null (huh!)
2015-06-21 19:44:56 +02:00
Andreas Shimokawa
d2f7169de4
Really, I see no reason to look up a string for a preference key in an xml file
...
If we have to use a key to lookup the string for the key, we can just use that key as the preference key.
2015-06-13 01:12:08 +02:00
Daniele Gobbetti
ac7e21be48
Remove the activity log debug file.
...
This partially reverts commit 8b268a676c
2015-06-12 22:30:14 +02:00
cpfeiffer
2f0d00d645
avoid WITHOUT ROWID when not running at least lollipop #62
2015-06-06 00:10:38 +02:00
cpfeiffer
c4096e6d3c
Add daniele's db optimization the WITHOUT ROWID
...
closes #62
2015-06-05 21:46:56 +02:00
Daniele Gobbetti
8b268a676c
Refactoring of the data ingestion method.
...
* no more ByteBuffer, but a fixed size byte array that gets flushed everytime it's needed
* log of activity data to a separate file (no DB integration yet)
* the size of the buffer must be a multiple of 3 (1 minute of data = 3 bytes) and 20 (the normal size of the chunks we get from the device)
* better logging and more comments in code
2015-06-01 22:20:22 +02:00
Andreas Shimokawa
e79f4523c3
Add SQLite database support for activity data
...
This is now used for morpheuz data and the SleepMonitorActivity
2015-05-30 17:28:03 +02:00
cpfeiffer
4518e8819d
Make file-logging configurable
2015-05-23 00:45:12 +02:00
Andreas Shimokawa
c37cacf43d
Remove id and index from GBDeviceApp in favor of UUIDs
2015-05-18 20:56:19 +02:00
cpfeiffer
d2bcccaeef
Use logback-android for logging to external storage
...
(no WRITE_EXTERNAL_STORAGE permission necessary!)
2015-05-13 23:15:20 +02:00
cpfeiffer
3e79269d43
#46 add missing GBApplication
2015-05-01 09:36:33 +02:00