Carsten Pfeiffer
Carsten Pfeiffer
Yes, a broadcast intent. See `GBDevice#sendDeviceUpdateIntent()` and its usage, for example.
Unless you have some very compelling arguments against the other solution, no. Those instances belong to the service, and should be called though the service.
Care to elaborate on that? I have no idea what use case(s) that might be.
1. A hand move would be at most once per second (for the seconds hand), right? We have the same for live activity, for example. 2. You get the correct...
You would get the device right from the intent that started the activity. In onCreate(), use ``` device = getIntent().getParcelableExtra(GBDevice.EXTRA_DEVICE); ``` Callers have to ensure that they actually pass the...
AFAICS, we have only one SettingsActivity, and indeed it doesn't receive the device. Most of the activities are started from GBDeviceAdapterv2 (where the get the device) and from ControlCenterv2 (where...
As a hotfix, you can use this: ``` DeviceManager deviceManager = ((GBApplication) getApplication()).getDeviceManager(); GBDevice device = deviceManager.getSelectedDevice(); ``` Before adding the EXTRA_DEVICE parameter to all activities, we need to determine...
It should only return the currently connected device (atm there can only be one).
Wow, that's very nice! I will review this (and some other PRs) tomorrow.
Thanks for the updates! GBDevice#getState() is used all over the place. It's the state describing whether a device is disconnected, connected, initializing, busy, etc. I thought that these state changes...