You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are not targeting API31 (Android12), use version 1.5.1.
38
+
34
39
Projectsnot migrated to AndroidJetpack should use version 1.3.1, which is feature-equal to 1.4.0.
35
40
36
41
AsJCenter has shut down, starting from version 1.4.4 the library is available only on MavenCentral.
@@ -57,10 +62,21 @@ already enabled desugaring. But if this causes problems for you, please use vers
57
62
58
63
Following [this](https://developer.android.com/reference/android/bluetooth/le/BluetoothLeScanner#startScan(android.bluetooth.le.ScanCallback)) link:
59
64
60
-
>An app must have [ACCESS_COARSE_LOCATION](https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) permission in order to get results. An App targeting Android Q or later must have [ACCESS_FINE_LOCATION](https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) permission in order to get results.
61
-
For apps targeting [Build.VERSION_CODES#R](https://developer.android.com/reference/android/os/Build.VERSION_CODES#R) or lower, this requires the [Manifest.permission#BLUETOOTH_ADMIN](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_ADMIN) permission which can be gained with a simple `<uses-permission>` manifest tag.
62
-
For apps targeting [Build.VERSION_CODES#S](https://developer.android.com/reference/android/os/Build.VERSION_CODES#S) or or higher, this requires the [Manifest.permission#BLUETOOTH_SCAN](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_SCAN) permission which can be gained with [Activity.requestPermissions(String[], int)](https://developer.android.com/reference/android/app/Activity#requestPermissions(java.lang.String[],%20int)).
63
-
In addition, this requires either the [Manifest.permission#ACCESS_FINE_LOCATION](https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) permission or a strong assertion that you will never derive the physical location of the device. You can make this assertion by declaring `usesPermissionFlags="neverForLocation"` on the relevant `<uses-permission>` manifest tag, but it may restrict the types of Bluetooth devices you can interact with.
65
+
>An app must have [ACCESS_COARSE_LOCATION](https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION)
66
+
permission in order to get results. AnApp targeting AndroidQor later must have
For apps targeting [Build.VERSION_CODES#R](https://developer.android.com/reference/android/os/Build.VERSION_CODES#R)
70
+
or lower, this requires the [Manifest.permission#BLUETOOTH_ADMIN](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_ADMIN)
71
+
permission which can be gained with a simple `<uses-permission>` manifest tag.
72
+
For apps targeting [Build.VERSION_CODES#S](https://developer.android.com/reference/android/os/Build.VERSION_CODES#S)
73
+
oror higher, this requires the [Manifest.permission#BLUETOOTH_SCAN](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_SCAN)
In addition, this requires either the [Manifest.permission#ACCESS_FINE_LOCATION](https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION)
77
+
permission or a strong assertion that you will never derive the physical location of the device.
78
+
You can make this assertion by declaring `usesPermissionFlags="neverForLocation"` on the relevant
79
+
`<uses-permission>` manifest tag, but it may restrict the types of Bluetooth devices you can interact with.
64
80
65
81
## API
66
82
@@ -178,7 +194,7 @@ the application. No changes are required to make it work.
178
194
To use this feature:
179
195
180
196
```java
181
-
Intent intent = new Intent(context, MyReceiver.class); // explicite intent
197
+
Intent intent = new Intent(context, MyReceiver.class); // explicit intent
0 commit comments