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.
Related
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?
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?
I'm new to Android development, and I am trying to build an app that has a task list with items that recur at a user specified frequency. I would like the user to select the first due date for the task, and also specify the frequency for the recurrence, similar to how you can do this for events in Google Calendar (I am currently using a DatePickerDialog to allow the user to select a due date; I am just missing the recurrence piece). However, I do not want to put events in the calendar using the calendar API. I have searched StackOverflow and have come up empty; I see plenty on the calendar API but don't believe this is what I am looking for (since I don't want to put anything in the user's calendar); is this a correct assumption? Is there a class that I have missed that handles recurring dates? Or, is there a simpler way to go about this?
I was looking for pretty much the same thing and I ended up using BetterPickers library. There are various dialogs you can use and one of them is also a RecurrencePickerDialog which looks a lot like the one in Google Calendar app.
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.
I mean, is there any way to
add more functionality
add/remove events
synchronize with other then Google calendars/formats (authorized)
There is a content provider available for Calendar entries: android.provider.Calendar.CONTENT_URI (see brief documentation here).
Though, I'd consider using the Google Calendar Data API. You should be able to authenticate the user using AccountManager#getAuthToken and edit calendar entries in very rich and well-documented ways.