On Fri, Feb 25, 2011 at 6:42 AM, Marcin Orlowski <[email protected]> wrote: > On 22 February 2011 23:59, Mark Murphy <[email protected]> wrote: > >>> I got problems dealing with Calendar Provider. >> There is no "Calendar Provider" in the Android SDK. > > Sorry Mark, but "so what?" If it's not part of SDK it does not exists?
Anyone needing to ask questions about an undocumented, unsupported API should not be using it. Conversely, anyone who thinks it is safe to use an undocumented, unsupported API damn well better be able to read and understand the AOSP code behind that undocumented, unsupported API. > Like it or not calendar is used widely and like it or not people will > try to access it, especially there's no other, official way of doing > so (which sucks, as at least read access to google calendar shall be > officially exposed and documented to avoid situations like this one). Search for Google Calendar GData API. > If someone asks for undocumented things i believe it's more beneficial > to give him constructive answer like I know you can and warn about the > potential risk of doing so instead of throwing "it's not a part of > sdk, die". You are cordially invited to add me to your email filters, then, so that you don't have to read any more of my messages. Somebody with the itch to scratch should be creating their own compatibility layer atop such undocumented, unsupported APIs. In the case of the Calendar, such a compatibility layer: -- would insulate all developers from some degree of change in the undocumented, unsupported API, such as the provider name change in the Calendar provider -- would provide an avenue for supporting other calendars besides the AOSP Calendar app -- would have documentation -- would have support The same holds true for just about any other undocumented, unsupported API in Android. I haven't had the itch, so I have not scratched it. If somebody comes up with such a compatibility layer, I will be happy to point people in that direction. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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

