NotificationScheduler/app/src/main/java/com/android/example/notificationscheduler/MainActivity.java
/**
     * onClick method for cancelling all existing jobs.
     */
onClick method for cancelling all existing jobs.
onClick method for cancelling all existing jobs .
public void cancelJobs(View view) {
        if (mScheduler != null) {
            mScheduler.cancelAll();
            mScheduler = null;
            Toast.makeText(this, R.string.jobs_canceled, Toast.LENGTH_SHORT)
                    .show();
        }
    }
public void cancelJobs ( View view ) { if ( mScheduler != null ) { mScheduler . cancelAll ( ) ; mScheduler = null ; Toast . makeText ( this , R . string . jobs_canceled , Toast . LENGTH_SHORT ) . show ( ) ; } }
onClick method for cancelling all existing jobs.
onClick method for cancelling all existing jobs .