Reputation: 2753
I'm currenly doing this when i clicked a button
Intent service = new Intent(this, LocationCheckingService.class);
startService(service);
if i where to click this button multiple times does it result in multiple thread being invoked? possible to prevent multiple service? cause i would only require one service
Upvotes: 0
Views: 251
Reputation: 7102
there can be only one instace of service. no matter how many times you starts see this discussion
Upvotes: 0
Reputation: 64700
You can not run multiple instances of a Service: see http://developer.android.com/guide/topics/fundamentals/services.html#StartingAService
Upvotes: 1