I would like to display the list of installed calendars in android in the settings screen and select one among them. I saw this functionality in an android application Cal. Screenshot of the list of installed calendars in Cal app can be found here.
What I would like to know is "Is it possible to display the list of calendars using <preference> under res/XML"?
or
Do I have to select the list of calendars using PackageManager to find the list of all installed applications and displaying only the calendar applications?
I tried using <preference> using the below method
<Preference android:title="@string/pref_select_calendar" >
<intent
android:action="android.intent.action.PICK"
android:data="content://calendar/calendars" />
</Preference>
But I've got android.content.ActivityNotFoundException: No Activity found to handle Intent
{ act=android.intent.action.PICK dat=content://calendar/calenders }
What am I missing? or the approach I'm trying is not correct? Any pointers will be very helpful. Thank you.