ExtendedProperties in Android Calendar

2 posts, 0 answers
  1. Omar
    Omar avatar
    1 posts
    Member since:
    Feb 2015

    Posted 18 Feb 2015 Link to this post

    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.
     
  2. Antony Jekov
    Admin
    Antony Jekov avatar
    88 posts

    Posted 19 Feb 2015 Link to this post

    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.

     
  3. DevCraft banner
Back to Top