Tuesday, August 17, 2010

[android-developers] Re: Alarm manager for multiple pending intent are not working.

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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate