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

  • Home
  • SEARCH
  • 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 6997075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:14:17+00:00 2026-05-27T20:14:17+00:00

When useing AlarmManager ,i set many timers,each timer for different broadcast receiver, and they

  • 0

When useing AlarmManager ,i set many timers,each timer for different broadcast receiver,
and they will auto merge or not?

    Intent intent = new Intent(TimeModeService.this,TimeModeReceiver.class);
    intent.setAction("startTimeMode");
    PendingIntent startIntent = PendingIntent.getBroadcast(getApplicationContext(),1000, intent,0);
    can.set(Calendar.HOUR_OF_DAY, startHour);
    can.set(Calendar.MINUTE,startMin);
    alarmmanager.setRepeating(AlarmManager.RTC_WAKEUP, can.getTimeInMillis(), (24 * 60 * 60 * 1000), startIntent);
  • 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-27T20:14:17+00:00Added an answer on May 27, 2026 at 8:14 pm

    In,
    PendingIntent.getBroadcast(getApplicationContext(),1000 /*this is requestCode*/, intent,0);

    If you keep the requestCode same for different instances of PendingIntent, and then set alarm using them, they should merge, in android 2.3.3, if i keep it same (for starting an activity) only one activity started. Here i would mention that alarmManager.set was used not alarmManager.setRepeating.

    I used int requestCode = (int)Calendar.getInstance().getTimeInMillis(); to keep the request code different for different pendingIntents.

    But Official Reference mentions it as

    requestCode     Private request code for the sender (currently not used).
    

    So the best way is to try it for your situation, but different PendingIntents with same requestCode would merge.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am useing searchlogic to search some paintings. Each painting belong to a single
I have been trying to work out how to clear a broadcast receiver after
How to set Alarm Tone from My Application using AlarmManager? My RingTonePicker Method:- private
I'm having a problem with alarmManager and the pending intent with extras that will
I am creating an application in which I am using a broadcast receiver. I
I am using AlarmManager and NotificationManager with BroadcastReceiver . When I set an alarm
I am using a Boot receiver to fire AlarmManager,so that it repeats it's task
I am using the alarmManager to set up multiple alarms within my application and
I am setting an alarm using an AlarmManager. The AlarmManager is set with the
I am useing the superfish jquery plugin If you view the superfish menu here:

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.