I need to know the UUID by API 8 (2.2) or, possibly, 2.3.3.
As I understand the documentation, this should be allowed:
phoneDevice = blueAdapter.getRemoteDevice(phoneAddress);
ParcelUuid[] phoneUuids = phoneDevice.getUuids();
Eclipse gives me: "The getUuids () method is undefined for the BluetoothDevice type." But look:
http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getUuids ()
Also, I would like to know how the UUIDs are “split up” inside ParcelUuid []. If I ever manage to get there, how do I get the UUID from parcelUuid []? The documentation for Android bluetooth seems very poor in my opinion.
What a joke! Now I'm trying to get this out of intent, but it also gives: * "EXTRA_UUID cannot be resolved or is not a field" *:
intent.getParcelableExtra(BluetoothDevice.EXTRA_UUID);