Android bluetooth UUID Verbindungs-APP auf ANDROID

Baue ich eine android-APP, hält Spuren der bluetooth-Verbindung auf ein Gerät und löst einen alarm im Falle dass einige von Ihnen verloren gehen (ob das remote-Gerät außerhalb der Reichweite oder ausgeschaltet, Bluetooth).

Die Sache ist, dass auf der android-Dokumentation, Fragen Sie Sie für eine UUID, um eine Verbindung herzustellen.

Einer uuid ein Universally Unique Identifier (UUID) der standardisierten 128-bit-format für eine string-ID zur eindeutigen Identifizierung von Informationen. Es wird benutzt, um eindeutig zu identifizieren, Ihre Anwendung in der Bluetooth-Dienst.

 public ConnectThread(BluetoothDevice device) {
    //Use a temporary object that is later assigned to mmSocket,
    //because mmSocket is final
    BluetoothSocket tmp = null;
    mmDevice = device;

    //Get a BluetoothSocket to connect with the given BluetoothDevice
    try {
        //MY_UUID is the app's UUID string, also used by the server code
        tmp = device.createRfcommSocketToServiceRecord(MY_UUID);
    } catch (IOException e) { }
    mmSocket = tmp;
}

So, ich bin NICHT der Installation einer APP auf beiden Geräten, habe ich nicht bekommen, um meine eigene UUID, ich will die android statt... aber ich kann es nicht finden überall.

Vielleicht bin ich nicht nähert sich dem problem richtig... könnten Sie mir helfen, die Jungs? 🙂
Vielen Dank im Voraus

InformationsquelleAutor FRR | 2014-01-30

Schreibe einen Kommentar