I\'ve checked all over for ways to create a new calendar from within an Android app. The only way I\'ve seen is using the new Calendar API in the latest api version, BUT this on
Yes you can do it. But since you want to create a calendar linked with your google account, you need Google Calendar API for this (didn't find a single solution for doing this with Android Calendar Provider). Check below links:
Google calendar API for Android
Insert new Google Calendar
Be sure to check their API explorer. Simple HTTP REQUEST for creating new calendar:
POST https://www.googleapis.com/calendar/v3/calendars?key={YOUR_API_KEY}
{
"summary": "My new google calendar"
}
And it's RESPONSE:
{
"kind": "calendar#calendar",
"etag": "__________etag_val_________",
"id": "______id_goes_here______@group.calendar.google.com",
"summary": "My new google calendar"
}
After that you should be able to manage this calendar from your Android app with Calendar Provider (after sync).