Code example for Context

Methods: startService

0
public class OnAlarmReceiver extends BroadcastReceiver {
  @Override 
  public void onReceive(Context context, Intent intent) {
    WakefulIntentService.acquireStaticLock(context);
     
    context.startService(new Intent(context, AppService.class));
  } 
}