1

Setting date content values on android calendar

view story
linux-howto

http://stackoverflow.com – Following is the code which i have used to add a event on Android Calendar Cursor cursor=getContentResolver().query(Uri.parse("content://com.android.calendar/calendars"), new String[]{"_id", "displayname"}, null, null, null); cursor.moveToFirst(); // Get calendars name String calendarNames[] = new String[cursor.getCount()]; // Get calendars id int[] calendarId = new int[cursor.getCount()]; for (int i = 0; i < calendarNames.length; i++) { calendarId[i] = cursor.getInt(0); calendarNames[i] = cursor.getString(1); cursor.moveToNext(); } cursor.close(); ContentValu (HowTos)