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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:45:04+00:00 2026-05-29T10:45:04+00:00

My app starts an intent to call calendar app inserting an events with these

  • 0

My app starts an intent to call calendar app inserting an events with these codes

    Intent intent = new Intent(Intent.ACTION_INSERT)
    .setData(Events.CONTENT_URI)
    .putExtra(Events.DTSTART, date.getTime())
    .putExtra(Events.DTEND, date.getTime() + DateUtils.HOUR_IN_MILLIS)
    .putExtra(Events.EVENT_TIMEZONE, TimeZone.getDefault().getDisplayName());
    startActivityForResult(intent,EDIT_EVENT_AGENDAUI);
        //startActivity(intent); dosent make any difference

As you can see here, it calls a calendar insert page.
but it is weird that it wont go back to my app instead of go back to calendar view
after i click “Done”. I have to click “back” button on screen to return to my app

this is kinda unfriendly

googled a half day
it seems no one gets this problem.

Any ideas? Thanks

PS

  1. i am using Android ICS on Virtual Machine
  2. if i click “cancel” to quit the page, it acts as i expected — go back to my app. This is good, but much more confused me.
  • 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-29T10:45:05+00:00Added an answer on May 29, 2026 at 10:45 am

    What you are experiencing is the correct behavior. I’m not aware of any shortcut for just adding an event without going into the calendar activity, unless there are some public content provider for the calendar.

    Especially in ICS the add-event window might just be a Fragment included in the calendar activity, so it makes perfect sense that you see your event after you have clicked save.

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

Sidebar

Related Questions

in my application I call startActivityForResult( new Intent(this, ShowPreferencesActivity.class), <some code>); the activity is
I'm trying to start a Skype intent from my Android App, passing a phone
My app starts up at Activity A which contains a ListView. The ListView can
When my iPhone app starts up, the main screen has a keyboard. Currently the
i've created d app where app starts an image have to be animated and
Okay, when my app starts it has two tabs, and one action in the
I have PhoneGap app running in Android. When the app starts, it inserts approximately
How would you solve this? When the app starts, four objects of a class
How can I calculate the taskbar height, so that my winapi app starts up
I have an app that starts out in the login screen and when you

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.