Android Intent QUestions
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 mu开发者_如何学Cltiple service? cause i would only require one service
You can not run multiple instances of a Service: see http://developer.android.com/guide/topics/fundamentals/services.html#StartingAService
there can be only one instace of service. no matter how many times you starts see this discussion
精彩评论