I'm seeing some strangeness on the Samsung Galaxy SIII.
I'm trying to bypass the call to doSdp() with the following code:
Class c = socket.getClass();
Field msdp_field = c.getDeclaredField("mSdp");
msdp_field.setAccessible(true);
msdp_field.set(socket, null);
Field port_field = c.getDeclaredField("mPort");
port_field.setAccessible(true);
port_field.set(socket, 1);
socket.connect();
This seems to work on one of my ICS phones, but, on the Galaxy S3, it seems
to throw a null. I didn't even know you could throw a null.
On Thursday, July 12, 2012 5:02:47 PM UTC-5, Lew wrote:
>
> bob wrote:
>
>> Does anyone know where I can get the correct and current source code for
>> BluetoothSocket?
>>
>> I found this, but it's a little old, I think:
>>
>
> And you think this why?
>
>>
>> http://hi-android.info/src/android/bluetooth/BluetoothSocket.java.html
>>
>
> Did an online search reveal anything newer?
>
> --
> Lew
>
--
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