List of usage examples for android.content Context startService
@Nullable public abstract ComponentName startService(Intent service);
From source file:Main.java
/** will start a service, given the class object of the service */ public static void startService(Context ctx, Class c) { ctx.startService(new Intent(ctx, c)); }
From source file:Main.java
public static void startService(Context c, Class<? extends Service> cls) { c.startService(new Intent(c, cls)); }
From source file:Main.java
public static void startService(Context context, Class<? extends Service> type) { context.startService(new Intent(context, type)); }
From source file:Main.java
public static void startService(Context context, Class<?> cls) { Intent intent = new Intent(context, cls); context.startService(intent); }
From source file:Main.java
public static void launchService(Context context, Class<?> service) { Intent intent = new Intent(context, service); context.startService(intent); }
From source file:net.zionsoft.obadiah.model.utils.AppUpdateChecker.java
public static void check(Context context) { context.startService(new Intent(context, AppUpdateChecker.class)); }
From source file:com.twinone.locker.lock.HelperService.java
public static void removeNotification(Context c) { Intent i = new Intent(c, HelperService.class); c.startService(i); }
From source file:com.android.launcher3.dynamicui.ExtractionUtils.java
/** Starts the {@link ColorExtractionService} without checking the wallpaper id */ public static void startColorExtractionService(Context context) { context.startService(new Intent(context, ColorExtractionService.class)); }
From source file:Main.java
public static void startService(Context context, Class<?> actyClass) { Context loContext = new WeakReference<Context>(context).get(); Intent intent = new Intent(loContext, actyClass); loContext.startService(intent); }
From source file:Main.java
public static void startService(Context context, Class clazz, Intent intent) { if (!isServiceRunning(context, clazz.getName())) { context.startService(intent); }//from www.ja va 2s.c o m }