Sunday, April 15, 2012

[android-developers] How to pair and connect a device programmatically using bluetooth in Android?



Hi,

Well there are plenty of question already have been asked on StackOverflow about how to paired & connect a remote bluetooth device with android.

I have tried all the of them, haven't find any proper link or documentation regarding pairing with remote device. Also about I have tried with connecting my laptop with android programmatically, but I was getting following error:

java.io.IOException: Service discovery failed
at android
.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:395)
at android
.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:209)

There are number of reference for connecting android device, one that I follow is this. But it's not working in my case. I am trying to connect with my vaio laptop and I have Samsung Galaxy S android device.

If anybody knows how to pair as well as connect the device programmatically then please tell me the solution,

Any help would be highly appreciated

Thanks,

Pawan

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate