Android Bluetooth – how to start pairing
I want to initiate a pairing request on a non Android device (not connected at this time). This can be found on the settings application > Network > Bluetooth Settings > scan and click the device. A pop-up window will pop up on both devices with 6-digit pins
According to the Android documentation, if I do such a thing, it should also appear in my application
device.createRfcommSocketToServiceRecord(MY_UUID);
According to Android API documentation
And also mentioned this
Even if I use the sample Bluetooth chat application (just test if it starts pairing on the first connection), it doesn't work
I also tried to use a universal UDID like "00001101-0000-1000-8000-00805f9b34fb", but it didn't help
I can't find the source code of the setting application (Android OS 2.1) to find out myself. The source code provided in Android Git is applicable to Android 2.3
Even if you can't answer this question, just point out that the Android package setting application source of Android 2.1 may be useful to me