[android-developers] Re: How to create Insecure RFCOMM Socket in Android?
What version of Bluetooth does the device you run on support? And what
version of Android?
On Mar 14, 11:51 pm, javame_android <su...@softwebsolutions.com>
wrote:
> Hi,
>
> I am looking at way of connecting over rfcomm socket insecurely. I was
> able to find the way mentioned below
>
> Method m = device.getClass().getMethod("createInsecureRfcommSocket",
> new Class[] {int.class});
> tmp = (BluetoothSocket) m.invoke(device, 1);
>
> This for the time being is doing what I want. Even the documentation
> over here says that we need to use
> createInsecureRfcommSocketToServiceRecord for insecure connections.
> But there is no such method. The only way I found out was using
> reflection as shown above. And even in that the method that is passed
> in createInsecureRfcommSocket and not
> createInsecureRfcommSocketToServiceRecord. I just wanted to know how
> reliable is this way. If I mention
> createInsecureRfcommSocketToServiceRecord in method the connection
> never happens. Anyone with experience in Bluetooth Communication in
> Android please help me out with this.
--
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