Open arajthala opened 7 years ago
Actually, I'm trying to implement auto connect; so trying to reconnect the previously connected device in my service and i see this error if the bluetooth device is not in range or turned off.
I try to do the same thing and meet the same question. Did you solve it?
I am getting following exception when I'm not able to connect to bluetooth device and then I navigate to some other page. Is there any way to catch this exception in my code?
E/System:Uncaught exception thrown by finalizer E/System: java.io.IOException: socket not created at android.net.LocalSocketImpl.shutdownInput(LocalSocketImpl.java:404) at android.net.LocalSocket.shutdownInput(LocalSocket.java:207) at android.bluetooth.BluetoothSocket.close(BluetoothSocket.java:801) at android.bluetooth.BluetoothSocket.finalize(BluetoothSocket.java:309) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222) at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)