webOS Nation Forums >  Homebrew >  webOS patches > HOWTO - change the default view in Calendar (hack, rooting required)
HOWTO - change the default view in Calendar (hack, rooting required)

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/13/2009, 07:47 PM   #1 (permalink)
Member
 
Join Date: Jun 2006
Posts: 8
Likes Received: 0
Thanks: 1
Thanked 5 Times in 1 Post
Default HOWTO - change the default view in Calendar (hack, rooting required)

My 2 Treos let me do it, my Centro let me do it -- it was KILLING ME that my Pre wouldn't let me set the month view as the default in the Calendar. Well, thank heavens [no -- thank Palm!] for the hackability of the built-in Mojo apps! If you'd like your Calendar to start up in month view every time:

1. root your Pre

2. on the Pre, BACK UP the file /usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js

3. now edit that same file, replacing every instance of the string "day" (including the quotes) with the string "month" (including the quotes) -- there are seven instances in my Pre's copy of this file

4. save file; restart LunaSysMgr (or reboot phone)

*So far* this hack has generated no bugs, but I can't say I've tested as extensively as one might like

If you want the weekly view to be the default, you can use the string "week" at step #3.
matthewn is offline   Reply With Quote
Old 07/26/2009, 01:34 AM   #2 (permalink)
Member
 
Join Date: Jun 2006
Posts: 8
Likes Received: 0
Thanks: 1
Thanked 5 Times in 1 Post
Default

This still works in webOS 1.1, although there are now 8 instances of the string to replace. Still have not noticed any side effects.
matthewn is offline   Reply With Quote
Old 07/26/2009, 03:13 AM   #3 (permalink)
Member
 
gollyzila's Avatar
 
Join Date: May 2009
Posts: 1,003
Likes Received: 0
Thanks: 343
Thanked 95 Times in 70 Posts
Default

What about all-DAY events? Wouldn't you be changing that into all-month events?
gollyzila is offline   Reply With Quote
Old 07/26/2009, 03:28 AM   #4 (permalink)
Member
 
Join Date: Jun 2006
Posts: 8
Likes Received: 0
Thanks: 1
Thanked 5 Times in 1 Post
Default

No. Take a look at the specific code I'm tweaking; it has nothing to do with event creation; it only has to do with calling up the Day scene when various things happen. I just tweak that code to call the Month scene instead. I have no problem creating All Day Events.
matthewn is offline   Reply With Quote
Old 07/26/2009, 03:30 AM   #5 (permalink)
Member
 
halmo20's Avatar
 
Join Date: Jun 2009
Posts: 115
Likes Received: 0
Thanks: 20
Thanked 13 Times in 10 Posts
Default

Quote:
Originally Posted by matthewn View Post
My 2 Treos let me do it, my Centro let me do it -- it was KILLING ME that my Pre wouldn't let me set the month view as the default in the Calendar. Well, thank heavens [no -- thank Palm!] for the hackability of the built-in Mojo apps! If you'd like your Calendar to start up in month view every time:

1. root your Pre

2. on the Pre, BACK UP the file /usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js

3. now edit that same file, replacing every instance of the string "day" (including the quotes) with the string "month" (including the quotes) -- there are seven instances in my Pre's copy of this file

4. save file; restart LunaSysMgr (or reboot phone)

*So far* this hack has generated no bugs, but I can't say I've tested as extensively as one might like

If you want the weekly view to be the default, you can use the string "week" at step #3.
Thanks! Worked like a charm... It's one of those things that isn't a big deal but nonetheless annoying..
__________________
iPhone; the official phone of 'the Borg'
halmo20 is offline   Reply With Quote
Old 08/25/2009, 10:44 PM   #6 (permalink)
Member
 
Join Date: Jul 2009
Posts: 13
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

"SEARCH AND YOU WILL FIND!" Thanx dude! I will absolutely root and mod that (when I get the stones).

I'd like to see a "year" view that has every month a different color and upon launch centers on your current date/week, needless to say scrollable!

Thoughts?
sparkkticus is offline   Reply With Quote
Old 09/06/2009, 09:05 PM   #7 (permalink)
mph
Member
 
Join Date: Sep 2009
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!!! The calendar app is great, but starting in the day view drove me nuts. I don't usually forget appointments, I do however tend to over schedule. The first thing I want to do is see when I have time available for the month.
__________________
-- I'd rather have a bottle in front of me than a frontal lobotomy --
mph is offline   Reply With Quote
Old 09/06/2009, 10:10 PM   #8 (permalink)
Member
 
Join Date: Jul 2009
Posts: 47
Likes Received: 0
Thanks: 0
Thanked 5 Times in 1 Post
Default

Quote:
Originally Posted by matthewn View Post
My 2 Treos let me do it, my Centro let me do it -- it was KILLING ME that my Pre wouldn't let me set the month view as the default in the Calendar. Well, thank heavens [no -- thank Palm!] for the hackability of the built-in Mojo apps! If you'd like your Calendar to start up in month view every time:

1. root your Pre

2. on the Pre, BACK UP the file /usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js

3. now edit that same file, replacing every instance of the string "day" (including the quotes) with the string "month" (including the quotes) -- there are seven instances in my Pre's copy of this file

4. save file; restart LunaSysMgr (or reboot phone)

*So far* this hack has generated no bugs, but I can't say I've tested as extensively as one might like

If you want the weekly view to be the default, you can use the string "week" at step #3.
i dont know how i am suppose to do this.. the instructions arent clear enough for me.

do i put it in the sudo su or sudo i?

after that do i use cd/usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js? putting it with and without the cd at the beginning didnt work

please help. thank you
palmprenutt is offline   Reply With Quote
Old 09/07/2009, 01:54 AM   #9 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

do: cd /usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js

You have to have a space between cd and /
__________________
Still happily rooting my launch 6/6/09 Pre!
(and my wife's)
Webby_s is offline   Reply With Quote
Old 09/08/2009, 12:50 AM   #10 (permalink)
Member
 
Join Date: Aug 2009
Location: Stagecoach N.V
Posts: 21
Likes Received: 0
Thanks: 0
Thanked 2 Times in 2 Posts
Default

uugghhh...
oscmarpre20 is offline   Reply With Quote
Old 09/08/2009, 06:25 PM   #11 (permalink)
Member
 
Join Date: Aug 2009
Location: Stagecoach N.V
Posts: 21
Likes Received: 0
Thanks: 0
Thanked 2 Times in 2 Posts
Default

can some body help me ..please...!!!! i can't do it...=its says, denied
oscmarpre20 is offline   Reply With Quote
Old 09/08/2009, 11:17 PM   #12 (permalink)
Member
 
Join Date: Jun 2009
Location: n. illinois
Posts: 105
Likes Received: 0
Thanks: 26
Thanked 22 Times in 17 Posts
Default

Quote:
Originally Posted by Webby_s View Post
do: cd /usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js

You have to have a space between cd and /
first change to the directory:
cd /usr/palm/applications/com.palm.app.calendar/app/controllers/

then edit the:
app-assistant.js file.

or edit the file from wherever you are, just don't put in the cd / command:
ex. vi /usr/palm/applications/com.palm.app.calendar/app/controllers/app-assistant.js
aric is offline   Reply With Quote
Old 09/08/2009, 11:41 PM   #13 (permalink)
Member
 
Join Date: Feb 2005
Posts: 195
Likes Received: 0
Thanks: 5
Thanked 18 Times in 12 Posts
Default

would love to see this added to WebOSQuickInstall
samid is offline   Reply With Quote
Old 10/15/2009, 10:02 AM   #14 (permalink)
Member
 
Join Date: Jun 2009
Posts: 22
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by samid View Post
would love to see this added to WebOSQuickInstall
Ditto
ehupp01 is offline   Reply With Quote
Old 10/15/2009, 11:11 AM   #15 (permalink)
Member
 
cwgtex's Avatar
 
Join Date: Jul 2009
Posts: 608
Likes Received: 3
Thanks: 141
Thanked 243 Times in 91 Posts
Default

There is a patch on Preware for this, and I believe you can get this patch on WOSQI by going to one of the feeds buttons. It should be under the webos-internals feed.
cwgtex is offline   Reply With Quote
Old 01/08/2010, 01:47 PM   #16 (permalink)
Member
 
pchrist's Avatar
 
Join Date: Jul 2009
Location: E. Dubuque, IL
Posts: 392
Likes Received: 0
Thanks: 9
Thanked 6 Times in 5 Posts
Default

ok need some help. I installed this patch and now i can't remove it, and the view doesn't work. Any ideas????
pchrist is offline   Reply With Quote
Reply

 

Tags
calendar, hack, how-to

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0