Hi, Try the following: adb root <wait a couple seconds> adb shell sqlite3 /data/data/com.android.providers.calendar/databases/calendar.db "INSERT INTO Calendars VALUES(null,'YOUR_APP','local',NULL,NULL,'Test_Calendar','Test_Calendar',0,NULL,700,1,0,NULL,'America/Los_Angeles','test_account',1,1,1,5,'0,1,2','0,1','0,1,2',0,null,null,null,null,null,NULL,NULL,null,NULL,NULL);"
Thanks, Mike On Fri, Mar 2, 2012 at 12:52 AM, Forum JD <[email protected]> wrote: > Hello All, > > I am very new to android development. I am trying to develop an > application where I want to use the new public Calendar API of ICS. > The problem is that on simulator I do see a calendar icon but I cannot > add events to it. It asked me every time to add an account. I added my > gmail account and enabled sync on simulator and it showed me my email > folders but did not sync the calender. Due to this, I do not have any > test data and a test calender on the simulator and hence when I try > try read all the calenders on the device, the list is just empty. > > How do I get a test calender in emulator to test my application? > Unfortunately I have a android phone but it has OS version of 2.3 > (Samsung galaxy S) and I do not think it would get upgrade soon to > ICS. Please help me out with this. > > JD > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

