question

tassine avatar image
tassine asked

get INVALID_SENDER when my app it 's running on my kindle fire HD device

my app work perfectly and successfully registered when it's runned on emulator, but when I test it on my kindle fire HD device, I get a problem that my app has stopped just when the method " adm.isSupported() " is called. then I get this exception: FATAL EXCEPTION: main java.lang.NoSuchMethodError: com.amazon.device.messaging.ADM.isSupported at s.an.soundapp.NotificationHandler.register(NotificationHandler.java:300) at s.an.soundapp.SoundApplicationActivity.onCreate(SoundApplicationActivity.java:259) at android.app.Activity.performCreate(Activity.java:4635) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1963) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2024) at android.app.ActivityThread.access$600(ActivityThread.java:126) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1159) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:4479) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) and when I put this instruction " if(adm.isSupported()) " in comment, like that: void register(Context context) { final ADM adm = new ADM(context); // if (adm.isSupported()) { if(adm.getRegistrationId() == null) adm.startRegister(); else Log.i(TAG, "this device is already registred, his registrationID is : "+adm.getRegistrationId()); } //else{ // Log.i(TAG, "adm is not supported"); //} } I receive the error INVALID_SENDER. Knowing that when I run my app on emulator, it work perfectly, register ADM successfully, and I receive notification. someone can help me , please !!!
amazon device messaging
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Tassine, Could you please let us know what is the os version your Kindle HD is running on?
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tassine avatar image
tassine answered
os version is: 7.2.1
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Tassine, Can you please update your device software? You are having a very old build installed in your device. Here is the guide for getting updates in KF HD : http://www.amazon.com/gp/help/customer/display.html?nodeId=201016350
10 |3000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.