ericlee
ericlee

Reputation: 2753

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 multiple service? cause i would only require one service

Upvotes: 0

Views: 251

Answers (2)

Sunil Pandey
Sunil Pandey

Reputation: 7102

there can be only one instace of service. no matter how many times you starts see this discussion

Upvotes: 0

Femi
Femi

Reputation: 64700

You can not run multiple instances of a Service: see http://developer.android.com/guide/topics/fundamentals/services.html#StartingAService

Upvotes: 1

Related Questions