I have a TextView in an Activity which I wish to update from a service. How can this be achieved?
You could use a BroadcastReceiver. An intent should be fired from a service and TextView.setText()
called in the onReceive()
method of the BroadcastReceiver
.
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