Is it better (for performance) to send a broadcast (ACTION_APPWIDGET_UPDATE in my case), in a separate thread than the UI thread (a runnable)? Or is it acceptable practice to do so on the UI thread?
You can read in documentation for sendBroadcast:
This call is asynchronous; it returns immediately, and you will continue executing while the receivers are run.
so it is perfectly safe to call it on UI thread
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With