Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android : Is possible to add calendar event without calling the Google Calendar API or Starting Native Calendar activity?

I would like to ask, that is possible to add calendar event without calling the Google Calendar API (need internet connection) or Starting Native Calendar activity (is unnecessary)? Just add calendar event into device native calendar (no reading, filtering, etc..)

Many thanks for any advice

like image 666
redrom Avatar asked Dec 22 '25 17:12

redrom


1 Answers

I think what you are looking for is the CalendarProvider. (See also ContentProviders)

You can use it to read, write, update, and delete calendar events. Although you will need the calendar permissions:

<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />

You can then just use the users calendar or create your own.

like image 50
David Medenjak Avatar answered Dec 24 '25 10:12

David Medenjak



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!