Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6326427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:05:25+00:00 2026-05-24T17:05:25+00:00

I am an android developer I have asked this question before But may be

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:05:26+00:00Added an answer on May 24, 2026 at 5:05 pm

    i don’t know how well catch this, but let me give you a tip, make a class which has static method for startimg alarm, and use set() method of alarmManager to set interval and so on. and in Broadcaste reciever in its onRecieve() method call the static method again. but in any of these classes declare a static field which is incremented each time onRecieve() method is called. and before setting the alarm put an if() condition to check its not 15. and for pendingIntent use this flag PendingIntent.FLAG_CANCEL_CURRENT.

    when user enters his days do this

    int temp = /*days entered by user*/;//initialize tis variable with user entered value
    
    if(temp != 0){
        private static long interval = android.text.format.DateUtils.DAY_IN_MILLIS*temp;
    }
    
    
    if(System.getCurrentTimeInMillis()<interval){
    //set Your Alarm.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question has been asked here before, but I don't think those
I have a question which is not really related to android. but because i'm
I see that this question has been asked before but the context around the
I am following this tutorial https://developer.android.com/guide/tutorials/views/hello-tabwidget.html and have completed it. Now I would actually
I asked a similar question in the android developers group but haven't received a
I am a relatively new Android developer but have gotten pretty familiar with the
I am android developer.I am not aware of ant in android .I have downloaded
I know this question has been asked before, I'm just trying to be absolutely
i'm a new android developer. I have an application installed in phone. This application
Extreme Android developer newbie here...well, new to Android development, not development in general. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.