title: How to edit/reset Alarm Manager?
body: <p><em>I've set up a Preference Screen in which i have a list preference which allows user to select time interval to notify them.</em></p>
  
  <p><em>They can choose whether to notify them after every 2,4,8,10 or 12 hours.</em></p>
  
  <p><strong>Here's my list preference:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;ListPreference
              android:title="Notification Timer"
              android:summary="Select when to Notify"
              android:dialogTitle="Show Notification after every:"
              android:positiveButtonText="OK"
              android:negativeButtonText="Cancel"
              android:entries="@array/entries"
              android:entryValues="@array/entries"
              android:key="listPrefs" /&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p><strong>Here's my Settings.class file:</strong></p>
  
  <pre><code>public class Settings extends PreferenceActivity implements OnPreferenceChangeListener{
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          addPreferencesFromResource(R.xml.settings);
  
          ListPreference listPreference = (ListPreference) findPreference("listPrefs");
          listPreference.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
  
              @Override
              public boolean onPreferenceChange(Preference preference, Object newValue) {
  
                  return false;
              }
          });
          @Override
      public boolean onPreferenceChange(Preference preference, Object newValue) {
          // TODO Auto-generated method stub
          return false;
      }
  }
  </code></pre>
  
  <p><em>I want to <strong>update or reset Alarms every time the user changes the time interval of notifying him/her</strong>. for ex- If user selects 4 hours than he/she must be notified after 4 hours or if user chooses 10 hours than he/she must be notified after 10 hours!</em></p>