Android Question BluetoothAdmin and DeviceFound Problem

Firpas

Active Member
Licensed User
Longtime User
I have an application that connects to another device via Bluetooth using the libraries and serial BlluetoothAdmin for certain data.

After obtaining the data, the application must send a report to a bluetooth printer, for which I created a class that creates the report connects to the printer, and also by the Serial BlluetoothAdmin libraries.

The problem is that when BluetoothAdmin defined in the class, produces the "DeviceFound" event, the event raised is the activity event and not the class event.
 

Attachments

  • BtTest.zip
    9.7 KB · Views: 402

umberto_dev

Member
Licensed User
Longtime User
Hallo,
I am in similar condition. As there are several (sometimes even 50 or more) slaves in the range of my master device. I have the problem that waiting for the whole devices' list can be too long, or sometimes it will never reach an end because of the huge numbers.
Looking at code I understand it calls an API that returns a list or something like a list or a map, after the search task.
Is it possible to intercept BT devices found while scanning, in order to check them in progress, avoiding to wait for the end of the whole process, or, at least discriminating or filtering the kind of devices to search to receive a shorter list? (i.e.: avoiding phones' BT.)
Thank you, as usual, for any help.
 
Upvote 0
Top