Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid to Nokia data transfer via Bluetooth
    primarykey
    data
    text
    <p>I am trying to connect my Android phone to my Nokia phone. I can discover the Nokia phone through my Andorid application. I can create the socket successfully:</p> <pre><code>btSocket = device.createRfcommSocketToServiceRecord(MY_UUID); </code></pre> <p>But when I try to connect to the nokia phone there is an error in connection. I am trying to run this sample provided in the link below:</p> <p><a href="http://www.anddev.org/code-snippets-for-android-f33/serial-over-bluetooth-simple-test-client-t11106.html" rel="nofollow">http://www.anddev.org/code-snippets-for-android-f33/serial-over-bluetooth-simple-test-client-t11106.html</a></p> <p>And an error is occured when the code <code>btSocket.connect()</code> which is present in the <code>onResume()</code> method is executed:</p> <h3>Logcat:</h3> <pre><code>D/BluetoothAdapter( 176): checkBluetoothAddress E/THINBTCLIENT( 4738): ON RESUME: Exception during connect. E/THINBTCLIENT( 4738): java.io.IOException: Service discovery failed E/THINBTCLIENT( 4738): at android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:377) E/THINBTCLIENT( 4738): at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:201)&lt;br&gt; E/THINBTCLIENT( 4738): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1149) </code></pre> <p>And this is the <code>UUID</code> I am using:</p> <pre><code>private static final UUID MY_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");` </code></pre> <p>Kindly let me know where I am going wrong. I tried to look for help in Stackoverflow and on the internet in general, but no help was found.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload