开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜