android - add a notification at a certain time when a checkboxpreference is true -


hi have checkboxpreference while it's true need add notification means each day need check it's true if need add notification if it's not true need delete notifications added if there how can that?

edit1 have

  public void onsharedpreferencechanged(sharedpreferences sharedpreferences, string key) {                 if (key.equals(key_pref_reminder)) {                   bool=prefs.getboolean(key, false); }} 

and gets if it's false or true how can while true?...

edit2: need make notification persist (sure updates made each day) when checkbox true , when it's false need delete notification how that? i'm searching have no idea how can it? please?thanks.

var notificationslist = new array();

$("#checkboxid").change(function(){

if($(this).attr('checked') == true){     notificationslist.push("add notification");  // add notification & use need }else{     notificationslist = [];   // clear notifications added } 

});


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -