1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-24 07:38:45 +02:00
Commit Graph

30 Commits

Author SHA1 Message Date
cpfeiffer
3fe9195d0d Avoid warning in unsetDynamicState() 2015-06-06 23:13:26 +02:00
cpfeiffer
9e4e50be47 Initial work on synchronizing activity data with feedback.
A device now has a busy flag (set during synchronization). While busy,
no other communication with the device shall occur (TODO)

Refactors the non-bluetooth actions a bit  #45

Next step: make use of the busy state in ControlCenter (show
a busy cursor) and in BluetoothCommunicationService (to not call other
operations while busy)
2015-06-06 00:40:16 +02:00
cpfeiffer
7f89f4bb57 Some fixes regarding device initialization, should avoid disconnects
Avoid repeated initializations and device info requests. Fix unsetting
of dynamic state (e.g. battery info) when initialized.
2015-06-01 21:47:02 +02:00
cpfeiffer
11884d8073 Improve logging 2015-06-01 21:47:02 +02:00
cpfeiffer
9a26769c3e Search & replace: use slf4j for logging instead of Logcat directly
For a start, use android-logger as backend. Needs a better configuration
but no time right now.

For file-logging we will use logback as slf4j-implementation.
2015-05-12 06:33:37 +02:00
cpfeiffer
39d84831ed Unset dynamic device state (like battery level, etc.) when disconnected 2015-05-10 00:05:29 +02:00
cpfeiffer
50034e0bfe Request battery info in initialize() 2015-05-05 23:25:54 +02:00
Andreas Shimokawa
3e85efa898 Display battery level if known. Should work on Miband, untested. 2015-05-05 22:52:25 +02:00
Andreas Shimokawa
d09b5442cf Put FW/HW info inside its own TextView to cleanup the device list 2015-05-05 11:16:57 +02:00
cpfeiffer
9df661bd96 Initial (ugly) support for device discovery and pairing (#3) 2015-05-05 00:48:54 +02:00
cpfeiffer
8b3b4d0882 #46 make all strings localizable 2015-05-01 01:26:30 +02:00
cpfeiffer
1e3ba57b03 fix unpaired MI devices disappearing from view (#15) 2015-04-20 23:25:46 +02:00
cpfeiffer
f6208f1031 fix warning 2015-04-20 22:44:22 +02:00
Andreas Shimokawa
16ea52e83c add hardware revision string to GBDevice, get and display HW Revision from Pebble 2015-04-20 12:48:32 +02:00
Andreas Shimokawa
fbbc808ca8 Make GBDevice parcable to make passing it via Intents more convinient 2015-04-20 11:58:59 +02:00
Andreas Shimokawa
cd0139cd7c add isConnecting() method to GBDevice 2015-04-20 10:50:30 +02:00
cpfeiffer
2dcd95a1f5 #15 support for reading firmware version and battery info 2015-04-19 22:20:47 +02:00
cpfeiffer
7b433f0d18 add state string for INITIALIZED 2015-04-19 15:21:15 +02:00
cpfeiffer
88e2b7ff99 #15 automatically toggle the broadcast receiver using connectoin status
Makes "real" notifications where for the MI Band, not just those from
the debug activity.
2015-04-19 14:35:28 +02:00
Andreas Shimokawa
dd12bb11b2 reformat code with androidstudio 2015-04-19 11:28:03 +02:00
cpfeiffer
09914e6da0 #15 Initial support for MI Band
1) The MAC address has to be added manually for now (Settings -> Debug) 
2) Configure other notifications as desired
3) After doing that, restart Gadgetbridge, after that, the device should
be visible.
4) Tap it to connect
5) Try the Debug activity via the Menu to send some dummy notifications
=> Your MI should vibrate and blink

Also: add some extra files necessary to support Eclipse ADT. To be
migrated to Andmore, later.
2015-04-19 02:37:29 +02:00
Andreas Shimokawa
bb44cb1e19 reformat code with androidstudio 2015-04-13 11:22:03 +02:00
cpfeiffer
09bb5d4a3e Refactoring: extracted inner GBDeviceIOThread classes to own files
To enable this, extracted some shared functionality into new GB helper
class.
2015-04-13 01:02:26 +02:00
Andreas Shimokawa
90fe75e044 get free slot always before actually installing a pbw. fixes #17 and #18 2015-04-07 23:57:12 +02:00
Andreas Shimokawa
2c1cacedb3 Pebble: working on app installation (WIP, do not use) 2015-04-06 20:58:35 +02:00
Andreas Shimokawa
9d74cee093 add icons for pebble and watchfaces. Store app type in GBDeviceApp. Store device type in GBDevice. 2015-03-31 23:34:19 +02:00
Andreas Shimokawa
0ccb818f58 Added AppManager, does not do anything useful yet. Only lists installed Apps. 2015-03-25 22:23:45 +01:00
Andreas Shimokawa
2e7f45433a display connection status in the device list 2015-03-22 23:38:51 +01:00
Andreas Shimokawa
05c07aa611 Get and display Pebble firmware version when connected. 2015-03-22 00:34:54 +01:00
Andreas Shimokawa
4e465928e6 List all suported devices and connect on tap. Remove the connect button. 2015-03-21 18:18:07 +01:00