| || |
Re: HTC One - Google calendar crashing repeatedly on refresh
OK I think I solved it. I was able to refresh. I will update if it doesn't continue to work.
I followed multiple steps. Not sure if all are necessary or just the last one.
STEP ONE was from this site
Android 4 and Calendar crash | MortenCB's blog
After I got a new phone with Android 4 (ICS), my calendar crashed as
soon as I enabled sync of my google calendar. After *lots* of
googling, I finally found the cause: At least one of the events in the
calendar is “corrupt”, and in earlier Android versions this has been
handled better than in the new Android. In the new, it gets real sad
and the whole calendar application crashes.
The solution (also found after *lots* of googling):
1) Log into your google calendar on a PC in a browser.
2) Go to calendar settings and export the whole calendar to an ICS-file.
3) Make sure you have the ICS-file (open it in a text editor)
4) Delete your calendar (or all events in it if it’s your main
calendar) on the web / google calendar
5) If you have more than one calendar, repeat steps 2-4
6) Import your ICS-file back to the google calendar
7) If you have more than one calendar, repeat step 7
For me this solved everything. From what I read, some will get an
error when importing back in, and then it will state the line number
the problem is in. This can be a malformed time zone, some funky
recurring event and so on. In that case:
a) Open the ICS-file in an editor
b) Fix the malformed line
c) Go to step 6)
Hope that was helpful, it solved all my problems at least
PS: I read that most of these errors come from using programs that
sync your outlook/exchange calendar to google. It probably messes up
recurring events and timezones sometimes, and the event ends up
corrupt. For some reason Google doesn’t detect this, and you get a
big problem on the Android that crashes when it gets to such a
that led to a problem importing the data back so
Well problem fixed.
Google support advised that "Clearing your Primary Calendar" no longer works. As of a few months ago the tool changed the way items are "deleted". Previously if you were to delete and item or use the web to clear your primary calendar it would simply trash all the items. Now however, when you delete an item or clear your calendar it simply "cancels" the event and hides from view.
I know I know, I gave the esupport guy an earful because that's not what is explained in numerous help articles and even in the message to which you see when clearing your calendar.
At any rate!
The fix is quite simple, open the exported ics file in your favorite text editor (I like Notepad++, also I'd make a backup copy first) do a find/search and replace.
search for "UID:" (no need to be case sensitive, and make sure you have appended the colon)
replace with "UID:X" (Replace X with any non-special character [a-z,0-9])
Save the ics file and re-import.
Since all items are now unique there will be no conflicts and you should have no problems.
Still wasn't syncing on my phone so
STEP THREE and maybe the only one actually needed
SyncCell Knowledge Base :: How do I clear / reset all Calendar Events on my Android Phone?
To manually clear all existing Calendar Events on your Android Phone, perform the following steps. This may be necessary if your Android phone's Calendar has stopped syncing to your GMail Calendar.
Access "Manage apps"
Locate "Calendar Storage" and open it
Click "Clear Data" to clear the existing Calendar data
Note, after clearing your Android Calendar, it may take a couple of minutes for your Android Calendar to re-sync to GMail. It may also be necessary to uncheck and check the "Sync Calendar" option in phone's Account Manager, as doing this will automatically force your phone to perform a new sync.