【发布时间】:2012-05-31 03:36:54
【问题描述】:
单击按钮时,我想使用方法startService(new Intent(currentActivity.this,MyService.class)) 启动服务,但如果服务正在运行,我不想调用此方法以避免运行已经在运行的服务。这是怎么可能的。我同时使用两者Intent 服务 和 Service 在同一个项目中,并希望对两者应用相同的条件。
【问题讨论】:
标签: android service android-service