Reputation: 1502
I have a Service singleton class with static methods that I call from the same process. I call startService when my Application starts. I also call bindService, but now I am wondering if that is really necessary.
Upvotes: 1
Views: 515
Reputation: 10123
It depends on whether you need to call instance methods on that service or not. StartService gets the service up and running and working on whatever Intent you sent it but you still can't interact with it because you don't have a reference to the service object. Calling bindService is what gives that reference so that you can call instance methods on it. If you don't need that, you don't need bindService.
Upvotes: 1