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

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -