Introducing XDA:DevCon – A Conference For Developers By Developers
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:	2028
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:	1446
Size:	57.8 KB
ID:	137750   Click image for larger version

Name:	RotateScreen.jpg
Views:	557
Size:	6.3 KB
ID:	211483  
Attached Files
File Type: cab Zenyee RotateScreen.cab - [Click for QR Code] (14.9 KB, 849 views)
File Type: cab Zenyee RotateScreen 20090802.cab - [Click for QR Code] (274.3 KB, 1700 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: 393
Join Date: Dec 2008
Location: Singapore
which Panel u made man?

oh n cool.. u r also from singapore
Phones i have owned: O2 XDA IIi, SE W800i, Nokia E60, Nokia E70, iPhone 3G 16GB, iPhone 3GS 16GB, Xperia X1.

Current phone: Xperia X10
 
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: 162
Join Date: Jan 2009
Location: Renens
Thank you !
 
TauTau
Old
#9  
Senior Member
Thanks Meter 2
Posts: 261
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


 
Post Reply+
Tags
screen rotation zenyee
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more