语言

Menu
Sites
Language
Hello Accessory Example stopped on Android when trying to connect

Hi,

I installed the HelloAccessoryProvider.apk (actually I'm going through this guide: http://img-developer.samsung.com/contents/cmm/SamsungGearApplication_HelloAccessory_Developers_Guide_1.1.pdf) first building it from source and deploying it via Eclipse and then installing the apk from the folder "Install apk" using the adb in the windows command line. For both installation completed without any error but when I press the connect button on the Gear 2 on the Note 3 the message "Hello Accesorry(P) angehalten" (angehalten = stopped) is displayed.

In the LogCat the following error is displayed:

09-07 20:25:59.884: W/dalvikvm(13324): threadid=1: thread exiting with uncaught exception (group=0x41777da0)
09-07 20:25:59.894: E/AndroidRuntime(13324): FATAL EXCEPTION: main
09-07 20:25:59.894: E/AndroidRuntime(13324): Process: com.samsung.android.example.helloaccessoryprovider, PID: 13324
09-07 20:25:59.894: E/AndroidRuntime(13324): java.lang.RuntimeException: Unable to start receiver com.samsung.android.sdk.accessory.ServiceConnectionIndicationBroadcastReceiver: java.lang.RuntimeException: Parcel android.os.Parcel@429abcd0: Unmarshalling unknown type code 7209057 at offset 6812
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.app.ActivityThread.handleReceiver(ActivityThread.java:2554)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.app.ActivityThread.access$1700(ActivityThread.java:163)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1333)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.os.Handler.dispatchMessage(Handler.java:102)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.os.Looper.loop(Looper.java:157)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.app.ActivityThread.main(ActivityThread.java:5335)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at java.lang.reflect.Method.invokeNative(Native Method)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at java.lang.reflect.Method.invoke(Method.java:515)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at dalvik.system.NativeStart.main(Native Method)
09-07 20:25:59.894: E/AndroidRuntime(13324): Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@429abcd0: Unmarshalling unknown type code 7209057 at offset 6812
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.os.Parcel.readValue(Parcel.java:2080)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.os.Parcel.readArrayMapInternal(Parcel.java:2313)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.os.Bundle.unparcel(Bundle.java:249)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.os.Bundle.getString(Bundle.java:1118)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.content.Intent.getStringExtra(Intent.java:4991)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at com.samsung.android.sdk.accessory.ServiceConnectionIndicationBroadcastReceiver.onReceive(Unknown Source)
09-07 20:25:59.894: E/AndroidRuntime(13324):     at android.app.ActivityThread.handleReceiver(ActivityThread.java:2539)
09-07 20:25:59.894: E/AndroidRuntime(13324):     ... 10 more

Would be great if anybody could help me here!

 

Greetings

Sebastian

编辑者为: Sebastian Rauh 07 9月, 2014
查看选择的答案

响应

6 回复
Tomáš Pikous

I'm have same issue.

Tom

Sebastian Rauh

Found this: http://developer.samsung.com/forum/board/thread/view.do?boardName=SDK&messageId=272331

Does anyone know where I can download an older version of the accessory SDK?

Sebastian

Sebastian Rauh

OK, I found a project containing the version 1.0.0 but there the com.samsung.android.sdk.accessory.SAAuthenticationToken class is missing.

Does anybody have a old version of the HelloAccessory Example?

Mark as answer
Sebastian Rauh

Yey my colleague kept the last version :)

Just in case somebody needs it:

  • The SDK: karotte.bplaced.net/sonstige/AccessorySDK_v2.0.19.zip
  • The HelloAccessory Example: karotte.bplaced.net/sonstige/HelloAccessory.zip

Greetings

Sebastian

Tomáš Pikous

Thank you so much, this version finally solved all issues.

Tom

Sebastian Rauh

You're welcome :)

Let's hope samsung releases a functioning version of the SDK again soon...

Sebastian