How do you set btDevice?
On Jun 15, 2012 7:04 PM, "mike digioia" <[email protected]> wrote:
> Bluetooth error on socket call-
>
> Anyone know what the issues are with my Samsung Nexus S device when I get
> this error in my native code call to the socket LIB -- code starts here:
>
> btface = -1;
> btDevice = NULL;
> btsock = socket(AF_BLUETOOTH, SOCK_STREAM, BTPROTO_RFCOMM);
>
> if ( btsock < 0 ) {
> btDevice=NULL;
> #ifdef DEBUG
> ccnd_msg(h, "ccnd_run: btDevice is NULL\n");
> #endif
> ______code end
>
> ______Debug Message
>
> I/CCND ( 709): 1339785624.784335 ccnd[709]: ccnd_run: btDevice is NULL
>
> I can use the example BT chat application fine on this phone with
> discovery. So the BT device is working fine. Something with the socket call
> or libbluetooth.so (copied from the phone) I am using.
>
> /mpd
>
> --
> 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 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