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
18
votes
2 answers

Changing the color of selected dates in android's CalendarView widget

How do i change the color of the selected day in the CalendarView widget provided by android. I don't seem to find any way in the documentation. I can change the VerticalBars using setSelectedDateVerticalBar attribute but I want to set a background…
18
votes
2 answers

How to get national holidays of selected country

I'm writing an app that allows the user to select a country from a list. When they pick a country, a list of national holidays of that country appears. I've seen CalendarProvider and Google Calendar V3, but they seem to only provide the current…
Tai Dao
  • 3,407
  • 7
  • 31
  • 54
18
votes
2 answers

Android Calendar: how to write sync adapter for calendar INSERT

I would basically like to reopen the following unanswered post: Insert new calendar with SyncAdapter- Calendar API Android I would like to make use of the Android Calendar Provider API to create a calendar and insert events into it. The calendar…
Jason Posit
  • 1,323
  • 1
  • 16
  • 36
16
votes
2 answers

Change CalendarView style

I'm trying to add a CalendarView in my application, which uses the Theme.Light theme. The problem is, the days numbers of this calendar are rendered in white, so while using a light theme, you can't see them. Right now, I have the following code in…
personne3000
  • 1,780
  • 3
  • 16
  • 27
16
votes
2 answers

Remove and Update existing Calendar Event

I am following this gist, to insert event into Calendar How do I update existing Calendar Event, which i have inserted earlier using below code: public void addToCalender() throws ParseException { ...... ContentValues event = new…
Oreo
  • 2,586
  • 8
  • 38
  • 63
16
votes
5 answers

Android: CalendarView OnDateChangeLIstener

I've already implemented this listener in order for me to display something when a certain date is clicked, but the problem is that when i scroll the CalendarView down, it automatically displayed something but i didn't click anything, i just…
lemoncodes
  • 2,371
  • 11
  • 40
  • 66
15
votes
2 answers

BroadcastReceiver for Android Calendar events

I am trying to write a BroadcastReceiver that listens to events like insert, edit, delete to the native android calendar (ICS and above). So whenever one of these events occur the app should be able to at the least know that these events…
AliR
  • 2,065
  • 1
  • 27
  • 37
14
votes
6 answers

How to read and edit Android calendar events using the new Android 4.0 Ice Cream Sandwich API?

We are trying to show user the Ice cream Sandwich calendar view, when they want to add a new event. We can only test this in emulator. The other problem is that we can't find any examples how to use CalendarProvider. This is the right class when it…
14
votes
1 answer

Is there any way to detect month change in android calendar view(i.e. when user changes calendar to another month)

I want to get month shown in calendar view and i cant figure it out. i tried calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() { @Override public void onSelectedDayChange(CalendarView view, int year, int…
Anil Shrestha
  • 1,180
  • 11
  • 16
14
votes
2 answers

How to read google calendar events in android?

I am reading all the android calendar events and it is working fine by using this below code but, I want to fetch all the google calendar events from user mail accounts .How can I do that? Any suggestions or sample program will be really…
Anand Rajagopal
  • 1,593
  • 6
  • 24
  • 40
14
votes
4 answers

How can I add event to the calendar automatically?

How can i add event to the calendar automatically? If I use this source code, it opens Calendar with filled entries, but I must click on save button to save it. public class CalendarApplicationActivity extends Activity { public static final…
13
votes
1 answer

How attach private data to android calendar event

How can we attach some extra data to a calendar event like files,photos,a simple string etc,.. i used extended properties and able to insert some extra data via extended properties Uri…
Sai mukesh
  • 712
  • 3
  • 9
12
votes
2 answers

Where did the arrows go?

Edit/Note: I really need an answer to this, and I'd like to stay with the "stock" Google Android API. I've created a +100 bounty on this but if I get a straightforward solution to this using the stock API in the next few days I'll add another +100,…
user316117
  • 7,971
  • 20
  • 83
  • 158
12
votes
1 answer

Source code for new Android Lollipop Calendar app

Does anyone know where I can find the source code for the updated Android Calendar app that is present in 5.0? I did look at this where the source for the old Calendar app is present but I did not find where the viewpager for the months is present.…
achie
  • 4,716
  • 7
  • 45
  • 59
12
votes
1 answer

Listen to android calendar changes. (Sync/Delete/Insert etc..)

I've understand I have to use Content Provider to get all changes, but I also realized starting API14 there is a ready Content Provider for the calendar which I can use to listen to instead of "building" my own custom one. Is there anywhere I can…
SagiLow
  • 5,721
  • 9
  • 60
  • 115
1
2
3
66 67