I am an android developer I have asked this question before But may be I was not able to explain it more I want set repeating alarm with day interval .How can i restrict it from recurring after some days for example 15days can any body help me .
following was my first question please check it
How to create Recurring of Alarm in Android After taking user input?
I am an android developer I have asked this question before But may be
Share
i don’t know how well catch this, but let me give you a tip, make a class which has static method for
startimgalarm, and useset()method ofalarmManagerto set interval and so on. and inBroadcaste recieverin itsonRecieve()method call the static method again. but in any of these classes declare a static field which isincremented each time onRecieve()method is called. and beforesetting the alarm put an if() condition to check its not 15. and for pendingIntent use this flagPendingIntent.FLAG_CANCEL_CURRENT.when user enters his days do this