code: static void scheduleWingsService(Context context, long delay) {
          Context appContext = context.getApplicationContext();
  
          // Create pending intent.
          Intent intent = new Intent(appContext, AlarmReceiver.class);
          PendingIntent pendingIntent = PendingIntent.getBroadcast(appContext, 0, intent,
                  PendingIntent.FLAG_UPDATE_CURRENT);
  
          // Set alarm.
          AlarmManager alarmManager = (AlarmManager) appContext.getSystemService(Context.ALARM_SERVICE);
          alarmManager.set(AlarmManager.RTC_WAKEUP, delay, pendingIntent);
      }
docs: Schedules an alarm to start the {@link WingsService}.
  
  @param context the {@link Context}.
  @param delay   how far in the future to schedule the alarm.