code: public static void stopForeground(Context c) {
          Intent i = new Intent(c, SPFService.class);
          i.setAction(ACTION_STOP_FOREGROUND);
          c.startService(i);
          c.stopService(i);
      }
docs: Sends an intent to SPFService, using the {@link Context} provided, that
  makes it stop foreground.
  
  @param c - the Context used to send the intent;
  @see Service#stopForeground(boolean)