Hello,
I was very excited to update my Nexus 7 to 4.2 but VERY disappointed to
find this piece of code in the source:
==============================================================
static bt_status_t btsock_listen(btsock_type_t type, const char*
service_name,
const uint8_t* service_uuid, int channel, int* sock_fd, int flags)
{
if((service_uuid == NULL && channel <= 0) || sock_fd == NULL)
{
error("invalid parameters, uuid:%p, channel:%d, sock_fd:%p",
service_uuid, channel, sock_fd);
return BT_STATUS_PARM_INVALID;
}
*sock_fd = -1;
bt_status_t status = BT_STATUS_FAIL;
switch(type)
{
case BTSOCK_RFCOMM:
status = btsock_rfc_listen(service_name, service_uuid, channel,
sock_fd, flags);
break;
case BTSOCK_L2CAP:
error("bt l2cap socket type not supported, type:%d", type);
status = BT_STATUS_UNSUPPORTED;
break;
case BTSOCK_SCO:
error("bt sco socket not supported, type:%d", type);
status = BT_STATUS_UNSUPPORTED;
break;
default:
error("unknown bt socket type:%d", type);
status = BT_STATUS_UNSUPPORTED;
break;
}
==============================================================
Why is L2CAP not supported on Android 4.2? I know in 4.1 the only way
possible was through reflection because for some odd reason L2CAP was not
available to the public API.... why is this?
I cannot seem to find any mention of this on Google's official API changes:
http://developer.android.com/about/versions/android-4.2.html nor am I
seeing this in the API differences
page
http://developer.android.com/sdk/api_diff/17/changes/pkg_android.bluetooth.html
What is going on? I know Google has historically been very bad with their
API documentation, but when will the change happen?!
--
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