Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-12-19 Thread Michael Chan
Hi, In case you haven't seen it, the developer guide for calendar API's and intents are available at: http://developer.android.com/guide/topics/providers/calendar-provider.html Thanks, Mike On Thu, Nov 3, 2011 at 11:36 AM, Mark Murphy wrote: > On Thu, Nov 3, 2011 at 2:29 PM, Michael Chan wrote

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-07 Thread Zsolt Vasvari
Great -- thanks. So I just moved my code over. My observations of the new Calendar Content Provider vs. the one from SDK 8: - Same URI - Same logic works for reading the list of Calendars and creating/ reading Events and Reminders (only operations I am doing). - A couple of the column names have

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-07 Thread Zsolt Vasvari
Great -- thanks. So I just moved my code over. My observations of the new Calendar Content Provider vs. the one from SDK 8: - Same URI - Same logic works for reading the list of Calendars and creating/ reading Events and Reminders (only operations I am doing). - A couple of the column names have

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-11-07 Thread Michael Chan
Hi, > Are you saying there is no way to help the user subscribe to a public> google > calendar via the new calendar api? There just isn't a *supported* way via the Android Calendar API. (You can always do some reverse engineering and get something that work for now. But it may break suddenly one

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-07 Thread Brian
As a workaround, you can add your Google account as an activesync account. Use your gmail.com address at first, but you'll need to change the server to be m.google.com when it complains it can't connect. See here: http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=138636&topic=14299

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-04 Thread Ralph
Hi Michael, Thanks again. Are you saying there is no way to help the user subscribe to a public google calendar via the new calendar api? I am already subscribing using some example from Yaniv Inbar a while back: where ALERT_CALENDAR is "nyc.ale...@brooklynmarathon.com" Is there a better, more

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-11-04 Thread Michael Chan
Hi Ralph, I wish I have a solution for you. That's not supported right now. The only (not so good) way is to use the browser. I will file an internal feature request if we don't have one already. Thanks, Mike On Fri, Nov 4, 2011 at 7:24 AM, Ralph wrote: > Hi Michael and thank you. > > Can you

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-04 Thread Ralph
Hi Michael and thank you. Can you let us know the recommended way to subscribe a user to a public google calendar. For example, let's say you have a google calendar with public information. for example, some city alerts etc. data. We want to make it easy for the user to subscribe to the public

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Mark Murphy
On Thu, Nov 3, 2011 at 2:29 PM, Michael Chan wrote: > We will be publishing a developer guide for Calendar APIs with more > details on the set of supported intents as well as code snippets. Great! Be sure to spread the news when they're released. :-) Thanks! -- Mark Murphy (a Commons Guy) http

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Michael Chan
Hi, I believe the GoogleCalendarSyncAdapter was not included in the emulator. That's why you can't sync Google Calendars in the emulator. The new Calendar API will support viewing, adding events (not calendars) via Intents. The user will need to confirm before the event is saved. Adding *Google*

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Ralph
Thanks again. I can say that if you have access to an exchange server then the following examples do work in the android 4.0 level 14 emulator using google apis at the moment: Insert an event via Intents: Intent intent = new Intent(Intent.ACTION_INSERT)

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Mark Murphy
There are no samples in the SDK. I do not know if the content provider works in the emulator. I was planning on waiting until the source code for ICS ships, at which point we can start to fill in the documentation gaps. On Thu, Nov 3, 2011 at 9:57 AM, Ralph wrote: > Hi Mark, > > Thanks so much. >

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Ralph
Hi Mark, Thanks so much. When I try to subscribe to a public google calendar via Intent on Android Ice Cream Sandwich Level 14 emulator something like this: Does anyone know how to subscribe to a public calendar via the api or know where the test cases are? Thanks. Inte

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Mark Murphy
I am assuming that they mean ACTION_INSERT, ACTION_EDIT, ACTION_VIEW, ACTION_PICK, etc. on either CalendarContract.CONTENT_URI or CalendarContract.Events.CONTENT_URI. I have not tried these yet. On Thu, Nov 3, 2011 at 6:56 AM, Ralph wrote: > But the announcement below refers to intents but it als

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-03 Thread Ralph
But the announcement below refers to intents but it also says once the new apis arrive when do the new apis arrive? >From google: "We want to see lots of good calendar apps and extensions that work reliably across Android devices, and aren't broken by platform updates. So we decided to create a c

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-02 Thread Zsolt Vasvari
The ICS has not been relased. There are no "Intents". It's a ContentProvider. On Nov 3, 11:04 am, Ralph wrote: > Hi > > And thanks. > > I see in the ICS announcement that the calender API and intents are > documented or at least that is what is written but does anyone see the > actual docs or s

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-02 Thread Ralph
Hi And thanks. I see in the ICS announcement that the calender API and intents are documented or at least that is what is written but does anyone see the actual docs or source or test cares I must be looking in the incorrect place. I grep'ed through the Android source tree that I downloaded and

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-02 Thread Zsolt Vasvari
No, Google Account seem to be broken on the ICS emulator: http://groups.google.com/group/android-developers/browse_thread/thread/da2edb04406ac620# On Nov 3, 5:44 am, Ralph wrote: > Hi, > > I'd also like to try out adding a subscription to a public google > calendar. > > Where are the Intents d

[android-developers] Re: No luck with new ICS CalenderContract

2011-11-02 Thread Ralph
Hi, I'd also like to try out adding a subscription to a public google calendar. Where are the Intents documented? Or at least where are the test cases that test adding a public calendar to an account and making it visible and sync'ed? I seem to only see a way to add an event to a particular cal

[android-developers] Re: No luck with new ICS CalenderContract

2011-10-25 Thread Zsolt Vasvari
Thanks, of course that will work. Duh... How did I miss that? That said, I am just looking in the Javadocs and under Constants, CONTENT_URI is not listed, but it's further down, under Fields. That explains why I didn't see it, even though it's not a real excuse. Since CONENT_URI is a "static fi

[android-developers] Re: No luck with new ICS CalenderContract

2011-10-25 Thread Michael Chan
Hi Zsolt, Can you try CalendarContract.Calendars.CONTENT_URI instead of CalendarContract.CONTENT_URI? Thanks, Mike On Oct 24, 5:39 pm, Zsolt Vasvari wrote: > I would have expected to work, also. > > It's kind of frustrating that the first time we are goig to be able > "put out fires", is when t

[android-developers] Re: No luck with new ICS CalenderContract

2011-10-25 Thread Michael Chan
Hi Zsolt, Your URI is content://com.android.calendar and it should be content://com.android.calendar/calendar. Can you try CalendarContract.Calendars.CONTENT_URI instead of CalendarContract.CONTENT_URI? Thanks, Mike On Oct 23, 11:57 pm, Zsolt Vasvari wrote: > I am trying to convert my Calendar

[android-developers] Re: No luck with new ICS CalenderContract

2011-10-24 Thread Zsolt Vasvari
I would have expected to work, also. It's kind of frustrating that the first time we are goig to be able "put out fires", is when the general public will get hold of the first ICS device. The emulator is all but useless. On Oct 25, 12:25 am, Mark Murphy wrote: > I haven't had a chance to yet, a

Re: [android-developers] Re: No luck with new ICS CalenderContract

2011-10-24 Thread Mark Murphy
I haven't had a chance to yet, and probably won't for a few weeks. Since the Calendar app is in the emulator, I would have expected that content provider to work. It's possible that it is an emulator bug -- without hardware as a point of reference, it is difficult to tell. On Mon, Oct 24, 2011 at

[android-developers] Re: No luck with new ICS CalenderContract

2011-10-24 Thread Zsolt Vasvari
Nobody tried this new API yet? On Oct 24, 2:57 pm, Zsolt Vasvari wrote: > I am trying to convert my Calendar code to the new ICS APIs. > > For starters, I am trying the simplest possible operation -- reading > the list of Calendars. > > I am using the following code: > > context.getContentResolve