Reputation: 19733
How do I check whether the local service inside my application is running?
Upvotes: 1
Views: 470
Reputation: 568
This doesn't make sense to me... what if you have a toggle button for starting/stopping the service. When your home screen loads, how do you know if the toggle button should be displaying ON or OFF? Let's say you go into the app, toggle the service on. Then later you come back into the app. How does the app know that the toggle button should be set to on?
Upvotes: 1