cogbee / backport-android-bluetooth

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

NullPointerException when getting bonded devices #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Imported backport bluetooth in my project
Set<BluetoothDevice> deviceSet = this.bluetoothAdapter.getBondedDevices();

I get a NullPointerException :(

04-04 19:46:03.669: ERROR/AndroidRuntime(1305): Caused by:
java.lang.NullPointerException
04-04 19:46:03.669: ERROR/AndroidRuntime(1305):     at
backport.android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.ja
va:355)

Original issue reported on code.google.com by pierredu...@gmail.com on 4 Apr 2010 at 5:57

GoogleCodeExporter commented 9 years ago
HTC Hero, Android 1.5

Original comment by pierredu...@gmail.com on 4 Apr 2010 at 5:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please use the new version (backport-android-bluetooth ver.2.2.2).

Original comment by esma...@gmail.com on 5 Apr 2010 at 5:53