void function ( ) { Intent loc0 = new Intent ( context , receiver ) . setAction ( options . getId ( ) ) ; PendingIntent loc1 = PendingIntent . getBroadcast ( context , 0 , loc0 , 0 ) ; getAlarmMgr ( ) . cancel ( loc1 ) ; getNotMgr ( ) . cancel ( options . getIdAsInt ( ) ) ; unpersist ( ) ; }
cancel the local notification . create an intent that looks similar , to the one that was registered using schedule . making sure the notification id in the action is the same . now we can search for such an intent using the ` getservice ' method and cancel it . concode_field_sep Class<?> defaultReceiver concode_elem_sep Class<?> receiver concode_elem_sep String PREF_KEY concode_elem_sep Context context concode_elem_sep Options options concode_elem_sep NotificationCompat.Builder builder concode_field_sep boolean wasInThePast concode_elem_sep NotificationManager getNotMgr concode_elem_sep SharedPreferences getPrefs concode_elem_sep void show concode_elem_sep void clear concode_elem_sep int getId concode_elem_sep boolean isScheduled concode_elem_sep void showNotification concode_elem_sep int getTriggerCountSinceSchedule concode_elem_sep void unpersist concode_elem_sep void reschedule concode_elem_sep void schedule concode_elem_sep AlarmManager getAlarmMgr concode_elem_sep boolean isRepeating concode_elem_sep void showDialog concode_elem_sep Type getType concode_elem_sep String toString concode_elem_sep long getNextTriggerTime concode_elem_sep void persist concode_elem_sep Options getOptions concode_elem_sep Context getContext concode_elem_sep boolean isUpdate concode_elem_sep boolean isTriggered concode_elem_sep void setDefaultTriggerReceiver