Android Question Bluetooth problem: UUID and device searching

Kanne

Member
Licensed User
Longtime User
Hi,
I just implemented a file transfer with code from the older filetransfer-example.
It working so far, but now I have some questions:

1. UUID
What is the UUID ("dabcabcd-afac-11de-8a39-0800200c9a6") used for ?
Can I use the one from the example or do I have to calculate a new one ?

2. searching BT devices
when starting the activity a spinner is filled with paired devices - this works well.
When searching for new devices my old Sony Xperia finds my newer MotoG5 3 times (which can be handles) but my MotoG5 does not find any device.
Connecting without search can be made to the Sony Xperia ...
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Kanne

Member
Licensed User
Longtime User
the source was copied from

I also downloaded
but there seems to be only WLAN-transfer and no BT implementation.
 
Upvote 0

Kanne

Member
Licensed User
Longtime User
Sure, but the problem is not the filetransfer (which is working) but the search of the BT devices.
All examples with BT have similar problems on my devices: paired devices are shown on startup but new search does only work on my old sony xperia (4.4) whereas no devices are found on moto g5 and lenovo tab which are both running with newer android release.
Maybe the newer devices need an additional permission ?
 
Upvote 0
Top