I am developing an application which runs on a API 18 device. This snippet of code gives me back a empty list :
public static boolean isBTMouseAttached(Context context)
{
Log.i("Mumble", "isBTMouseAttached");
BluetoothManager mBluetoothManager = (BluetoothManager) context.
getSystemService(Context.BLUETOOTH_SERVICE);
for (BluetoothDevice item : mBluetoothManager.
getConnectedDevices(BluetoothProfile.GATT))
{
Log.i("Mumble", "Name : " + item.getName());
if (deviceIsExternalMouse(item))
return true;
}
return false;
}
Someone has any idea about why ?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.

