Questions tagged [android-calendar]

The Calendar Provider is a repository for a user's calendar events. The Calendar Provider API allows you to perform query, insert, update, and delete operations on calendars, events, attendees, reminders, and so on.

Calendar Provider Guide

995 questions
11
votes
2 answers

Android Calendar, get Event Id

i'm writing an application that need to add some events to a calendar in android. For inserting i just used the following code: public void onItemClick(AdapterView adapter, View curview, int position, long id) { WhoisEntry entry =…
Ivan
  • 4,186
  • 5
  • 39
  • 72
11
votes
1 answer

Is there a way to add reminders to a new calendar event using Intents?

I need to support Android 2.1 and up. I know that CalendarContract isn't available in Android 2.1, so I've done the following workaround. Intent intent = new Intent(Intent.ACTION_EDIT) …
boo-urns
  • 10,136
  • 26
  • 71
  • 107
11
votes
5 answers

Reading all of today's events using CalendarContract - Android 4.0+

I'm trying to use Android's new calendar API to read all of today's calendar events. I'm have trouble finding the right selection on the database query to return all of the events. It seems that all recurring and all day events are left out of the…
10
votes
2 answers

How to read reminders in google calendars

I'm trying to read the reminders set by the user. What I mean with "reminder": currently there are two different meaning, the first one is the "alert" related to each event in the calendar and you can read them from CalendarContract.Reminders, the…
greywolf82
  • 21,813
  • 18
  • 54
  • 108
10
votes
2 answers

Opening Android App from Calendar

The app I'm working on needs to be able to create events in a chosen Calendar and then when the user views these events in their calendar viewing app it offers an option to return to the my app to view more information about it and the data related…
woestman
  • 125
  • 1
  • 8
10
votes
1 answer

Calendar event saved locally on phone, but can't sync to Google Calendar

I try to add a calendar by the following code. The event created can be read by calendar apps on my phone, but just sync to online Google Calendar. Can any one give me some hits to solve the issue? here are some remark 1. Code was run on my real…
9
votes
1 answer

Edit background color of a day in calendar view

in my application, I have to show a calendar in which some days are colored differently (eg with a green background) I entered the "calendar view" and I focused on the current date, but can not seem to color certain days from code. Can you give me…
Lele
  • 703
  • 3
  • 15
  • 34
8
votes
2 answers

How does Calendar Provider store instances of infinitely repeating Events?

In Calendar Provider there are multiple data tables, there's the Events table, which store details of individual Events, and there's the Instances table, which store the start and end time for each occurrence of an Event. My question is: How…
8
votes
1 answer

Override Google Calendar default settings for reminders

In my app, the users can add special events to their Google Calendar. I want that the events will be added without any alarm/reminder/notification. Some of the users' calendars have default settings for the reminders, as "A day before the event, at…
TamarG
  • 3,522
  • 12
  • 44
  • 74
8
votes
4 answers

Custom Calendar Date range swipe selection android

I need to design a custom calendar to choose dates while swiping over them. I need some solution on how to implement swipe on the calendar and also will be helpfull if there are any libraries which support this feature. Any type of help will be…
Sachin K Pissay
  • 683
  • 1
  • 11
  • 21
8
votes
0 answers

Programmatically subscribe to an external .ics Calendar on Android

I'd like to have a button in my app that when pressed will have a user start the process of subscribing to my external .ics calendar, similar to what this post shows how to do for iOS. Is there a way to do something like this on Android?
Mohamed Hafez
  • 8,621
  • 7
  • 41
  • 49
8
votes
7 answers

Split date/time strings

I have a ReST service which downloads information about events in a persons calendar... When it returns the date and time, it returns them as a string e.g. date = "12/8/2012" & time = "11:25 am" To put this into the android calendar, I need to do…
Louis Evans
  • 671
  • 2
  • 8
  • 18
8
votes
3 answers

deleting event from calendar in android programmatically

I have searched from the internet a lot and tried many examples . I can successfully add event to the calendar through my application but I can't delete this event programatically. Here are the samples I have tried that I cant end up a successful…
sesamoslu
  • 145
  • 2
  • 10
8
votes
3 answers

Using Android Calendar to get the current time

I'm trying to get the current time (HH:MM:SEC:MILLISEC) in an android app. I'm using this piece of code: Calendar c = Calendar.getInstance(); int time_start = c.get(Calendar.MILLISECOND); "Field number for get and set indicating the minute within…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
7
votes
4 answers

Problem with Calendar.get(Calendar.HOUR)

I am trying to display in a TextView when my application last updated (e.g., "Last updated at 12:13). I am trying to use a Calendar instance and I thought I understood it correctly but I seem to be having trouble. I know to get an instance I use the…
Jon Rubins
  • 4,323
  • 9
  • 32
  • 51
1 2
3
66 67