Windows Phone @ MoDaCo: RotationService - Version 1.7.4 - Windows Phone @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 12 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

RotationService - Version 1.7.4 Application that allows you to customize your screen rotation events
***** 2 Votes


#1 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 27 November 2008 - 10:39 AM

Hello,

Some time ago PaSSoA released new version of his ROM.
He added option to change the today plugin from Manila to rlToday when screen rotation occures.
Unfortunatly he used MortScript which was working in a loop and checking the rotation state every second.
This was causing instant 3% CPU utilization.

That was something I didn't like so I start to wonder if it is possible to create events-based application.
I start to write and voila...

My application is running in the background, using 0% (that's why it's better then MortScript) of CPU while sleeping.
Application needs .NET Compact 2.0 framework or later to work.

Features of RotationService:
  • Configurable list of plugins to show on homescreen in portrait/landscape modes
  • Ability to start and/or kill processes when switching to portrait/landscape mode /also with special TodayProcess mode - see changelog/
  • Two modes of controling Omnia's autorotate funcion (using accelerometer):
  • RotationService automatically enables autorotate feature only for applications on whitelist (all others have autorotate disabled)
  • RotationService automatically disables autorotate feature for applications on blacklist (all others have autorotate enabled)
  • Support for irritating Manila's behaviour of auto screen rotation to portrait (there are still some issues but I think the best way to resolve them is to modify Manila not to rotate the screen)
  • Fixed angles for chosen applications
  • Each angle (0, 90, 180, 270) can have it's own settings (180 angle is not working on i900 but should work on i910)
Changelog:

1.7.4:
- Bugfixes

1.7.3:
- Bugfixes

1.7.2:
- Bugfixes

1.7.0:
- Posibility to split orientation into angles (for example different rules for 90 and 270 degrees). Just create new element directly under RotationService and call it <Portrait180> or <Landscape270>. The one without numbers will become rules for 0 and/or 90 angles.
- Removed TodayProcess attribute from ProcessesToKill list. Now you can define processes which will be treated like today screen in separate section called TodayProcesses. When such process will be in foreground and rotation occures it will be automatically killed and full rotation will be made (like on Today Screen). This is usefull for applications like iFonz.

1.6.0:
- New way of process killing when switching orientation. I hope it is able to kill Manila process before it rotates the screen in all circumstances now - if not please give me a report in this thread.
- New attribute for Process element in ProcessesToKill configuration collection "TodayProcess". If the process is in foreground and rotation occures it will be treated like today screen and all rotation events will occure (useful for applications like iFonz).
- All attributes in config file use CamelHumps notation (with uppercased first letter - angle is now Angle and orientationOnly changed to OrientationOnly).
- Config file validation with error descriptions in message box while loading service.

1.5.0:
- New parameter in Fixed Angle Apps section called "orientationOnly". It makes service to allow application to work in two angles (90 and 270) in landscape mode
- "Please wait..." info screen will not appear if no changes to today plugins/processes will be made when switching from one orientation to the other (for users who use RotationService only for black/whitelisting auto rotation applications)

1.4.0:
- ability to disable/enable internal Date plugin on today screen
- config file is now renamed to RotationService.xml (was conf.xml) and the whole application can be safely put in \Windows folder (for ROM cookers)
- ability to start chosen applications after rotation event

1.3.1:
- application tries to be more user-friendly for Samsung Online Widget (however it is still not not advisable to use them together)

1.2.2:
- some small fixes
- support for AppToDate

1.2.1:
- processes/exec names are now case-insensitive;
- changing plugins on today screen application now disables all of them and later enables only chosen ones (before it was disabling only plugins defined in config file in opposite section)

1.2.0:
- fix for NullReferenceException error when using wkTask

1.1.0:
- ability to define processes which will have fixed angle defined in config file (and disabled auto rotation). Check the config file how to define them (it's very simple).

Everything is configured by RotationService.xml file which is has comments with descriptions of each section.

To exit application just run it from Programs Menu - small Control Panel for Rotation Service will appear.

To reread the config file you need to choose Reload from Rotation Service Control Panel.

Application automaticaly installs and put a shortcut to StartUp and Programs menus.
After installation you need to edit RotationService.xml file in application directory.


I'll stop implementing new features for next few days/weeks so please do not post them for a while (only bugs reports).
Lots of new ones were implemented (and not
deeply tested) for last few days so I want to focus on bugfixing now.


HOW TO CHECK EXECUTABLE NAME FOR APPLICATION:
- Download FdcTaskmanager from this site: http://www.dotfred.net/TaskMgr.htm
- Install it
- Launch
- You will see lists of processes running on your Omnia
- Choose the record which you think can be the program you are looking for
- Choose Activate from Context Menu
- If the program's window appear you know the process name B)

Attached File(s)


This post has been edited by qbus: 07 March 2009 - 10:32 PM

0

Sponsored Links


#2 User is offline   lfotiou 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 02-November 08
  • Devices:i900

Posted 27 November 2008 - 12:21 PM

Keep up the good work. I believe you are on the right track

0


#3 User is offline   Emre SUMENGEN 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 191
  • Joined: 07-October 08
  • Devices:Omnia, E61, iPhone 3G

Posted 27 November 2008 - 01:06 PM

Yeah, nice approach...

I like the looks of Manila (3D better but wtf), but I now seem to forget about the landscape orientation just because of it

0


#4 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 27 November 2008 - 11:26 PM

I've just updated the attachment.
Application has now config file (Config.xml).
The structure of it is very simple:
It has two main section - Portrait and Landscape which contains elements specific for orientation.

There is important only one thing:
Names of processes are defined as substrings of FULL PATH to EXE file of process.

0


#5 User is offline   Michael122w 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 241
  • Joined: 15-August 07
  • Location:Canberra
  • Devices:Gigabyte i3oo , Samsung Omnia

Posted 28 November 2008 - 01:51 AM

Love your work, qbus! B)

It is an interesting set up that you have going - but seems to be slowing my omnia down a little - could be the 2 MB of memory that it is taking up. But not a major prob.

On rotation, there is a significant lag every time I change direction - regardless of the screen I am in . It would be nice if it didn't kick in when the homescreen wasn't active.

This post has been edited by Michael122w: 28 November 2008 - 05:13 AM

0


#6 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 28 November 2008 - 08:12 AM

View PostMichael122w, on Nov 28 2008, 02:51, said:

Love your work, qbus! B)

It is an interesting set up that you have going - but seems to be slowing my omnia down a little - could be the 2 MB of memory that it is taking up. But not a major prob.


This is strange - on my Omnia the application occupies 400 KB memory and I haven't seen any slow downs...
Which tool are you using to check the memory occupation?

View PostMichael122w, on Nov 28 2008, 02:51, said:

On rotation, there is a significant lag every time I change direction - regardless of the screen I am in . It would be nice if it didn't kick in when the homescreen wasn't active.


Yes - this is becouse it is changing doing it's work every time you rotate the screen.. It is a one-time event, if it won't be fired on rotation then going back to clean screen will leave you with the plugins for other orientation.

0


#7 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 29 November 2008 - 01:50 PM

View PostMichael122w, on Nov 28 2008, 02:51, said:

Love your work, qbus! B)

It is an interesting set up that you have going - but seems to be slowing my omnia down a little - could be the 2 MB of memory that it is taking up. But not a major prob.

On rotation, there is a significant lag every time I change direction - regardless of the screen I am in . It would be nice if it didn't kick in when the homescreen wasn't active.


I've updated the attachment in first post.

Now RotationService works only if homescreen is visible. If not, then it only buffers the current mode and triggers plugins change immediately when the homescreen appears.
There is only one issue I need to resolve. When Manila is running, leaving application in landscape mode causes screen to rotate to portait (becouse of Manila).

It would be very, very cool if someone figure out how to disable Manila's auto-rotation "feature"... B)

0


#8 User is offline   sector 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 2,296
  • Joined: 18-September 05
  • Gender:Male
  • Devices:Samsung Omnia

Posted 29 November 2008 - 02:40 PM

View Postqbus, on Nov 29 2008, 14:50, said:

I've updated the attachment in first post.

Now RotationService works only if homescreen is visible. If not, then it only buffers the current mode and triggers plugins change immediately when the homescreen appears.
There is only one issue I need to resolve. When Manila is running, leaving application in landscape mode causes screen to rotate to portait (becouse of Manila).

It would be very, very cool if someone figure out how to disable Manila's auto-rotation "feature"... B)



it is hexing i guess B), anyone who is cabable can help

If you like my work buy me a beer :) !
Posted Image
WM 6.5/6.1 roms, Themes, Taskbar etc... :D
0


#9 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 29 November 2008 - 04:47 PM

View Postsector, on Nov 29 2008, 15:40, said:

it is hexing i guess B) , anyone who is cabable can help


It would make the application to run faster (no need to manually kill manila anymore) and the application detection will work without any issues (I'm thinking of implementing the posibility to define Omnia's autorotation application white and blacklists).

0


#10 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 30 November 2008 - 02:10 AM

I've just uploaded new version which can control Omnia's autorotation accelerometer feature depending on foreground application. Please check the first post of the thread for more info.

0


#11 User is offline   echaya 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 25
  • Joined: 28-April 08
  • Devices:C858

Posted 30 November 2008 - 03:21 AM

This is a really great work,man!

0


#12 User is offline   Michael122w 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 241
  • Joined: 15-August 07
  • Location:Canberra
  • Devices:Gigabyte i3oo , Samsung Omnia

Posted 30 November 2008 - 04:34 AM

View Postqbus, on Nov 30 2008, 02:10, said:

I've just uploaded new version which can control Omnia's autorotation accelerometer feature depending on foreground application. Please check the first post of the thread for more info.



Wow - I really like this latest version. I have dumped M2D now - preferring Samsung Today 2 instead - but I have still got this little baby controlling all of my rotation. No longer do I need to run a crude mortscript in the background. I am guessing that a config tools is coming down the track - as it would be a great addition (instead of editing xml).

Great work!

Edit: Oh - is there anyway to include the normal homescreen (ST2) into the WhileList?

This post has been edited by Michael122w: 30 November 2008 - 04:37 AM

0


#13 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 30 November 2008 - 09:06 PM

View PostMichael122w, on Nov 30 2008, 05:34, said:

Wow - I really like this latest version. I have dumped M2D now - preferring Samsung Today 2 instead - but I have still got this little baby controlling all of my rotation. No longer do I need to run a crude mortscript in the background. I am guessing that a config tools is coming down the track - as it would be a great addition (instead of editing xml).

Great work!

Edit: Oh - is there anyway to include the normal homescreen (ST2) into the WhileList?


I think that this is owned by shell32.exe system, so you need to add this process to whitelist.

PS I've updated the attachment in first post - removed some bugs (probably one which hang my Omnia lat night so I had to do soft-reset) and optimize the code a little.

0


#14 User is offline   fergusso 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 10-October 08
  • Devices:samsung omnia

Posted 01 December 2008 - 01:34 AM

a very brilliant idea qbus! this is great!

i've tried it and I like it

0


#15 User is offline   sector 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 2,296
  • Joined: 18-September 05
  • Gender:Male
  • Devices:Samsung Omnia

Posted 01 December 2008 - 03:57 AM

The "Please Wait" isnt it a bit slow? B)

I guess it a sleep event? Can you make it faster?

If you like my work buy me a beer :) !
Posted Image
WM 6.5/6.1 roms, Themes, Taskbar etc... :D
0


#16 User is offline   pdaphonemaster 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 112
  • Joined: 30-October 07

Posted 01 December 2008 - 04:39 AM

Hi,

Sounds like a great utility.

However, I have stayed away from cooked roms since I kinda like Samsung widget interface. So, I guess your utility will not work on stock roms that run on earlier version of NET compoenet. So, Samsung widget and your utility will not co-exist.

Can your utility be modified to work with stock roms? Just curious.


Thanks.

0


#17 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 01 December 2008 - 08:07 AM

View Postsector, on Dec 1 2008, 04:57, said:

The "Please Wait" isnt it a bit slow? B)

I guess it a sleep event? Can you make it faster?


I don't know what do you have on mind.

"Please wait" screen is being shown when application starts to change today plugins (changing value's registry) and is disposed when SendMessage to shell to refresh the today screen finishes its work B).
There is no sleep event at all B)

0


#18 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 01 December 2008 - 08:08 AM

View Postpdaphonemaster, on Dec 1 2008, 05:39, said:

Hi,

Sounds like a great utility.

However, I have stayed away from cooked roms since I kinda like Samsung widget interface. So, I guess your utility will not work on stock roms that run on earlier version of NET compoenet. So, Samsung widget and your utility will not co-exist.

Can your utility be modified to work with stock roms? Just curious.


Thanks.


Yes, that was my laziness that I've created it 3.5.
I'll try to modify it so it will work on .NET 2.0.

EDIT: I've made a downgrade to .NET 2.0 - please try to run the application now. Also get the latest version as I removed another bug B).

EDIT2: I've just created CAB installer.

This post has been edited by qbus: 01 December 2008 - 10:18 AM

0


#19 User is offline   FREAKed 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 29
  • Joined: 05-November 08

Posted 01 December 2008 - 08:13 PM

this is pretty useful stuff but my problem is i want allmost all programs to flip, i only have few of them that i need not to move. So, is there a way to just put few ones in the blacklist and everything else flips as usual?

0


#20 User is offline   qbus 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 615
  • Joined: 03-November 08
  • Devices:HTC Desire

Posted 01 December 2008 - 10:25 PM

View PostFREAKed, on Dec 1 2008, 21:13, said:

this is pretty useful stuff but my problem is i want allmost all programs to flip, i only have few of them that i need not to move. So, is there a way to just put few ones in the blacklist and everything else flips as usual?


Just remove the section in config.xml and in section define processes for which you want to disable auto rotation.

0


Sponsored Links

Share this topic:


  • 12 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!