Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,305 Members 42,110 Now Online
XDA Developers Android and Mobile Development Forum

Can it autochange to landscape when running program/charging

Tip us?
 
CJSnet
Old
#1  
CJSnet's Avatar
Senior Member - OP
Thanks Meter 51
Posts: 748
Join Date: Oct 2005
Default Can it autochange to landscape when running program/charging

Hi, I'd like some small utility that will automatically change my screen orientation to landscape whenever I run a specific program. E.g. for TomTom it would be good for the main desktop, not just TomTom, to change to landscape so calls/texts come in the right way round (as I use the device landscape for SatNav).

Alternative could be for it to rotate to landscape when charging in the car charger (but not via USB charger!).

Anyone?
If this post helped you, feel free to click "Thanks"... Thanks!

Pure Google | Nexus 5 | Latest Stock ROM | Rooted
 
vijay555
Old
#2  
vijay555's Avatar
Retired Moderator
Thanks Meter 51
Posts: 5,781
Join Date: Jun 2005
Location: Witch Space
http://forum.xda-developers.com/view...=207896#207896

Rotating on power connection is possible but would require someone to write an app for it.

V
releases: www.vijay555.comtwitterdonatefrappr
 
CJSnet
Old
#3  
CJSnet's Avatar
Senior Member - OP
Thanks Meter 51
Posts: 748
Join Date: Oct 2005
Thanks, but I can't see that it shows how to rotate the screen when I launch TomTom?
If this post helped you, feel free to click "Thanks"... Thanks!

Pure Google | Nexus 5 | Latest Stock ROM | Rooted
 
ZeBoxx
Old
#4  
Senior Member
Thanks Meter 3
Posts: 915
Join Date: Dec 2005
You could use MortScript to launch TomTom and rotate the screen.

I can't think of any 'background' application that continuously monitors what application is active and change the screen orientation accordingly, though.

I think it's impossible to detect whether you're charging over USB or over the car charger, though. You *might* be able to detect whether there is an actual USB connection, and deduce from that... maybe.
 
vijay555
Old
#5  
vijay555's Avatar
Retired Moderator
Thanks Meter 51
Posts: 5,781
Join Date: Jun 2005
Location: Witch Space
ZeBoxx is correct I think. It would be easy enough (again!) to have a background monitor, but you tell it you're in car mode or 0 gravity mode or whatever, and it switches by your preferences.
Also switching by active app is doable (VJBigPhone does a similar thing).

I believe BeyondTheTech has posted some info on preparing mortscripts for auto rotation. Clever chap.

V
releases: www.vijay555.comtwitterdonatefrappr
 
ZeBoxx
Old
#6  
Senior Member
Thanks Meter 3
Posts: 915
Join Date: Dec 2005
Well, if it's easy enough to do - I'm all for modularity of systems.

So if a background application could be made that basically monitors what app is active, and run another application based on an application active state changes, then auto-rotation-by-app and such is easily done in conjunction with one of those screen rotation programs.
 
arp
Old
#7  
Senior Member
Thanks Meter 0
Posts: 168
Join Date: Aug 2005
Phonealarm can do it easy!
You can set CAR profile to rotate screen just when charge PDA without activesync!
But... this program is not yet WM5 compatible... is beta version... TEST.
 
ZeBoxx
Old
#8  
Senior Member
Thanks Meter 3
Posts: 915
Join Date: Dec 2005
yeah, that's what I meant. There's probably no way to detect whether an outlet, car, or computer/laptop/etc. is charging.

But you -can- detect whether there's an active USB connection. If there isn't, you could assume it's on either the outlet or car charger (and similar).

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Mod Lets You Have Stereo Speakers on Your Sony Xperia Z1 (Sort Of)

The stereo speakers onthe Sony Xperia Z2areprobably a relatively large … more

Give Your Screen Some Color with HexaTime Live Wallpaper

We don’t often cover very many live wallpapers here on the XDA Portal. You may … more

Android Wear App Review: Command Google Now with Commandr – XDA Developer TV

OK Google. Make Me a sandwich. How many times have you … more

Play Your Hits and Learn the Lyrics with NextGen Music Player

There are plenty of music players for Android available in Play Store. They … more