Thanks for your information. Great work. * . Thank you, With Best regards, Sun Certified, * *Amal Shiwantha Ranasinghe.* * * *Google + <https://plus.google.com/117853962252903474075/about> | Linkedin<http://lk.linkedin.com/in/amalshiwantha> | Ceylon Calendar - 2012 <http://youtu.be/ggBxYcoEiz8> | Map<http://maps.google.com/maps?q=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lanka&hl=en&ll=7.540955,80.628995&spn=0.006116,0.009645&sll=7.873054,80.771797&sspn=6.254445,9.876709&oq=amal+sh&hq=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lanka&t=m&z=17&iwloc=A> * **
On 21 January 2013 21:30, Nobu Games <dev.nobu.ga...@gmail.com> wrote: > You need to do the following: > > - Use CalendarContract for Android API level 14 and higher > - Read the > documentation<http://developer.android.com/reference/android/provider/CalendarContract.html>. > It explains how to query events. > - For older Android versions you have the following options: > - Write your own synchronization component that interfaces with the > Google > Calendar API <https://developers.google.com/google-apps/calendar/> > - Create a calendar database just for your app. It's not > synchronized with the user's Google Calendar but it's the easiest > solution. > - Read: > > http://stackoverflow.com/questions/846942/is-there-a-way-to-access-the-calendars-entries-without-using-gdata-java-client > > > > On Sunday, January 20, 2013 8:43:18 PM UTC-6, askl wrote: > >> Thanks for your respond. i got an idea from your message. i try to >> develop an application new function with calendar app. So i want to get >> default calendar event.* what is the suitable way to **query events.?* >> >> * >> . >> Thank you, >> With Best regards, >> Sun Certified, >> * >> *Amal Shiwantha Ranasinghe.* >> * >> * >> *Google + <https://plus.google.com/117853962252903474075/about> | >> Linkedin <http://lk.linkedin.com/in/amalshiwantha> | Ceylon Calendar - >> 2012 <http://youtu.be/ggBxYcoEiz8> | >> Map<http://maps.google.com/maps?q=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lanka&hl=en&ll=7.540955,80.628995&spn=0.006116,0.009645&sll=7.873054,80.771797&sspn=6.254445,9.876709&oq=amal+sh&hq=Amal+Shiwantha,+22+A9,+Palapathwela,+Sri+Lanka&t=m&z=17&iwloc=A> >> * >> ** >> >> >> On 20 January 2013 21:55, Nobu Games <dev.nob...@gmail.com> wrote: >> >>> The >>> CalendarContract<http://developer.android.com/reference/android/provider/CalendarContract.html>component >>> is the only sane way to access a user's calendar data. >>> Unfortunately it's only for API level 14 and higher ( >= 4.0). In older >>> Android versions the calendar contentprovider is part of a hidden API which >>> has been customized by various manufacturers. That means there is no >>> official, standardized way of accessing or manipulating calendar data. >>> >>> You could try accessing that hidden contentprovider the way you're doing >>> it. But you need to guess the proper content URI. And you also need to make >>> assumptions about the table column names and so on. It's not really a >>> pretty nor reliable thing to do. >>> >>> I had the same problem with one of my apps. For that reason I wrote my >>> own calendar SyncAdapter and ContentProvider components that synchronize >>> with the Google Calendar web API. >>> >>> On Saturday, January 19, 2013 10:17:53 PM UTC-6, askl wrote: >>>> >>>> Hello friends, >>>> i want to get calendar events using this query. >>>> >>>> Cursor cursor = getContentResolver().query( >>>> Uri.parse("content://com.**andro**id.calendar/events"), >>>> new String[] { "_id", "title", "dtstart", "dtend" }, null, >>>> null, "dtstart ASC"); >>>> >>>> *Manifest,xml* >>>> <uses-sdk >>>> android:minSdkVersion="8" >>>> android:targetSdkVersion="17" /> >>>> >>>> <uses-permission android:name="android.**permissi**on.READ_CALENDAR" >>>> /> >>>> <uses-permission android:name="android.**permissi**on.WRITE_CALENDAR" >>>> /> >>>> >>>> But ones generate an exception called *null* longparser dtend on >>>> android version 2.2. >>>> >>>> *just explain to me this query is working on which os version..? * >>>> *2.2 and up version or 3.0 and up version* >>>> * >>>> * >>>> *or else this method is ok or not.* >>>> >>>> just help me.. >>>> thank you >>>> askl >>>> >>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-d...@**googlegroups.com >>> >>> To unsubscribe from this group, send email to >>> android-developers+**unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/**group/android-developers?hl=en<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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en