try to connect via reflection, can solve the problem like below
m = mmDevice.getClass().getMethod("createInsecureRfcommSocket", new
Class[]{int.class});
tmp = (BluetoothSocket)m.invoke(mmDevice, Integer.valueOf(1));


Thanks
Vijay

On Tue, May 29, 2012 at 12:54 PM, Alexei Tchervinsky <
[email protected]> wrote:

> Hi all,
>
> I have NFC-enabled headset Nokia BH-505 and NFC-enabled smartphone Samsung
> Nexus S. I am writing Android Java application to connect the devices via
> NFC for later Bluetooth connection,
>
> NFC Static Handover pass ok, but  Bluetooth connect() from phone to
> headset fails with "Service Discovery Failure" exception.
>
> Does anybody have a similar experience to discuss my problem in more
> details?
>
> Any help will be greatly appreciated.
>
> Thanks in advance,
> Alexei
>
>  --
> 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

Reply via email to