When I was developing an APP whose API is 7 on my Nexus S, there was no problem creating a new event on my calendar.
I used this code to get the location of the calendars on my phone:
cursor = cr.query(Uri.parse("content://com.android.calendar/calendars"), new String[]{ "_id", "displayname" }, null, null, null);
The problem arose when I upgraded my Nexus S to Android ICS 4.0. Without changing the code, I got an error. On the logarithm, I could read:
- there is no such column: displayname, db = / data / data / com.android.providers.calendar / database /calendar.db
Of course, the cursor is null. Maybe any changes to the calendar database? So, I would like to know how I can create new calendar events developing an API 7 application on Android 4.0
Thanks;)
source share