java.lang.RuntimeException: BroadcastReceiver trying to return result during a non-ordered broadcast

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

SMS Emulator caused this error.
abortBroadcast only works with broadcasts sent through Context.sendOrderedBroadcast.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 用着用着经常会出现ANR
    via GitHub by renqingyou
    ,
  • 用着用着经常会出现ANR
    via GitHub by renqingyou
    ,
  • GCM error on app start
    via Stack Overflow by Akshay Shah
    ,
  • Call block in android
    via Stack Overflow by Developer
    ,
    • java.lang.RuntimeException: BroadcastReceiver trying to return result during a non-ordered broadcast at android.content.BroadcastReceiver.checkSynchronousHint(BroadcastReceiver.java:785) at android.content.BroadcastReceiver.setResult(BroadcastReceiver.java:660) at com.google.android.gcm.GCMBroadcastReceiver.onReceive(GCMBroadcastReceiver.java:61) at android.app.ActivityThread.handleReceiver(ActivityThread.java:2732) at android.app.ActivityThread.access$1800(ActivityThread.java:153) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1428) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5438) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)

    Users with the same issue

    bayukresno
    bayukresno3 times, last one,
    rube
    rube2 times, last one,
    brunosatriani
    brunosatriani14 times, last one,
    jk
    jk1 times, last one,
    poroszd
    poroszd6 times, last one,
    3 more bugmates