Skip to content

Instantly share code, notes, and snippets.

@carloxavier
Created March 1, 2016 15:45
Show Gist options
  • Save carloxavier/f5a7fd340337b88706ef to your computer and use it in GitHub Desktop.
Save carloxavier/f5a7fd340337b88706ef to your computer and use it in GitHub Desktop.
fix casting error on gcm listener
03-01 16:44:19.112 24919-25250/? W/Bundle: Attempt to cast generated internal exception:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at android.os.BaseBundle.getInt(BaseBundle.java:800)
at com.jodelapp.jodelandroidv3.data.gcm.MyGcmListenerService.a(MyGcmListenerService.java:194)
at com.jodelapp.jodelandroidv3.data.gcm.MyGcmListenerService.a(MyGcmListenerService.java:136)
at com.jodelapp.jodelandroidv3.data.gcm.MyGcmListenerService.a(MyGcmListenerService.java:101)
at com.google.android.gms.gcm.GcmListenerService.l(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.k(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.j(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService.a(Unknown Source)
at com.google.android.gms.gcm.GcmListenerService$1.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment