I am writing a code that displays all events of all calendars synced with a particular Gmail account.But I am able to get data from primary calendar only . Can someone help in how to do it for secondary calendars?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HERE IS THE CODE FOR GETTING ALL EVENTS :
}
*The most important thing is to sync the gmail calendar in your device In ICS we are given with a choice that whether we want to sync secondary calendars or not. Make sure that secondary calendars are synced in your device.Only then we can get the events from the secondary calendars.
In Android Gingerbread byDefault all the calendars are Synced when we choose accounts&sync whereas in ICS only the selected ones are synced***