I want to Print all names of all calendars Known to android

You must Login before you can answer or comment on any questions.

i tried this code

function showCalendars(calendars) { for (var i = 0; i < calendars.length; i++) { Ti.API.info(calendars[i].name); } }

Ti.API.info('ALL CALENDARS:');
showCalendars(Ti.Android.Calendar.allCalendars);

but it gives me error:

[ERROR] Failed to find provider info for com.android.calendar appcelerator

I am targeting android 2.2 and titanium sutdio version is:Titanium Studio, build: 2.1.0.201206251749

Please someone help i m stuck here from 2 days. I am using Windows 7 64-bit

— asked 11 months ago by Nadeem Mughal
4 Comments
  • are you providing permissions of read and write into calendar in Androidmenifest file ???

    — commented 11 months ago by Sarafaraz Babi

  • have you tried it in device ????? it might be problem of emulator...

    — commented 11 months ago by Sarafaraz Babi

  • i have added permission to mainfest file .. You tell plz how to add permissions so that i could confirm that. and yes i have tried it on device but same problm. thanx Bro

    — commented 11 months ago by Nadeem Mughal

  • Show 1 more comment

Your Answer

Think you can help? Login to answer this question!