My app includes a service which receives locations via broadcasts, and there is also an activity that registers for those same broadcasts. Intermittently, and apparently only on some devices, the activity blows up with this:
class java.lang.RuntimeException
Msg: Error receiving broadcast Intent { act=com.company.app.ACTION_LOCATION_CHANGED flg=0x10 (has extras) } in com.company.app.library.activity.MyActivity$LocationReceiver@40f45bb8
I cannot use the debugger to look at the app’s state as I cannot reproduce this error, so I’m reliant on analytics logs.
What does this exception actually mean? i.e. what is the problem in receiving it?
This means that there is an uncaught exception inside onReceive method.
Take a look on what can cause it… difficult to say without code and without more detailed stacktrace.