That's really janky.  I'd strongly recommend only posting one alarm, for the
next event you have in time, and upon processing that post a new alarm for
the following event.  This is how  most apps work.  Your code here is really
problematic in how it manages its alarms -- for example if you have an alarm
scheduled for something, and the user changes that thing's time or deletes
it, how do you remove the alarm from the alarm manager?

On Tue, Aug 17, 2010 at 3:37 AM, nomi <nomeshga...@gmail.com> wrote:

> Thanks to all for your response,
>
> I have solved that problem by passing unique id which is depend on
> current time:-
>
>        final int intent_id= (int) System.currentTimeMillis();
>
>                                        PendingIntent pendingIntent =
>
> PendingIntent.getBroadcast(getApplicationContext(),intent_id,intent,PendingIntent.FLAG_UPDATE_CURRENT);
>
>        by this change code is working properly and each pending
> intent starts
> specified activity after 20 mins of it's alarm off time.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to