Closed GoogleCodeExporter closed 9 years ago
Related discussion:
http://groups.google.com/group/android-developers/browse_thread/thread/206ded218
a19ed9b
Apparently the URI changed in froyo to content://com.android.calendar/ .
I just patched it (branch 1.5.x) to discriminate froyo and tested adding and
updating a calendar's task, and it works in my rooted froyo Nexus One.
It would need further testing against sdk 3 and 4 devices -specially 3, as
SDK_INT is not defined-, which I don't own, and can't test without
CalendarProvider in the emulator image. BTW it crashes the 1.6 emulator just as
before my patch, as it fails to find the Calendar provider:
06-16 01:20:40.099: ERROR/ActivityThread(381): Failed to find provider info for
calendar
06-16 01:21:41.679: DEBUG/AndroidRuntime(381): Shutting down VM
06-16 01:21:41.679: WARN/dalvikvm(381): threadid=3: thread exiting with
uncaught exception (group=0x4001aa28)
06-16 01:21:41.679: ERROR/AndroidRuntime(381): Uncaught handler: thread main
exiting due to uncaught exception
06-16 01:21:41.819: ERROR/AndroidRuntime(381):
java.lang.IllegalArgumentException: Unknown URL content://calendar/events
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.content.ContentResolver.insert(ContentResolver.java:476)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.TaskEditorActivity.addOrUpdateCale
ndarEvent(TaskEditorActivity.java:445)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.TaskEditorActivity.createItemFromU
I(TaskEditorActivity.java:367)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.TaskEditorActivity.createItemFromU
I(TaskEditorActivity.java:1)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.AbstractEditorActivity.prepareCont
entValues(AbstractEditorActivity.java:320)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.AbstractEditorActivity.save(Abstra
ctEditorActivity.java:265)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.TaskEditorActivity.save(TaskEditor
Activity.java:486)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.AbstractEditorActivity.doSaveActio
n(AbstractEditorActivity.java:185)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.AbstractEditorActivity.onClick(Abs
tractEditorActivity.java:171)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
org.dodgybits.android.shuffle.activity.editor.TaskEditorActivity.onClick(TaskEdi
torActivity.java:586)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.View.performClick(View.java:2344)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.View.onTouchEvent(View.java:4133)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.widget.TextView.onTouchEvent(TextView.java:6510)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.View.dispatchTouchEvent(View.java:3672)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(P
honeWindow.java:1712)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow
.java:1202)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneW
indow.java:1696)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.os.Handler.dispatchMessage(Handler.java:99)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.os.Looper.loop(Looper.java:123)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
android.app.ActivityThread.main(ActivityThread.java:4203)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
java.lang.reflect.Method.invokeNative(Native Method)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
java.lang.reflect.Method.invoke(Method.java:521)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
06-16 01:21:41.819: ERROR/AndroidRuntime(381): at
dalvik.system.NativeStart.main(Native Method)
Perhaps I can find a more robust way of dealing with this for both nexus and
emulator... Nevertheless I attach my simple patch.
Original comment by jisakiel
on 15 Jun 2010 at 11:26
Attachments:
Hi jisakiel
Thanks for the update. I missed your note and came to the same conclusion the
hard way - by looking at the Frodo source. I don't have a 2.2 compatible phone,
so let me know if release 1.6.0 fixes it for you.
Original comment by andybry...@gmail.com
on 26 Jun 2010 at 12:33
I prefer your approach of checking the build version rather than mine of trying
one then the other. Will switch it on the next patch release.
Original comment by andybry...@gmail.com
on 26 Jun 2010 at 12:35
Just to let you know - it is fixed at least since 1.6.1 for 2.2 (I'm already on
1.6.3). Thanks for the quick answer...
Original comment by jisakiel
on 29 Jun 2010 at 2:05
Original issue reported on code.google.com by
jisakiel
on 10 Jun 2010 at 9:16