Skip to content Skip to sidebar Skip to footer

Accessing Findviewbyid From Service

I want to Access findViewById() from an Service without passing it as an parameter or intent in the constructor of the service, Is that possible? Her my code: public class ManageDa

Solution 1:

It's really bad idea to update UI form service. I think good approach to to it is usage of BroadcastReceivers data Observer. Just register one for your activity and pass value to update UI.


Post a Comment for "Accessing Findviewbyid From Service"