android-bluetooth

iOS Background BLE advertising not detectable by Android

孤人 提交于 2020-05-10 18:35:45
问题 When an iOS BLE peripheral enters the background state, the advertising packets are not emitted in the regular manner and they are placed in a special “overflow” area which is only detectable by another iOS device explicitly looking for this device. The bluetooth-peripheral Background Execution Mode That said, you should be aware that advertising while your app is in the background operates differently than when your app is in the foreground. In particular, when your app is advertising while

Implement Bluetooth Connection into Service or Application Class without losing connection into a Device

﹥>﹥吖頭↗ 提交于 2020-05-07 19:59:14
问题 i need some help, can you explain to me how can i implement the Bluetooth Connection from my Application into my Mini Thermal Printer Device. The scenario is like this. I already connect my application into device but when the Activity destroyed, the connection also disconnected. Yes, i am aware that when the activity destroyed all the task within the activity is affected. The device has it's own SDK. and that what i am using now. That's why, i really need your help to get over on this

Implement Bluetooth Connection into Service or Application Class without losing connection into a Device

流过昼夜 提交于 2020-05-07 19:55:10
问题 i need some help, can you explain to me how can i implement the Bluetooth Connection from my Application into my Mini Thermal Printer Device. The scenario is like this. I already connect my application into device but when the Activity destroyed, the connection also disconnected. Yes, i am aware that when the activity destroyed all the task within the activity is affected. The device has it's own SDK. and that what i am using now. That's why, i really need your help to get over on this

How to revoke Google Nearby permissions for an app?

喜你入骨 提交于 2020-03-05 03:55:27
问题 The first time I tried to test the Google Nearby API, I saw an "Allow to use Nearby" dialog which prompted for permission and this dialog mentioned that this setting could be changed later from Settings > Google > Nearby . However this location does not seem to exist on the app. I do see Settings > Google but there is no Nearby under the Google settings (tried on both device and emulator). I also found the same information online at https://support.google.com/accounts/answer/6260286?hl=en but

How to revoke Google Nearby permissions for an app?

筅森魡賤 提交于 2020-03-05 03:55:09
问题 The first time I tried to test the Google Nearby API, I saw an "Allow to use Nearby" dialog which prompted for permission and this dialog mentioned that this setting could be changed later from Settings > Google > Nearby . However this location does not seem to exist on the app. I do see Settings > Google but there is no Nearby under the Google settings (tried on both device and emulator). I also found the same information online at https://support.google.com/accounts/answer/6260286?hl=en but

Android Bluetooth ScanFilter Partial String Matching

落爺英雄遲暮 提交于 2020-02-15 08:01:07
问题 I'm looking to use a ScanFilter to search for a set of bluetooth devices. I know the address of all these devices starts with 00:A0:50, and then the last 6 digits vary, so all addresses will look like 00:A0:50:XX:XX:XX. I'm looking for a way to use setDeviceAddress to find devices with addresses beginning with those 6 digits. This takes a string as input. The relevant code is below. ScanFilter cypressFilter = new ScanFilter().Builder() //we know that their mac address will always start with

How to extract latitude and longitude from location_and_speed characteristic?

那年仲夏 提交于 2020-02-06 04:26:24
问题 In an Android app in central role - how do you please get a hold of the latitude and longitude stored in the org.bluetooth.characteristic.location_and_speed characteristic in the org.bluetooth.service.location_and_navigation service of a BLE peripheral? I am trying the following Java-code - private float mLatitude; private float mLongitude; private static final UUID LOCATION_AND_NAVIGATION = UUID.fromString("00001819-0000-1000-8000-00805f9b34fb"); private static final UUID LOCATION_AND_SPEED

How to concatenate two observable operations in a linear fashion (do first this thing and after that one finishes do the second thing)?

╄→гoц情女王★ 提交于 2020-02-03 08:27:08
问题 Polidea has released a new handy library called RxAndroidBle which is very useful for dealing with a lot of issues when you're using vanilla Bluetooth APIs. Before explaining more the idea is to have a POJO model that has all the recent values that the device send (or I query) to me (in this case is represented by a Map object): If I want to be notified about multiple characteristic notifications I can do this: final UUID serviceUuid = // your service UUID final Map<UUID, byte[]> genericModel

How can i scanning the mobile phone's bluetooth by using bluetoothLescanner?

醉酒当歌 提交于 2020-01-25 07:25:14
问题 I asked this question a few hours ago, but I still can't solve it. I'm trying to catch the BLE signal, and get the rssi vlue by using "BluetoothLeScanner" to measure the distance between two phone. But, my program detects every BLE_signal except the Bluetooth signal on my phone. The following is what I printed out with Log.e as I ran the program. ''' 2019-12-01 00:21:16.319 22089-22089/com.example.bluetooth E/get_RSSI: name: null, addr: 33:DC:55:32:73:96, rssi: -88, distance: 8

Android BLE: “Scan failed, reason app registration failed for UUID”

自闭症网瘾萝莉.ら 提交于 2020-01-23 06:37:13
问题 I am developing an application using the RxAndroidBle library that performs BLE scans regularly about every 30 seconds, and some BLE operations every minute or so. After a couple of hours, usually between 5 and 24h, the scan stops working. Every time a scan is supposed to be started, I get: 09-05 09:08:37.160 8160-8160/myapp D/BluetoothAdapter: startLeScan(): null 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09-05 09:08:37.165 8160-8160/myapp D/BluetoothAdapter: STATE_ON 09