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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:20:03+00:00 2026-05-26T11:20:03+00:00

I have 3 different Date objects and I want to pass them to AlarmManager

  • 0

I have 3 different Date objects and I want to pass them to AlarmManager object to alert me when they occur.

May I need to use

 Calendar cal = Calendar.getInstance();
         cal.add(Calendar.MINUTE, 2);

to add 2 minutes to the calender, but how to add a future date object to the calender ?

Do I need A Calender object, or I need a separate Calender object for each Date ?
Them for AralamManger do I need one object to 3 ?

  • 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-26T11:20:03+00:00Added an answer on May 26, 2026 at 11:20 am

    I will advice you to use three different Calendar objects in which future dates will be set as below:

    Calendar calendar1 = Calendar.getInstance();
                Date future_date=new Date();
                 future_date.setHours(hour);
                    future_date.setMinutes(min);
                    future_date.set(year, month, day);
                    calendar1.setTime(future_date);
    
    ....OR.......
    calendar1.set(year, month, day, hourOfDay, minute)
       ----------------
    

    Look like u want to setup multiple alarm…below is link for answer
    How can I setup multiple alarms in Android?

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

Sidebar

Related Questions

So I have two ruby Date objects, and I want to iterate them every
I have two functions with different type signatures, and I want to store them
I want to store into the same table, in different columns 2 java.sql.Date objects
I have a table that has three different date columns, so I set each
I have different urls that points to the same code www.url1.com www.url2.com I need
I have different select boxes. I want to select second one with related id.
I need to remove time from a Date Object. Here is my try, Code:
I want to create a massive TimeSeries object which will hold 1000 different financial
I need to create a java.util.Date object with an Australian timezone. this object is
I have an events object which is given below NSString *name; NSString *date; NSInteger

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.