public class ServiceUtils extends Object
| 构造器和说明 |
|---|
ServiceUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends android.app.Service> |
getServiceName(Class<T> clz) |
static <T extends android.app.Service> |
isServiceRunning(android.content.Context mContext,
Class<T> serviceName)
判断当前service是否还在运行
用于页面解除绑定前的判断,多次解绑将会异常
|
public static <T extends android.app.Service> boolean isServiceRunning(android.content.Context mContext,
Class<T> serviceName)
mContext - serviceName -