Commit Graph

17 Commits

Author SHA1 Message Date
99598c14fe Request BLUETOOTH_SCAN/CONNECT at onAttach on API 31+
Activity.requestPermissions is unreliable from non-UI threads / late
timing on Android 17 (createDeviceContext garbage device id); the
fragment's onAttach request path works. Skip the legacy location
request on API 31+ (BLUETOOTH_SCAN is neverForLocation). Rebuild
Ble.jar.
2026-08-21 20:28:43 -04:00
876ea68622 Use commitNowAllowingStateLoss (API 24+) for fragment registration
The register() runnable can run after the activity has saved its
state (e.g. app started in the background), in which case commitNow
throws IllegalStateException and crashes the app. Rebuild Ble.jar.
2026-08-21 19:52:33 -04:00
90ab682a44 Port to gio gioui.org@20200829. 2020-09-05 14:12:29 -04:00
b0b310a7b0 Bump gio version, use window.Do() instead of RegisterFragment(). 2020-06-19 14:35:49 -04:00
52217c3f6a Add Timber license. Add depjars/ and go:generate commands to build
Java dependencies. Bug fix in retrievePeripheral so that we do not
zero out the reference to the Java Peripheral object.
2019-12-13 13:20:30 -05:00
1601787ecf Switch back to Blessed library after bug fixes. 2019-12-10 09:13:32 -05:00
81be281bcd Merge branch 'blessed' 2019-12-10 09:07:16 -05:00
ca70d55f7e Better handling of connection state and calls to gatt.close(). 2019-12-06 16:22:13 -05:00
c6f6e4f317 Working version with old BleConnect code instead of Blessed. 2019-12-06 14:22:16 -05:00
57f19407dd Merge branch 'master' into blessed 2019-12-06 13:59:07 -05:00
3bc712870d Improve handling of peripheral disconnections and some refactoring. 2019-12-05 08:49:41 -05:00
e7f82ac9e7 Working Android version using Blessed library. 2019-12-04 17:25:10 -05:00
4cdaceda76 Working Android version using Blessed library. 2019-12-04 17:06:14 -05:00
fc0cab1ee8 Further debuging version. 2019-12-04 16:09:54 -05:00
4db9b4a5ed Conversion to Blessed library for Android -- interim check-in,
notifications do not work.
2019-12-04 14:47:56 -05:00
2af636b946 Doc updates, add "wantScan" to BleConnect.java so scan starts
automatically upon grant of permissions or device enable.
2019-11-27 11:46:04 -05:00
7223b8c380 Documentation 2019-11-27 11:11:42 -05:00