What steps will reproduce the problem?
1. The phone is paired to, but not connected to, my laptop and a serial
bluetooth dongle
2. Bluetooth is ON
3. I call Set<BluetoothDevice> pairedDevices =
mBluetoothAdapter.getBondedDevices(); in my application
What is the expected output? What do you see instead?
I expected it to find two devices. Appearently one of them (the laptop) makes
it crash with an IllegalArgumentException in BluetoothDevice.<init>
LogCat:
06-22 13:27:23.162: ERROR/AndroidRuntime(13303): Uncaught handler: thread main
exiting due to uncaught exception
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{dk.jacobservatoriet.telescope/dk.jacobservatoriet.telescope.Telesc
opeActivity}: java.lang.IllegalArgumentException:
00:30:91:40:08:9A,Jacob-PC,1179908 is not a valid Bluetooth address
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.os.Looper.loop(Looper.java:123)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.ActivityThread.main(ActivityThread.java:3948)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
java.lang.reflect.Method.invokeNative(Native Method)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
java.lang.reflect.Method.invoke(Method.java:521)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
dalvik.system.NativeStart.main(Native Method)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): Caused by:
java.lang.IllegalArgumentException: 00:30:91:40:08:9A,Jacob-PC,1179908 is not a
valid Bluetooth address
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
backport.android.bluetooth.BluetoothDevice.<init>(BluetoothDevice.java:372)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
backport.android.bluetooth.BluetoothAdapter.getBondedDevices(BluetoothAdapter.ja
va:367)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
dk.jacobservatoriet.telescope.TelescopeActivity.onCreate(TelescopeActivity.java:
47)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1132)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
06-22 13:27:23.242: ERROR/AndroidRuntime(13303): ... 11 more
What version of the product are you using? On what operating system?
HTC Magic with Android 1.5
Original issue reported on code.google.com by c948...@gmail.com on 22 Jun 2010 at 11:33
Original issue reported on code.google.com by
c948...@gmail.com
on 22 Jun 2010 at 11:33