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
Post a Comment