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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:31:07+00:00 2026-05-20T06:31:07+00:00

I am building an app for the android, i dont need my app to

  • 0

I am building an app for the android, i dont need my app to have a calendar be part of it(plus it would defeat the purpose), my app allows the user to listen to a radio station, and needs the option to set an event to(remember to listen to the radio at a specific time), if the app has its own calendar then the event alarms will only go off if the user has the app open… pointless. i have been looking and cannot find, is there a way to use an intent or something else to open a google calendar or some other calendar that Android might have?
i need to put my intent(/ other code) in my listener which i already have and looks like this for now

private View.OnClickListener reminder = new View.OnClickListener() {

        @Override
        public void onClick(View v) {
                  // open calendar code goes here.

            }
};

i dont need the app to pre-fill in any field in the calendar just open it, i will leave the rest up to the user.
all help is welcome and thank you

  • 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-20T06:31:08+00:00Added an answer on May 20, 2026 at 6:31 am

    If you just want to open the calendar you can use and intent with EITHER of these component names (you might have to cater for both if you want to support older phones)

    Intent i = new Intent();
    
    //Froyo or greater (mind you I just tested this on CM7 and the less than froyo one worked so it depends on the phone...)
    cn = new ComponentName("com.google.android.calendar", "com.android.calendar.LaunchActivity");
    
    //less than Froyo
    cn = new ComponentName("com.android.calendar", "com.android.calendar.LaunchActivity");
    
    i.setComponent(cn);
    startActivity(i);
    

    If you want to go to the add event screen (which sounds better for your purpose) use something like:

     //all version of android
     Intent i = new Intent();
    
     // mimeType will popup the chooser any  for any implementing application (e.g. the built in calendar or applications such as "Business calendar"
     i.setType("vnd.android.cursor.item/event"); 
    
     // the time the event should start in millis. This example uses now as the start time and ends in 1 hour
     i.putExtra("beginTime", new Date().getTime()); 
     i.putExtra("endTime", new Date().getTime() + DateUtils.HOUR_IN_MILLIS);
    
     // the action
     i.setAction(Intent.ACTION_EDIT);
     startActivity(i);
    

    (code is untested, copied from an existing project)

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

Sidebar

Related Questions

I'm building a mobile web app targeting Android users. I need to know what
I am building an app for Android 2.1 that provides notifications based on calendar
I thought I'd have a crack at building an Android app having not done
I have been slowing learning and building my first android app. I'm VERY new
I am building an android app for which I need to check the sync
Im building my own android app, but im kinda stuck at the login part.
I am building an android app and I have an SQL database stored on
I'm building the Android scanning app using zxing library. I have built the zxing
I am building an Android app, and I have a problem to get resource
I'm building an Android app and I want to copy the text value of

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.