In einer frühen Beta Version von Android, ich glaube 0.9 war es, war Bluetooth noch Bestandteil der API. Man hat es aber herausgenommen, da es noch nicht ganz fertig war. Zudem gab es ein major release von der Bluetooth Bibliothek welche Android implementiert.
Google wollte Bluetooth nicht halbfertig veröffentlichen, da man ja abwärtskompatibel bleiben will kann man nicht mehr im nachhinein große Veränderungen am Code machen. Da aber große Änderungen geplant sind (wegen dem major release von bluez 4.x), kommt Bluetooth eben erst dann wenn alles umgestellt ist.
The reason is that we plain ran out of time. The Android Bluetooth API was pretty far along, but needs some clean-up before we can commit to it for the SDK. Keep in mind that putting it in the 1.0 SDK would have locked us into that API for years to come.
Hier der Kommentar von Nick Pelly, einer der Entwickler der Bluetooth API von Android.
The reason is that we plain ran out of time. The Android Bluetooth API was pretty far along, but needs some clean-up before we can commit to it for the SDK. Keep in mind that putting it in the 1.0 SDK would have locked us into that API for years to come.
Here's an example of the problems in the API. Client code is required to pass around IBluetoothDeviceCallback objects in order to receive asynchronous callbacks, but IBluetoothDeviceCallback is meant to be an internal interface. That client code would break the moment we added new callbacks to IBluetoothDeviceCallback.aidl. This is not a recipe for future-proof apps.
To make things even more tricky, the recent introduction of the bluez 4.x series brings its own new API. The Android Bluetooth stack uses bluez for GAP and SDP so you'll see more than a passing resemblance to bluez's interfaces in Android. The bluez 4.x change requires us to carefully consider how to structure our API for the future. Again, remember that once we settle on an interface we need to support it for years going forward.
Empfohlener redaktioneller Inhalt
Mit Deiner Zustimmung wird hier ein externer Inhalt geladen.
Mit Klick auf den oben stehenden Button erklärst Du Dich damit einverstanden, dass Dir externe Inhalte angezeigt werden dürfen. Dabei können personenbezogene Daten an Drittanbieter übermittelt werden. Mehr Infos dazu findest Du in unserer Datenschutzerklärung.