List of usage examples for android.content Context startService
@Nullable public abstract ComponentName startService(Intent service);
From source file:felixwiemuth.lincal.NotificationService.java
public static void runWithCalendar(Context context, int calendarId) { Intent intent = new Intent(context, NotificationService.class); intent.putExtra(EXTRA_CALENDAR_ID, calendarId); context.startService(intent); }
From source file:com.google.android.apps.santatracker.SantaNotificationBuilder.java
public static void ScheduleNotificationNotification(Context c) { Intent i = new Intent(c, ScheduleNotificationService.class); c.startService(i); }
From source file:net.pmarks.chromadoze.NoiseService.java
public static void stopNow(Context ctx, int stopReasonId) { ctx.startService(newStopIntent(ctx, stopReasonId)); }
From source file:ca.hoogit.garagepi.Controls.DoorControlService.java
public static void startActionQuery(Context context) { Intent intent = new Intent(context, DoorControlService.class); intent.setAction(Consts.ACTION_DOORS_QUERY); context.startService(intent); }
From source file:org.mozilla.focus.notification.BrowsingNotificationService.java
public static void stop(Context context) { final Intent intent = new Intent(context, BrowsingNotificationService.class); intent.setAction(ACTION_STOP);//from w w w .jav a 2 s. co m context.startService(intent); }
From source file:org.mozilla.focus.notification.BrowsingNotificationService.java
public static void start(Context context) { final Intent intent = new Intent(context, BrowsingNotificationService.class); intent.setAction(ACTION_START);// w w w.j av a 2s. c o m context.startService(intent); }
From source file:grytsenko.coworkers.sync.StatusService.java
/** * Shows notification with custom message. * //from w w w. j a va 2 s .c om * @param context * the context to use. * @param message * the message to show. */ public static void notify(Context context, String message) { Intent intent = new Intent(context, StatusService.class); intent.setAction(SHOW_NOTIFICATION); intent.putExtra(MESSAGE, message); context.startService(intent); }
From source file:org.mozilla.focus.notification.BrowsingNotificationService.java
public static void foreground(Context context) { final Intent intent = new Intent(context, BrowsingNotificationService.class); intent.setAction(ACTION_FOREGROUND); context.startService(intent); }
From source file:org.mozilla.focus.notification.BrowsingNotificationService.java
public static void background(Context context) { final Intent intent = new Intent(context, BrowsingNotificationService.class); intent.setAction(ACTION_BACKGROUND); context.startService(intent); }
From source file:org.dolphinemu.dolphinemu.services.DirectoryInitializationService.java
public static void startService(Context context) { Intent intent = new Intent(context, DirectoryInitializationService.class); context.startService(intent); }