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 4249972
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:28:02+00:00 2026-05-21T04:28:02+00:00

for example i want to have an alarm that will fire every sunday at

  • 0

for example i want to have an alarm that will fire every sunday at noon…. how would i do this?

  • 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-21T04:28:02+00:00Added an answer on May 21, 2026 at 4:28 am

    Use the AlarmManager class:

    http://developer.android.com/reference/android/app/AlarmManager.html

    Class Overview

    This class provides access to the
    system alarm services. These allow you
    to schedule your application to be run
    at some point in the future. When an
    alarm goes off, the Intent that had
    been registered for it is broadcast by
    the system, automatically starting the
    target application if it is not
    already running. Registered alarms are
    retained while the device is asleep
    (and can optionally wake the device up
    if they go off during that time), but
    will be cleared if it is turned off
    and rebooted.

    Use public void set (int type, long triggerAtTime, PendingIntent operation) to set the time to fire it.

    Use void setRepeating(int type, long triggerAtTime, long interval, PendingIntent operation) to schedule a repeating alarm.

    Here’s a full example. I don’t really remember all the Calendar methods, so I’m sure that part can be streamlined, but this is a start and you can optimize it later:

    AlarmManager alarm = (AlarmMAnager) Context.getSystemService(Context.ALARM_SERVICE);
    Calendar timeOff = Calendar.getInstance();
    int days = Calendar.SUNDAY + (7 - timeOff.get(Calendar.DAY_OF_WEEK)); // how many days until Sunday
    timeOff.add(Calendar.DATE, days);
    timeOff.set(Calendar.HOUR, 12);
    timeOff.set(Calendar.MINUTE, 0);
    timeOff.set(Calendar.SECOND, 0);
    
    alarm.set(AlarmManager.RTC_WAKEUP, timeOff.getTimeInMillis(), yourOperation);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 site: example.com and exampletwo.com I want that when a user login
I have a string: string = %q{<span class=no>2503</span>read_attribute_before_type_cast(<span class=pc>self</span>.class.primary_key)} In this example I want
Okay, how would I do this? class Example(models.Model): parent_example = models.ForeignKey(Example) I want to
I have an alarm trigger, and if that alarm trigger = 1, I want
I want to have my site urls look like http://example.com/place/info?var=info&morevars=ifneeded Place and info are
I have created a little example,please have a look, http://jsfiddle.net/bWTwL/ I want to have
I have created a separate class (let's call it class2.cs for example) and want
I have a WPF Panel (like Canvas for example) and I want to remove
I have a image (png file) with opacity 35%, i want for example: Set
for example I have the following: I want to go through each div class

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.