Created
March 28, 2011 16:20
-
-
Save yeradis/890762 to your computer and use it in GitHub Desktop.
ANDROID - Failed to find provider info for Calendar, Unknown URL content://calendar/events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
funtcion Uri getCalendarURI(eventUri boolean){ | |
Uri calendarURI = null; | |
if (android.os.Build.VERSION.SDK_INT <= 7 ) | |
{ | |
calendarURI = (eventUri)?Uri.parse("content://calendar/events"):Uri.parse("content://calendar/calendars"); | |
} | |
else | |
{ | |
calendarURI = (eventUri)?Uri.parse("content://com.android.calendar/events"): Uri.parse("content://com.android.calendar/calendars"); | |
} | |
return calendarURI; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment