{"action":"created","issue":{"url":"https://api.github.com/repos/mpcjanssen/simpletask-android/issues/324","labels_url":"https://api.github.com/repos/mpcjanssen/simpletask-android/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/mpcjanssen/simpletask-android/issues/324/comments","events_url":"https://api.github.com/repos/mpcjanssen/simpletask-android/issues/324/events","html_url":"https://github.com/mpcjanssen/simpletask-android/issues/324","id":116478673,"number":324,"title":"CalendarSync exception","user":{"login":"mpcjanssen","id":146895,"avatar_url":"https://avatars.githubusercontent.com/u/146895?v=3","gravatar_id":"","url":"https://api.github.com/users/mpcjanssen","html_url":"https://github.com/mpcjanssen","followers_url":"https://api.github.com/users/mpcjanssen/followers","following_url":"https://api.github.com/users/mpcjanssen/following{/other_user}","gists_url":"https://api.github.com/users/mpcjanssen/gists{/gist_id}","starred_url":"https://api.github.com/users/mpcjanssen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpcjanssen/subscriptions","organizations_url":"https://api.github.com/users/mpcjanssen/orgs","repos_url":"https://api.github.com/users/mpcjanssen/repos","events_url":"https://api.github.com/users/mpcjanssen/events{/privacy}","received_events_url":"https://api.github.com/users/mpcjanssen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"vojtechkral","id":424891,"avatar_url":"https://avatars.githubusercontent.com/u/424891?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtechkral","html_url":"https://github.com/vojtechkral","followers_url":"https://api.github.com/users/vojtechkral/followers","following_url":"https://api.github.com/users/vojtechkral/following{/other_user}","gists_url":"https://api.github.com/users/vojtechkral/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechkral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechkral/subscriptions","organizations_url":"https://api.github.com/users/vojtechkral/orgs","repos_url":"https://api.github.com/users/vojtechkral/repos","events_url":"https://api.github.com/users/vojtechkral/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechkral/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-11-12T04:46:59Z","updated_at":"2015-11-12T15:23:01Z","closed_at":null,"body":"The following exception was reported via Google:\r\n\r\n````\r\njava.lang.RuntimeException: Unable to create application nl.mpcjanssen.simpletask.TodoApplication: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar/calendars?caller_is_syncadapter=true&account_name=Simpletask%20Calendar&account_type=LOCAL\r\n\tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:4596)\r\n\tat de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)\r\n\tat de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:668)\r\n\tat android.app.ActivityThread.handleBindApplication(<Xposed>)\r\n\tat android.app.ActivityThread.access$1600(ActivityThread.java:154)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1382)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:135)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5294)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)\r\n\tat de.robv.android.xposed.XposedBridge.main(XposedBridge.java:115)\r\nCaused by: java.lang.IllegalArgumentException: Unknown URL content://com.android.calendar/calendars?caller_is_syncadapter=true&account_name=Simpletask%20Calendar&account_type=LOCAL\r\n\tat android.content.ContentResolver.insert(ContentResolver.java:1203)\r\n\tat nl.mpcjanssen.simpletask.CalendarSync.addCalendar(CalendarSync.java:118)\r\n\tat nl.mpcjanssen.simpletask.CalendarSync.setSyncType(CalendarSync.java:242)\r\n\tat nl.mpcjanssen.simpletask.CalendarSync.<init>(CalendarSync.java:264)\r\n\tat nl.mpcjanssen.simpletask.TodoApplication.onCreate(TodoApplication.java:113)\r\n\tat android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)\r\n\tat android.app.ActivityThread.handleBindApplication(ActivityThread.java:4593)\r\n\t... 13 more\r\n````"},"comment":{"url":"https://api.github.com/repos/mpcjanssen/simpletask-android/issues/comments/156136758","html_url":"https://github.com/mpcjanssen/simpletask-android/issues/324#issuecomment-156136758","issue_url":"https://api.github.com/repos/mpcjanssen/simpletask-android/issues/324","id":156136758,"user":{"login":"vojtechkral","id":424891,"avatar_url":"https://avatars.githubusercontent.com/u/424891?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtechkral","html_url":"https://github.com/vojtechkral","followers_url":"https://api.github.com/users/vojtechkral/followers","following_url":"https://api.github.com/users/vojtechkral/following{/other_user}","gists_url":"https://api.github.com/users/vojtechkral/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtechkral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtechkral/subscriptions","organizations_url":"https://api.github.com/users/vojtechkral/orgs","repos_url":"https://api.github.com/users/vojtechkral/repos","events_url":"https://api.github.com/users/vojtechkral/events{/privacy}","received_events_url":"https://api.github.com/users/vojtechkral/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T15:23:01Z","updated_at":"2015-11-12T15:23:01Z","body":"I'm not sure how this could happen, maybe it's xposed+xprivacy refusing access to calendar URL. Anyway, I'll add an exception handler just to be on the safe side..."}}