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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:19:38+00:00 2026-05-25T01:19:38+00:00

From Stack Overflow question How to add calendar events in Android? I came to know

  • 0

From Stack Overflow question How to add calendar events in Android? I came to know how to add the calendar event, but with the specific time for starttime (with hour and minutes) and EndTime (with hour and minutes). How can we add?

  • 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-25T01:19:39+00:00Added an answer on May 25, 2026 at 1:19 am

    Do something like this. Here startDate is the time you want to start.

        long startTime,endTime;
    
        String startDate = "2011-09-01";
        try {
            Date date = new SimpleDateFormat("yyyy-MM-dd").parse(startDate);
            startTime=date.getTime();
        }
        catch(Exception e){ }
    
        Calendar cal = Calendar.getInstance();
        Intent intent = new Intent(Intent.ACTION_EDIT);
        intent.setType("vnd.android.cursor.item/event");
        intent.putExtra("beginTime",startTime);
        intent.putExtra("allDay", true);
        intent.putExtra("rrule", "FREQ=YEARLY");
        intent.putExtra("endTime", endTime);
        intent.putExtra("title", "A Test Event from android app");
        startActivity(intent);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a small Stack Overflow application, but to collect information from Stack Overflow
I tested the code from Stack Overflow question Marshaling unmanaged char** to managed string[]
I've gone over other questions from stack overflow with similar ideas but none seem
I'm doing something similar to Stack Overflow question Handling partial return from recv() TCP
From an SO answer 1 about Heap and Stack, it raised me a question:
Okay so from what I've read on other websites and on stack overflow, Rails
I'm trying to call the Facebook authorization from my Android activity, but for some
I would like to know the address of a kernel module. Actually, from stack
this is my first question, although I've already used so many tips from Stack
okay i found this regex from Stack overflow, which can isolate the URL and

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.