开发者

Android Intent QUestions

开发者 https://www.devze.com 2023-03-02 04:28 出处:网络
I\'m currenly doing this when i clicked a button Intent service = new Intent(this, LocationCheckingService.class);

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

0

精彩评论

暂无评论...
验证码 换一张
取 消