New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
zenkinz
Old
(Last edited by zenkinz; 2nd August 2009 at 08:48 AM.)
#1  
zenkinz's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 2,370
Join Date: Apr 2005

 
DONATE TO ME
Default [APP][02-Aug-09] Rotate Screen Utility

Here's a quick coding of the screen rotation utility while I was developing the navigation panel. Thought it might be useful for folks who may want to have screen orientation mode such as landscape anti-clockwise and reverse portrait.

Click image for larger version

Name:	Screen01.jpg
Views:	2033
Size:	20.3 KB
ID:	211484

First release (v1.0) - 16th Dec 08
The utility can be run in two mode, the "UI" mode basically triggers a pop up, like the one in the screenshot. The "toggle" mode basically rotates the screen in clockwise manner.
Updated (v.1.1) - 2nd Aug 09
Updated the utility to have the ability to toggle, cycle, set via command line or menu. If you use the utility program without any parameters, it'll cycle the rotation. See readme.txt (or below) for more information

Code:
Options & Parameters
====================
/menu    Display pop up menu to select the orientation mode (Normal, Reverse Portrait, Landscape 90 deg, Landscape 270 deg)
/toggle  Toggle Orientation mode between Normal & Landscape
/set     Set the orientation mode, requires 2nd parameter to be the Orientation mode (see Orientation Mode definition below)

Orientation Mode Definition
===========================
0   Normal
1   Landscape (90 deg) 
2   Reverse Portrait
3   Landscape (270 deg)

To be used with the /set option. E.g.  RotateScreen /set 3
have fun!
Attached Thumbnails
Click image for larger version

Name:	sshot001.jpg
Views:	1450
Size:	57.8 KB
ID:	137750   Click image for larger version

Name:	RotateScreen.jpg
Views:	558
Size:	6.3 KB
ID:	211483  
Attached Files
File Type: cab Zenyee RotateScreen.cab - [Click for QR Code] (14.9 KB, 850 views)
File Type: cab Zenyee RotateScreen 20090802.cab - [Click for QR Code] (274.3 KB, 1703 views)
 
mrdo
Old
#2  
Senior Member
Thanks Meter 5
Posts: 378
Join Date: Oct 2005
nice app. ideally i'd like to be able to automatically call this app with a gesture - say down and left to rotate to the left, etc.

as far as i'm aware, this would only be possible with an app such as ftouchsl (http://www.ftouchsl.com/) which i tried and couldn't get to work consistently. anyone else got any other ideas on how to easily rotate the screen ?
 
chua333
Old
#3  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Nov 2008
Thanks for sharing!!!
And wait for ur NAV Panel!!!
 
zenkinz
Old
#4  
zenkinz's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 2,370
Join Date: Apr 2005

 
DONATE TO ME
Quote:
Originally Posted by chua333 View Post
Thanks for sharing!!!
And wait for ur NAV Panel!!!
you are most welcome

the nav panel is ready for download!
 
cool2046
Old
#5  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Jul 2008
great! i have been looking forward to this app for a long time.
 
Nocturnal310
Old
#6  
Nocturnal310's Avatar
Senior Member
Thanks Meter 6
Posts: 395
Join Date: Dec 2008
Location: Singapore
which Panel u made man?

oh n cool.. u r also from singapore
“Apparently we love our own cell phones but we hate everyone else’s.”
– Joe Bob Briggs


Current phone: Nokia Lumia 920

Phones I have owned: Blackberry Bold 9790, Blackberry Bold 9700, Xperia X10i, O2 XDA IIi, SE W800i, Nokia E60, Nokia E70, iPhone 3G 16GB, iPhone 3GS 16GB, Xperia X1.
 
zenkinz
Old
#7  
zenkinz's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 2,370
Join Date: Apr 2005

 
DONATE TO ME
updated with additional feature.


Author of "Upgrade Custom ROM for Dummies" (with video!)
Chef for HD2 "Merlion" Leo
ROM
Developer of Stay Unlock, Notif Blinker ,
HTC Favorite people backup, and many other WinMo utilities

 
Trudi
Old
#8  
Trudi's Avatar
Senior Member
Thanks Meter 4
Posts: 163
Join Date: Jan 2009
Location: Renens
Thank you !
 
TauTau
Old
#9  
Senior Member
Thanks Meter 2
Posts: 262
Join Date: Feb 2006
strange... on my cingular 8500 I get with /set 3 "Invalid Orientation mode"... Every other one 0-2 works... any ideas? I'd need exactly the 270 degree version for TomTom
 
zenkinz
Old
#10  
zenkinz's Avatar
Senior Member - OP
Thanks Meter 64
Posts: 2,370
Join Date: Apr 2005

 
DONATE TO ME
Quote:
Originally Posted by TauTau View Post
strange... on my cingular 8500 I get with /set 3 "Invalid Orientation mode"... Every other one 0-2 works... any ideas? I'd need exactly the 270 degree version for TomTom
my apologises, I think it should be 4 instead of 3. can you check?


Author of "Upgrade Custom ROM for Dummies" (with video!)
Chef for HD2 "Merlion" Leo
ROM
Developer of Stay Unlock, Notif Blinker ,
HTC Favorite people backup, and many other WinMo utilities


Tags
screen rotation zenyee

XDA PORTAL POSTS

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more

Responses From Ubuntu Pouring Into Ubuntu Touch Q&A Thread

Ubuntu has become the most successful *nix distribution for a number of reasons, … more