Trouble using the Bluetooth ServiceDiscoveryAgent in Android ...
-
Hi ... I'm trying to build a small example to scan the available services of a Host that has a running RFcomm server. On the Host side I managed to successfully register a new service with my own UUID and it starts to listen for incoming RFcomm connections. On the Client side I prepared a small Qt app as well that discovers available bluetooth devices with the DeviceDiscoveryAgent and when it finds the one I'm looking for (the Host) I start a ServiceDiscoveryAgent to scan the services on that Host. The Client app works well when I compile it for Linux 64 bits but when I compiled it for Android I can only scan the devices, when I start to scan the services it doesn't find the one I registered earlier. I looked around the documentation to see if there was anything specific about the Android platform that could change the way the two ends behave but I couldn't find anything. All the code I used was mainly from the btscanner example and the ping pong examples.
Does anyone have any ideas or has anyone managed to get an example like this running ?
Thanks ...