Recently, sample code for the Bluetooth HDP Demo has been made
available at:
http://developer.android.com/resources/samples/BluetoothHDP/index.html
However, when attempting to Run this program using the emulator, an
error message appears on the emulator display, reading,
"Unfortunately, HDP Sample has stopped."
When referring to the LogCat, a short list of errors are listed (all
of which are under the AndroidRuntime Tag). I am currently utilizing
Android 4.0.3 (API 15), the most recent update as of this hour, and
have not modified the origianl sample code in any way. I have not yet
tested this code on an actual Android device to compare functionality;
nonetheless, I do not find any reason the emulator version would not
work. If you are an individual who has run this demo successfully on
the emulator, I will try changing machines and reattempt the process.
Am I mistaken that this code can ONLY run on an actual device?

The entire LogCat for this run-time session reads as follows:

05-29 23:16:25.914: I/dalvikvm(606): threadid=3: reacting to signal 3
05-29 23:16:26.074: I/dalvikvm(606): Wrote stack traces to '/data/anr/
traces.txt'
05-29 23:16:26.654: D/AndroidRuntime(606): Shutting down VM
05-29 23:16:26.654: W/dalvikvm(606): threadid=1: thread exiting with
uncaught exception (group=0x409c01f8)
05-29 23:16:27.185: E/AndroidRuntime(606): FATAL EXCEPTION: main
05-29 23:16:27.185: E/AndroidRuntime(606): java.lang.RuntimeException:
Unable to destroy activity {com.example.bluetooth.health/
com.example.bluetooth.health.BluetoothHDPActivity}:
java.lang.IllegalArgumentException: Receiver not registered:
com.example.bluetooth.health.BluetoothHDPActivity$3@412a2be8
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ActivityThread.performDestroyActivity(ActivityThread.java:
3112)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:
3130)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ActivityThread.access$1200(ActivityThread.java:123)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1180)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.os.Handler.dispatchMessage(Handler.java:99)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.os.Looper.loop(Looper.java:137)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ActivityThread.main(ActivityThread.java:4424)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
java.lang.reflect.Method.invokeNative(Native Method)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
java.lang.reflect.Method.invoke(Method.java:511)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
dalvik.system.NativeStart.main(Native Method)
05-29 23:16:27.185: E/AndroidRuntime(606): Caused by:
java.lang.IllegalArgumentException: Receiver not registered:
com.example.bluetooth.health.BluetoothHDPActivity$3@412a2be8
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:628)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1066)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:
354)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
com.example.bluetooth.health.BluetoothHDPActivity.onDestroy(BluetoothHDPActivity.java:
226)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.Activity.performDestroy(Activity.java:4629)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:
1079)
05-29 23:16:27.185: E/AndroidRuntime(606):      at
android.app.ActivityThread.performDestroyActivity(ActivityThread.java:
3099)
05-29 23:16:27.185: E/AndroidRuntime(606):      ... 11 more

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to