I know that we have 10 seconds to handle an intent; otherwise, watch dog timer will kick in. And its suppose be a light-weight function. So my question is, does the BroadcastReceiver run in the same process as your root activity? Or does it run on Zygote system process?
Share
Yes. And, as xandy notes, it also runs on the main application thread. Your
BroadcastReceivershould either do its work very quickly or callstartService()on anIntentService(or something) that can do long-running work on a background thread.BTW, I am pleased to see that you have time to spend on Android application development, now that you are no longer busy saving the world. It must be nice to spend time on a hobby and not worry about being shot at, blown up, etc. 🙂