1. mcasanket70's Avatar
    Hi All,

    I have created one Alarm in my application. Later the user can disablethe alarm and also re-enable alarm.

    The problem is that, when user clicks on re-enable the alarm, I create a new alarm with the previous time but the alarm gets fired instantly...

    I am setting the alarm as below...
    alarmManager.setRepeating(AlarmManager.RTC, time, AlarmManager.INTERVAL_DAY, PendingIntent.getBroadcast(this, alarmUniqueCode, intentAlarm, PendingIntent.FLAG_UPDATE_CURRENT));

    How I disable the alarm when the user clicks on disable...

    sender = PendingIntent.getBroadcast(this, 1, intent, 0);

    I have added the Alarm receiver in manifest file like below.
    android:exported="true" >

    Please help....
    04-15-2014 07:33 AM

Similar Threads

  1. Did I really just get Banned from the Google+ Community?
    By HeCareth in forum The Android Central Lounge
    Replies: 2
    Last Post: 05-27-2016, 07:06 AM
  2. Replies: 7
    Last Post: 04-19-2014, 12:42 PM
  3. Where is the extreme power saving mode?
    By miggdmac in forum HTC One M8
    Replies: 4
    Last Post: 04-16-2014, 09:10 PM
  4. Re ": Android OS for large tablet devices"
    By Niraj211 in forum General News & Discussion
    Replies: 4
    Last Post: 04-16-2014, 06:59 AM
  5. Has anyone had difficulty with the 16 GB of storage?
    By Oldoobie in forum Samsung Galaxy S5
    Replies: 7
    Last Post: 04-15-2014, 01:22 PM