The 'calendar' in your Uri is the problem, it's unrecognized so you get a null cursor back.
Lee On May 25, 11:33 am, andreas <[email protected]> wrote: > On 25 Mai, 11:44, Lee <[email protected]> wrote: > > > Whether or not it's wise to use unpublished Uri's, > > Well, I would prefer to use published Uris, but there are none to > access the calendar. And there is not even any other official way to > enter and read calendar data. That's a pity. > > But maybe some Google Andorid Wizard reads my cry for help ;-) and can > tell me, what's now wrong with Froyo and > > String[] projection = new String[] { "_id", "displayName" }; > Uri calendars = Uri.parse("content://calendar/calendars"); > Cursor managedCursor = act.managedQuery(calendars, > projection,"access_level>300", null, null); > > Andreas > > -- > 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 > athttp://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

