android - Does BroadcastReceiver.onReceive always run in the UI thread? -


in app, create custom broadcastreceiver , register context manually via context.registerreceiver. have asynctask dispatches notifier-intents via context.sendbroadcast. intents sent non-ui worker thread, seems broadcastreceiver.onreceive (which receives said intents) runs in ui thread (which me). guaranteed or should not rely on that?

does broadcastreceiver.onreceive run in ui thread?

yes.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -