Add Google Calendar into an activity on Android - android

Is there a way to add Google Calendar into an activity on the Android App? Actually I tried to use CalendarView, but it does not have option to add event and display it on the particular date unlike Google Calendar.
I don't like to use Caldroid or someother libraries as it does not look like standalone Google Calendar App on Android.
Eventually I would like to display events in the format of either event title or different bg colors on the day/date column on the calendar. In case of different colors, the list of events can be displayed when user clicks the day/date.
Will Google provide API for Android in future to add the calendar with event into the activity and highlighting event on the calendar?

Related

Providing calendar data for the Calendar app

In the Android calendar app one can activate certain calendars, like holidays or birthdays. In the case of holidays I suppose the data comes from Google, in the case of birthdays the data comes from my contacts.
I would like my app to provide such calendar data. The data would be generated by my app, the Calendar app would simply display it. I would like my app to show up among the aforementioned list of calendars in the Calendar app, like holidays and birthdays, where the user may activate it and choose a color.
To make things clear: I don't want my app to access the Calendar app, but the other way around: the Calendar app would access the calendar data provided by my app.
Is this possible in the way I describe? What API do I have to implement?
If this is not possible this way, is there another way that comes close to what I'm describing?
Or is the only way to provide data to the Calendar to ask write permission for the Calendar and add events?

Calendar display in Android App only through Calendar View?

I would like to display a calendar in an android app. Based on some research, I found that we can use the CalendarView widget to display a calendar. We cannot create events, attendees or other features using the CalendarView, correct me if I am wrong. The other option is to use the native in built calendar using Intents.
Is there any other way to display a calendar easily in an Android app easily without the above 2 methods and still be able to create events, attendees or other features.
Can CalendarProvider be used create a calendar display. I know it can be used to create events, attendees, reminders etc...
Can CalenderProvider be used in conjunction with CalendarView?
If CalendarProvider cannot be used in conjunction with CalendarView or any other easy way, should we build a calendar from scratch?
Thank you in advance!!!
Based on some research, I found that we can use the CalendarView widget to display a calendar.
You can use CalendarView to allow the user to pick a date.
We cannot create events, attendees or other features using the CalendarView, correct me if I am wrong
CalendarView is a widget. Its job is not to "create events, attendees" — similarly, it is not the job of EditText to create Wikipedia pages. The job of CalendarView is to let the user pick a date using a calendar-style visual representation.
Is there any other way to display a calendar easily in an Android app easily without the above 2 methods and still be able to create events, attendees or other features
You are certainly welcome to see if there is an existing library that has your desired feature set.
Can CalendarProvider be used create a calendar display
Not directly. This is akin to asking "can I use an Excel spreadsheet to create a calendar display?" CalendarProvider is a data store. It is not a visual representation of an event calendar.
Can CalenderProvider be used in conjunction with CalendarView?
Not in the way that you are thinking. CalendarView is a way to allow the user to pick a date. It is not a way to show the user information about particular dates (e.g., appointments or other events).
should we build a calendar from scratch?
That is up to you.

Avoid Conflict between the events in google calendar android

I'm creating an android app that creates an event in google calendar using app.
Now it is creating an event properly, but there is a problem. If I schedule the first event from 1pm to 3pm, it should not create a second event if it is on 1.30pm to 2pm on the same day.
So what I'm saying is I want to avoid time conflict (double booking) between the time in same date.
Thanks in advance
Try not to create an event directly to the calendar. Instead, use invitations. If you read through this blog, you'll know that Google Calendars are set to 'Automatically add all invitations to this calendar', which can cause double booking.
Use events.insert().
More on that in Calendar API docs.
You can also play and test this using Calendar try-it.

Google Calender in android application

I want to reproduce google calender in my application which shows all events in calender, After clicking on date, details of Even on that date should be displayed and if there is no event then option to add event must be given.
My question is whether google(android) provide any in build widgets which is capable of showing events, Currently I am using CalenderView which shows only dates and there is no way to show events in it.
if there is any material on this problem please let me know. I know GoogleCalender v3 api and how to retrieve data from there my main problem is how to show events in calender.

How to implement CalenderView in Android

I am new at android this, so this might sound a bit confusing..
i am making an app that requires to have calendars showing events in week, day and month views (like google calendar). I have implemented this is a testing version but i want to change the implementation to make it more flexible. currently the event are stored in database and are edited and used in various activities in the app. Can i have android manage the events in it's calendar? but i would still need to be able to manipulate it from the app and store extra info other than the time and date and description. These extra info will be used for calculations. We also need to have a calendar in the app. Can we retrieve the events specific to the app for doing all this?
This tutorial might be of help.

Categories

Resources