src/android/LocalNotification.java
public static void add (Options options, boolean doFireEvent) {
        long triggerTime = options.getDate();

        Intent intent = new Intent(context, Receiver.class)
            .setAction("" + options.getId())
            .putExtra(Receiver.OPTIONS, options.getJSONObject().toString());

        AlarmManager am  = getAlarmManager();
        PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);

        if (doFireEvent) {
            fireEvent("add", options.getId(), options.getJSON());
        }

        am.set(AlarmManager.RTC_WAKEUP, triggerTime, pi);
    }
/**
     * Set an alarm.
     *
     * @param options
     *            The options that can be specified per alarm.
     * @param doFireEvent
     *            If the onadd callback shall be called.
     */
Set an alarm.
@param options
The options that can be specified per alarm.
@param doFireEvent
If the onadd callback shall be called.
Set an alarm . @param options The options that can be specified per alarm . @param doFireEvent If the onadd callback shall be called .
public static void add (Options options, boolean doFireEvent) {
        long triggerTime = options.getDate();
        Intent intent = new Intent(context, Receiver.class)
            .setAction("" + options.getId())
            .putExtra(Receiver.OPTIONS, options.getJSONObject().toString());
        AlarmManager am  = getAlarmManager();
        PendingIntent pi = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
        if (doFireEvent) {
            fireEvent("add", options.getId(), options.getJSON());
        }
        am.set(AlarmManager.RTC_WAKEUP, triggerTime, pi);
    }
public static void add ( Options options , boolean doFireEvent ) { long triggerTime = options . getDate ( ) ; Intent intent = new Intent ( context , Receiver . class ) . setAction ( "" + options . getId ( ) ) . putExtra ( Receiver . OPTIONS , options . getJSONObject ( ) . toString ( ) ) ; AlarmManager am = getAlarmManager ( ) ; PendingIntent pi = PendingIntent . getBroadcast ( context , 0 , intent , PendingIntent . FLAG_CANCEL_CURRENT ) ; if ( doFireEvent ) { fireEvent ( "add" , options . getId ( ) , options . getJSON ( ) ) ; } am . set ( AlarmManager . RTC_WAKEUP , triggerTime , pi ) ; }
Set an alarm.
Set an alarm .