kevinisbest / backport-android-bluetooth

Automatically exported from code.google.com/p/backport-android-bluetooth
0 stars 0 forks source link

BluetoothSocket.connect() does not throw an Exception on failure #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get a BluetoothSocket via 
BluetoothDevice.createRfcommSocketToServiceRecord(UUID) from a device which is 
known but has Bluetooth disabled,
2. Call BluetoothSocket.connect()
3.

What is the expected output? What do you see instead?
I expect to get the promised IOException because the connection was not build 
up properly. Instead the connection process seems to work fine.

BluetoothSocket.getInputStream()/.getOutputStream() also return objects but 
using read() and write() lead to IOExceptions.

What version of the product are you using? On what operating system?
Version 2.2.2

Please provide any additional information below.
See BluetoothSocket.connectNative() in the sources. When catching the 
IOException only a Log.e() is done but no IOException is thrown.

Original issue reported on code.google.com by sohl...@gmail.com on 16 Aug 2010 at 4:30