[MOD] Google Calendar with Textview (month) - 31.05. Update

Search This thread

shaftenberg

Senior Member
Jul 31, 2010
698
741
Cologne
Guys, although the Nexus 7 and the GNx have almost the same screen resolution, the N7 shows events in Textview whereas the GNx shows only small lines for an event, so I modded the Stock-JellyBean-Calendar for my GNx as you can see in the attached screenshot or here at directupload:
http://s7.directupload.net/images/121119/o9bix4gi.png

For any ROM out there I recommend using the latest market version of the calendar, as this is bug fixed by Google.
But which version you take is your own choice, both work perfectly on all JB-ROMs (4.1/4.2) including AOSP, AOKP, CM10, TWRP...
Just flash the zip from CWM, but do a nandroid before (for your own security).

Update 07.11.2013:

- maintaining the newest version here:
http://forum.xda-developers.com/showthread.php?p=47222855

Update 31.05.2013:

- Updated to new market version (v 201305280)
- CWM package

Update 13.12.2012:

- Updated to new market version (v 201212060)
- Lockscreen Widget for 4.2
- New event picker in month view (long press)

Just flash in CWM. If you encounter errors, please uninstall any previous calendar with Titanium Backup and try a new flash. The problems with my old mod were signing problems, sorry for that.

Update 16.11.2012:

- Updated to new market version (v 201210220)
- according to Google, the battery consumption should be lower

- If you don't see the calendar after flashing, please flash the first market version first, reboot, then flash the new version.
Thanks to Finner42 for this idea, see here: http://forum.xda-developers.com/showpost.php?p=34591851&postcount=64


Update 18.10.2012 the 2nd:

- Added modded new market version (v 201210120)

Update/Changelog 18.10.2012:

- CWM flashable zip
- Changed from GoogleCalendar 4.1.1 to 4.1.2
- some small fixes with the color squares


Old (archived) files:

Market Calendar 201212060: http://ul.to/h25nmaoz
Market Calendar 201210220: http://ul.to/0p2w4aqh (don't use!)
Market Calendar 201210120: http://ul.to/mxq278r8
AOSP 4.1.2 Calendar: http://ul.to/53ih6ior


Differences between the stock 4.1.2 and the market calendar:
The market version syncs back events up to one year, whereas stock calendar syncs back to 3 weeks only (standard android behaviour). To get synced one year when you had stock calendar before: you have to delete the data in -> settings -> apps for "Calendar" and "Calendar Provider" and sync again manually after that.

IMPORTANT NOTE:
If you have updated the calendar via market before, you have to uninstall this update before flashing, otherwise you will see nothing. Android prefers the .apk in /data/app over any system-apk in /system/app - that is a pretty normal behaviour.

Enjoy!

Additional Information:

Just a note as some people are unsure about GApps and CM10/AOKP. This is only important for people who like to know deeper. If you flash via CWM or are on Stock ROM, you don't have to worry about this:
In every official GApps (even the newest ones) are the old sync adapters from ICS which work with CM10 calendar (and have dark colors).
The market calendar and the stock-JB-calendar have its own sync adapter included, so you should delete GoogleCalendarSyncAdapter.apk too, when you delete (CM10-) Calendar.apk
NEVER delete calenderprovider.apk, account information and the data is stored in there!
My modded calendar has an update script which cares for either situation, so that it can be used in CM10 and/or StockROMs.
Besides: Paranoid Android users don't need the modded calendar, as you may use tablet UI in market calendar for sure.

If you like to mod yourself, here are instructions for code changes:
http://forum.xda-developers.com/showpost.php?p=35414528&postcount=80

IMPORTANT NOTE FOR ROM-COOKERS:
Surely you may include this mod in your ROMs if you like it. I got a few PNs the last days but wasn't online here, sorry for that.
I got so much from xda and from other (real) developers, that it makes me happy if you consider this mod useful! :)
 

Attachments

  • Screenshot_2012-10-18-00-12-54.jpg
    Screenshot_2012-10-18-00-12-54.jpg
    26 KB · Views: 13,294
  • GoogleCalTextmod_MARKET_201212060-CWM.zip
    1.3 MB · Views: 1,386
  • GoogleCalTextmod_MARKET_201305280-CWM.zip
    1.6 MB · Views: 904
Last edited:

shaftenberg

Senior Member
Jul 31, 2010
698
741
Cologne
Added CWM flashable zip, should be easier for all of you.
Works on every JB-ROM, odexed and deodexed (AOSP, CM10...)

Please do a Nandroid before, just in case...!
 
  • Like
Reactions: maxbluz

hitziflitzi

Member
Jul 5, 2010
47
0
Thank you for this mod. I like it. But can you please do this with the calendar from Android 4.1.2. or tell me how I can do it by myself. I don't know if there is something new in this version of the calendar but it got a new version number so maybe some Bugfixes.
 

shaftenberg

Senior Member
Jul 31, 2010
698
741
Cologne
According to the official Google changelog there is only a widget background change in 4.1.2, otherwise it's the same as 4.1.1

You have to modify "integers.xml" for the text size labels and "bools.xml" for general work of the new layout (in /res/values)
In addition, some things are hardcoded in /smali/com/android/calendar/month/MonthWeekEventsView.smali (text size of event time and the color squares)

In summary there's no real difference between those calendars. If I'm on 4.1.2 I will change this and update this post, in the meantime you can use the 4.1.1 with no loss of function.

[edit]
New 4.1.2 is online :)
 
Last edited:

xnmb

Senior Member
Jan 1, 2005
85
5
I flashed this on top of the 4.1.2 Calendar update published on Google Play but did not work.

I then restored a 4.1.1 Calendar backup from Titanium then reflashed the zip but still didn't work.

I then uninstalled the 4.1.2.Calendar update directly from Google Play (not from Apps or Titanium Backup) and then it worked.

FYI.
 
  • Like
Reactions: shaftenberg
G

GuestK00230

Guest
Nexus 7 and Galaxy Nexus have same screen sizes? There's a 2.35 inch difference -_-
 

shaftenberg

Senior Member
Jul 31, 2010
698
741
Cologne
Nexus 7 and Galaxy Nexus have same screen sizes? There's a 2.35 inch difference -_-

OMG, sorry for not being a native english speaker.
Instead of just trolling me you could've pointed me into the right direction, now I have to use a dictionary :p

But I'll never gonna give you up, never gonna let you down...

I flashed this on top of the 4.1.2 Calendar update published on Google Play but did not work.

Thanks for this note. This is a normal behaviour in Android, I put an explanation in the first post.

Updated the opening post with the new market calendar!
Read the change between stock 4.1.2 and market version there.
 
  • Like
Reactions: ecs1984

m.is.for.michael

Senior Member
Apr 15, 2012
851
280
Melbourne
Shameless post to subscribe to this thread because I'm lazy.

Also, thanks for this... Fixes one of my biggest gripes with gapps. I have a friend running cm9 on his galaxy s who is pretty outspoken about how crap the stock calendar app is... Is this apk likely to work for him?

Sent from my brain using telepathy

---------- Post added at 08:24 PM ---------- Previous post was at 08:00 PM ----------

Just flashed after uninstalling the market update, and after the reboot the market downloaded the update again and installed it. Uninstalling again fixed this, but has anyone else seen this behavior? Am I going to have to uninstall the market update often?

Sent from my brain using telepathy
 
G

GuestK00230

Guest
OMG, sorry for not being a native english speaker.
Instead of just trolling me you could've pointed me into the right direction, now I have to use a dictionary :p

But I'll never gonna give you up, never gonna let you down...

I wasn't trolling, it's just that I thought you were exaggerating the size of Galaxy Nexus' screen.
And by the way, they don't have the same resolution either. Nexus 7's screen is larger in width by 80 pixels.

Sent from my Galaxy Nexus using xda premium
 
Last edited:

scoobdude

Senior Member
Jan 8, 2008
717
82
Thanks for linking me to your thread from cm10. I had the update, uninstalled, flashed yours and got no calender. D/l update again and it seemed to work fine.

Thanks again

Sent from my Galaxy Nexus using xda app-developers app
 

Top Liked Posts

  • There are no posts matching your filters.
  • 51
    Guys, although the Nexus 7 and the GNx have almost the same screen resolution, the N7 shows events in Textview whereas the GNx shows only small lines for an event, so I modded the Stock-JellyBean-Calendar for my GNx as you can see in the attached screenshot or here at directupload:
    http://s7.directupload.net/images/121119/o9bix4gi.png

    For any ROM out there I recommend using the latest market version of the calendar, as this is bug fixed by Google.
    But which version you take is your own choice, both work perfectly on all JB-ROMs (4.1/4.2) including AOSP, AOKP, CM10, TWRP...
    Just flash the zip from CWM, but do a nandroid before (for your own security).

    Update 07.11.2013:

    - maintaining the newest version here:
    http://forum.xda-developers.com/showthread.php?p=47222855

    Update 31.05.2013:

    - Updated to new market version (v 201305280)
    - CWM package

    Update 13.12.2012:

    - Updated to new market version (v 201212060)
    - Lockscreen Widget for 4.2
    - New event picker in month view (long press)

    Just flash in CWM. If you encounter errors, please uninstall any previous calendar with Titanium Backup and try a new flash. The problems with my old mod were signing problems, sorry for that.

    Update 16.11.2012:

    - Updated to new market version (v 201210220)
    - according to Google, the battery consumption should be lower

    - If you don't see the calendar after flashing, please flash the first market version first, reboot, then flash the new version.
    Thanks to Finner42 for this idea, see here: http://forum.xda-developers.com/showpost.php?p=34591851&postcount=64


    Update 18.10.2012 the 2nd:

    - Added modded new market version (v 201210120)

    Update/Changelog 18.10.2012:

    - CWM flashable zip
    - Changed from GoogleCalendar 4.1.1 to 4.1.2
    - some small fixes with the color squares


    Old (archived) files:

    Market Calendar 201212060: http://ul.to/h25nmaoz
    Market Calendar 201210220: http://ul.to/0p2w4aqh (don't use!)
    Market Calendar 201210120: http://ul.to/mxq278r8
    AOSP 4.1.2 Calendar: http://ul.to/53ih6ior


    Differences between the stock 4.1.2 and the market calendar:
    The market version syncs back events up to one year, whereas stock calendar syncs back to 3 weeks only (standard android behaviour). To get synced one year when you had stock calendar before: you have to delete the data in -> settings -> apps for "Calendar" and "Calendar Provider" and sync again manually after that.

    IMPORTANT NOTE:
    If you have updated the calendar via market before, you have to uninstall this update before flashing, otherwise you will see nothing. Android prefers the .apk in /data/app over any system-apk in /system/app - that is a pretty normal behaviour.

    Enjoy!

    Additional Information:

    Just a note as some people are unsure about GApps and CM10/AOKP. This is only important for people who like to know deeper. If you flash via CWM or are on Stock ROM, you don't have to worry about this:
    In every official GApps (even the newest ones) are the old sync adapters from ICS which work with CM10 calendar (and have dark colors).
    The market calendar and the stock-JB-calendar have its own sync adapter included, so you should delete GoogleCalendarSyncAdapter.apk too, when you delete (CM10-) Calendar.apk
    NEVER delete calenderprovider.apk, account information and the data is stored in there!
    My modded calendar has an update script which cares for either situation, so that it can be used in CM10 and/or StockROMs.
    Besides: Paranoid Android users don't need the modded calendar, as you may use tablet UI in market calendar for sure.

    If you like to mod yourself, here are instructions for code changes:
    http://forum.xda-developers.com/showpost.php?p=35414528&postcount=80

    IMPORTANT NOTE FOR ROM-COOKERS:
    Surely you may include this mod in your ROMs if you like it. I got a few PNs the last days but wasn't online here, sorry for that.
    I got so much from xda and from other (real) developers, that it makes me happy if you consider this mod useful! :)
    11
    Updated version 20136302

    Ok try this one out...I signed it to work on any recovery but if you're odexed or this is your first time using this mod you MUST flash the op zip first then use this one to update the apk. I am running TWRP so didn't make it the same as the op

    Enjoy!

    DJ.
    8
    Can you update this to the new version please?

    Just in time... :) Please see OP.

    I have to say sorry for the mess with my last mod. The installation issue was due to signing errors. The new market version should work for anyone, I've tested every silly combination.

    IF something goes wrong: Just delete/uninstall old calendar, flash the new .zip in Recovery, clear cache and dalvik and it should work.
    Really... :D


    And as promised, if anyone likes to mod his own calendar by himself, here are the simple changes (old/new):

    In res/values/bools.xml

    <bool name="show_details_in_month">false</bool>
    <bool name="show_details_in_month">true</bool>


    In res/values/integers.xml

    <integer name="text_size_event_title">14</integer>
    <integer name="text_size_event_title">8</integer>


    In smali/com/android/calendar/month/MonthWeekEventsView.smali

    Line 240
    const/16 v4, 0xc
    const/16 v4, 0x8

    Line 290
    const/4 v0, 0x6
    const/4 v0, 0x2

    Line 358
    const/16 v0, 0xa
    const/16 v0, 0x6

    Line 362
    .line 97
    sput v3, Lcom/android/calendar/month/MonthWeekEventsView;->EVENT_SQUARE_BORDER:I


    .line 97
    const/4 v0, 0x1

    sput v0, Lcom/android/calendar/month/MonthWeekEventsView;->EVENT_SQUARE_BORDER:I
    6
    Updated OP with new package for Nexus, enjoy.
    Sorry for the delay, didn't see the update at first :)

    Should work in all ROMs (odexed, deodexed), tell me, if not (i.e. ROM version, etc.)
    Please ensure that you uninstall previous updates before if you updated via market.

    [edit]
    This will be my last mod for the Galaxy Nexus as I don't own it anymore.
    I do mods for the Motorola RAZRi now (wonderful device!), which has other signatures for CWM flashing. If you want to use future versions of my mod, please visit this thread and extract the apk out of the CWM package yourself.
    You can move it to /system/app manually, the apk itself is the same.
    http://forum.xda-developers.com/showthread.php?t=2303680

    Thanks for your support!
    5
    Hi guys,

    i maintain my mod here in the N5-Forum, just enjoy. I slightly modded more after I wrote my tutorial, so compare which one you want.
    http://forum.xda-developers.com/showthread.php?p=47222855

    Props to djdarkknight96 though, good work! :)