This is a migrated thread and some comments may be shown as answers.

ExtendedProperties in Android Calendar

1 Answer 133 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Omar
Top achievements
Rank 1
Omar asked on 18 Feb 2015, 03:51 PM
I'm new on android developpement and i'm trying to use UserProperties with Android Calendar API, my code below :

   customerContentValues.put(ExtendedProperties._ID, model.mId);
   customerContentValues.put(ExtendedProperties.NAME, "client_name");
   customerContentValues.put(ExtendedProperties.VALUE, model.mCustomerName);
   activity.getContentResolver().insert(ExtendedProperties.CONTENT_URI, customerContentValues);

I am having error like :

02-06 09:43:04.484: E/AndroidRuntime(9530): FATAL EXCEPTION: IntentService[AsyncQueryServiceHelper]
02-06 09:43:04.484: E/AndroidRuntime(9530): java.lang.IllegalArgumentException: Only sync adapters may write using content://com.android.calendar/extendedproperties
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:167)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:160)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:484)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:227)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.content.ContentResolver.applyBatch(ContentResolver.java:954)
02-06 09:43:04.484: E/AndroidRuntime(9530): at com.android.calendar.iselection.AsyncQueryServiceHelper.onHandleIntent(AsyncQueryServiceHelper.java:327)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.os.Handler.dispatchMessage(Handler.java:99)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.os.Looper.loop(Looper.java:176)
02-06 09:43:04.484: E/AndroidRuntime(9530): at android.os.HandlerThread.run(HandlerThread.java:61)

need some help.
 

1 Answer, 1 is accepted

Sort by
0
Antony Jekov
Telerik team
answered on 19 Feb 2015, 09:25 AM
Hello Omar,

Thank you for contacting the Android team.

The RadCalendarView is behaving like every other view. There is nothing specific in the code you provided, that shows a real problem regarding the calendar control or its API. We are supporting scenarios that are at least remotely connected to our controls.

However your problem is not related in any way to our controls. Since you are new to Android development I can recommend you to make a research on the subject of custom preferences and refer to the official tutorials and books.

I am going to proceed and close this ticket now. Feel free to reopen it or start a new one if you have any problems regarding the calendar or any other of our controls.

Thank you for your time and all best!

Regards,
Antony Jekov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Calendar
Asked by
Omar
Top achievements
Rank 1
Answers by
Antony Jekov
Telerik team
Share this question
or