Hi developed an android application with some functionality to add our events details in Calendar application.My application is working fine. But some times it is giving force close and displaying an error in logcat while debugging. I used 2 content uri's for old and new version of android OS.
those are
if(){
Uri calendars = Uri.parse("content://calendar/calendars");
}
else{
calendars = Uri.parse("content://com.android.calendar/calendars");
}
I am trying to resolve my problem but did not get success. Please provide me a best solution for this issue. I added my logcat below.
Thanks in advance.
java.lang.IllegalArgumentException: Event values must include an eventTimezone
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:415)
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.content.ContentResolver.insert(ContentResolver.java:730)
03-02 18:28:35.836: E/AndroidRuntime(1362): at in.plackal.lovecyclesfree.CycleManager.setAlertOnDevice(CycleManager.java:1083)
03-02 18:28:35.836: E/AndroidRuntime(1362): at in.plackal.lovecyclesfree.ActivityManager.onPause(ActivityManager.java:83)
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.app.Activity.performPause(Activity.java:4563)
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1195)
03-02 18:28:35.836: E/AndroidRuntime(1362): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2693)