I have an application that needs to be able to change its orientation while the user is using the app, but during the splash screen, orientation should not change. I have android:configChanges="orientation" in the manifest, which seems to disable my call to setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); (which i change back to setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR) upon the completion of the splash).
I've been working at this for about an hour now and im stumped. Any ideas? Let me know if you need more info.
Ok i have split the splash screen and the main activity into 2 different activities. My Splash works great now, but when switching to the new activity, i dont want the standard slide transition, i have my own transition defined. I have set all the different "activityOpenEnterAnimation" variables in my style, but no dice. ideas?
For custom animations, check this: http://developerlife.com/tutorials/?p=343
Related
Just wondering if there is a registry hack that stops the screen from automatically rotating and displaying in portrait mode when you flip the screen round ?
i.e. it should stay in landscape mode no matter if the screen is facing in/out or otherwise.
You can do it manually by clicking on the screen rotate icon, or going into Settings > Screen > Orientation, so I figure there must be a reghack to put it permanently into Landscape ?
tia
Ok, i've found the key at least which shows what mode is currently in use:
This is Landscape (Right-handed) mode:
HKEY_LOCAL_MACHINE\System\GDI\Rotation
Angle 0x5A (90)
HideOrientationUI 0x0 (0)
LanscapeMode 0x1 (1)
The question is, how do I stop those being overwritten or change it so when it's in Portrait mode, it actually uses those settings ?
gaspx: I'm an odd fellow. I'd written you a long post about basically:
rotation is achieved at OS level, and driver level, so althought it's possible to be notified of the screen being rotated, intercepting it would require, AFAIK, some fairly substantial low level code or a reg key I'm not aware of.
But then I remembered my work on the Universal Voice Command/External Key issue in another thread. I've written a test program called VJElectrify, which contains a hack called ClamHack. And I just tried clamhack, and amongst its other side effects, yes, it does allow you to prevent the system forcing a rotation. So system stays in landscape if you open in laptop mode, or rotait into portrait mode. You then manually choose your rotations.
VJElectrify isn't finished yet, still a lot more research to do, but yes, it is possible to prevent it Keep an eye out for when VJElectrify is released.
Anyone else know another way to do this? I can't think of any relevant reg settings.
V
Heh heh, I knew it probably wouldn't be as simple as a reg hack.. cheers for the reply Vijay, i'll keep a watch on your website for the forthcoming VJElectrify..
gaspx said:
Ok, i've found the key at least which shows what mode is currently in use:
This is Landscape (Right-handed) mode:
HKEY_LOCAL_MACHINE\System\GDI\Rotation
Angle 0x5A (90)
HideOrientationUI 0x0 (0)
LanscapeMode 0x1 (1)
Click to expand...
Click to collapse
Thats just the keys where the current state is stored.
the key you need is HKLM\Services\ScreenRotate (you can change the ShowIcon value here to enable/disable the today icon)
Ive tried just renaming the ScreenRotate but that failed then i tried changing the dll name stored in the key, after all if it cant find the dll surlly it'll stop the rotations.
NOPE, i know the dll rename is working as the icon failed to appear, but the auto rotates continue to happen, it must be OS, it must be!!
.....the search continues
Ive tried just renaming the ScreenRotate but that failed then i tried changing the dll name stored in the key, after all if it cant find the dll surlly it'll stop the rotations.
Click to expand...
Click to collapse
I did that as well.. sorry, should've mentioned it in my original post, but I had the same idea as you! - the screenrotate.dll just seems to be tied to the icon in the systray. sigh.
Have to wait patiently for the VJClamhack to be released..
The clam hack has, by design, side effects - it disables part of the system OS, which conveniently disables screen rotation detection and some other stuff on the hinge. However, the bugger refuses to enable hardware keys with lid closed.
Because clamhack is quite a big sledgehammer for a nut, I'm a little worried about putting it out - however, I've never seen any negative sideeffects, only positive
V
Load DinarSoft MemMaid on your Universal.
Just as you can delete Startup Items, you can also delete Start Up Services. I believe I saw a service related to screen rotation in there.
I don't have my Universal for another week (getting replaced), but I do recall seeing that in there.
As always, perform a backup in case you can't "add" it back in.
I don't think that Rotation service helps, I tried it a bit earlier, since it seems to be an obvious target.
V
However, the bugger refuses to enable hardware keys with lid closed.
Click to expand...
Click to collapse
Thats OK, i don't need to use hardware keys when it's closed -- I figure this is part of a bigger problem you're looking at..
ust as you can delete Startup Items, you can also delete Start Up Services. I believe I saw a service related to screen rotation in there.
Click to expand...
Click to collapse
Yeah, I think that was the one Carnivor and myself had found.. we just prevented the service starting manually by bodging the registry key, but all it does is stop the little screen rotate icon from appearing.. thanks though
Has anyone figured this out yet?
Thanks
Hey folks-
I tried posting this in the S2U2 0.99 thread but there are countless pages and I figure it was like dropping a needle in a haystack. Any smartphone users out there have any experience using S2U2 on it?
My wife's Moto Q will run it, and it will function properly, except it almost appears as if the UI is set to portrait and the background set to landscape. The landscape wallpaper is chosen, but nudged down and left so it leaves equally sized black bars on the top and right side of the screen. The rest of the UI elements look set to portrait, as they are horizontally short (guessing 240 but I don't know for certain) and the slide bar is scrolled off the bottom of the screen. The clock/curtain and the carrier info bar are properly aligned to the top left corner of the screen, but as I said they appear to be portrait as they end at approx 240px.
Does anyone out there use the latest S2U2 with a smartphone (or, better, the Moto Q specifically) and has experienced/resolved similar problems? TIA
Edit: I tried this with and without ddraw and safemode on, and I get the same results every time.
I donĀ“t know. Sorry
i think he is using the dpad function of unlocking s2u2. i think your gonna end up with issues with the looks though. just wasnt meant for a smartphone squarish screen.
Wow, everywhere I post this someone without knowledge of S2U2's capabilities tells me smartphones don't have touchscreens. Thanks for the news flash
Yes, ajk511 is right, mostly. The Q has a 320x240 screen, not square, but even if it did, the S2U2 notes say it supports square screens and smartphones. I'm looking for input from anyone who's used S2U2 with a Q or similar device and experienced or resolved this problem.
I can't tell what S2U2 will do on a Q, but it works perfectly on a Smartphone emulator, except the CallerID part. Could you provide a screenshot of what you've done? I guess you may have to prepare a separate set of wallpapers for your Q as QVGA device needs a 240x320 portrait wallpaper while your Q is 320x240.
Can't speak for the Q, but on my wife's HTC Excalibur it works flawless. I did however make a custom 320 wide by 240 high wallpaper that is running in portrait(!) mode as far as I remember. Slider is visible and working fine with the DPAD.
I can confirm that s2u2 works without problems on my Samsung i600, after I had set NoPowerSuspend to 1 (before that if my phone screeen has been turned off, it stayed off and I can unlock device only after pluging headset wire into the slot), and CallerID to 0.
Now I have one question: how can I set s2u2 to lock keypad on homescreen only?
Sorry for my English
This work in a Smartphone HTC S620?
I had a problem with my samsung i320 (landscape 320x240). S2U2 and settings start in the wrong orientation. unlock is working with DPAD, but it's impossible to use settings
Thanks for your answers
Treo 500v has the same problem.
I started with 1.01 and then 1.05, 1.22b, 1.30 and 1.32.
Always the same problem
BoZ
I guess S2U should have its own help forum. Anyways The problem I am having is that when I turn the back light off and turn it back on S2U pops up just fine but I also get an error notification "Cannot execute \Storage Card\Program Files\XMT_OnPowerOn.exe" Does anyone know if this is a S2U problem or something else?
Running on Q9
I've been running s2u2 on a Motorola Q9c for about 3 weeks now with minimal problems. I love it! I'm just trying to learn my way around some of the power management options, and figure out how to change the size/date of the date. So far so good though, I'm very impressed.
Hi, which s2u2 version are u using?
thanks
newest version works fine on HTC Ozone. Trick is you need to use mydialer to change config, its eazier that way.
I actually used S2U2 with a Pantech Matrix Pro and it worked fine. The only problem is when the screen dims, then goes to the lockscreen, then the screen shuts off, the phone shuts down immediately! Also I could not figure out how to access the settings because it was meant for a PPC. Any ideas?
Try to edit settings via registry values in HKCU\Software\A_C\S2U2
try adjusting your backlight settings, to time out longer.
UltraMagnus said:
Hey folks-
I tried posting this in the S2U2 0.99 thread but there are countless pages and I figure it was like dropping a needle in a haystack. Any smartphone users out there have any experience using S2U2 on it?
My wife's Moto Q will run it, and it will function properly, except it almost appears as if the UI is set to portrait and the background set to landscape. The landscape wallpaper is chosen, but nudged down and left so it leaves equally sized black bars on the top and right side of the screen. The rest of the UI elements look set to portrait, as they are horizontally short (guessing 240 but I don't know for certain) and the slide bar is scrolled off the bottom of the screen. The clock/curtain and the carrier info bar are properly aligned to the top left corner of the screen, but as I said they appear to be portrait as they end at approx 240px.
Does anyone out there use the latest S2U2 with a smartphone (or, better, the Moto Q specifically) and has experienced/resolved similar problems? TIA
Edit: I tried this with and without ddraw and safemode on, and I get the same results every time.
Click to expand...
Click to collapse
It works just fine on my Q..on screen shows the battery charging....i'm using S2U2 v2.41..because it's difficult to editing the s2u2 setting ( b'cause Q is not touch screen.. ) so i use my mobiler apps to control it through PC...
Ray_jai said:
Hi, which s2u2 version are u using?
thanks
Click to expand...
Click to collapse
Try this latest version 2.43 of S2U2, it really works fine on Windows Mobile Smartphone 320x240, specially for Motorola Q CDMA or Samsung GT-C6625 Valencia but settings mode cannot be access, so you should try to edit settings manually via registry values in HKCU\Software\A_C\S2U2 and goodluck...
Hi
Wherever I have a programme that does not use its own formatted drop down boxes and therefore defaults to the windows mobile white background black writing plain layout I have a lot of trouble getting the screen to react and drop the boxes or make selections, a prime example is if I try to use winmo built in screen tap alignment feature, its a real job to make it accept the taps on the screen. If a programme has formatted boxes there is never any problem Is there a way to make using screen taps better when not running a prog that overrides the plain layout. Thx in advance.
HD2 stock 1.66 rom
I installed the custom 3VO rom, and I'm not blaming it, its brought a lot of neat features, but for some reason I can't seem to fix a few problems:
Everytime I write a text message, I get an INFO: Message sent. I tried disabling it through the registry editor and installing a cab, doesn't work. Seems like it doesn't have an option to disable it, because I went to Text-Messages-Menu-Options and then when I go to account, there is no way to disable it there either. Its windows mobile 6.5 I believe.
There is nothing wrong with CHome, except that the clock is disabled in the upper bar for whatever reason. How do I make it display that? I hate the clock bar, or at least start on a different slide? I came from blackberry, so if you could point me in the way of a QVGA theme that is similar to the today screen that would be fantastic as well.
Also wondering if there is an ability to quit an application instantly after I exit it rather than have it running the background.
Text sent was fixed with the replacement of the HTCMessage.exe with a blank dummy file. Would still like help on other issues if you would so kindly oblige.
I think this is a problem specific to the HD2 - basically, when i leave the phone on the auto backlight setting, it is too bright and therefore draining the battery. of course, setting it manually is a pain and it needs changing as conditions change etc.
What i am wonder is if there is any way of changing the auto so that it is consistently less bright? I have had a dig through the regedit but not really sure what i am looking for or doing!
I was guessing that there was a value that would be assigned to the brightness above the ambient brightness (from the light sensor) - can anyone enlighten me further?
Many thanks (and also for all those other posts i have used to help me make my phone exactly as i like it... CHT, BsB, Scilor etc!)
try Lumos.
nice. almost does too much! but good bit of software thus far. now to do some benchmarking... if only the sun would shine!
Controlling Backlight Settings
I took a different approach to resolve my problem -- keeping auto backlight turned off, but easily changing the backlight settings when I needed to change them. I created a shortcut called Backlight.lnk (that's a lowercase "L", not an "I" I discovered). I used a text editor and put in this line:
12#Powerexe.exe 2 - backlight tab
I saved it with the name Backlight.lnk and copied it to my Start/Programs folder using File Explorer. I moved the shortcut to the top of the Start menu where I can get to it quickly. I just tap Start and the shortcut icon and I am at the Backlight screen where I can quickly change the backlight level or the timeout settings. This saves a few taps compared with going in through the Settings screen.
I had tried Lumos and another program I found on the MS Marketplace, but both caused other problems for me.
PS: I found the line above in a posting at
http://forum.xda-developers.com/showthread.php?t=645916
It's an excellent tutorial on creating all kinds of shortcuts.
Try MVBKLight.
Very handy popup (plus a usefull torch).
I have both Auto and Manual controls. With links I immediately switch between sensor and the MVBKLight slider.
Try searching for autobacklight toggle. Basically, its an icon which when pressed on main screen enables disables autobacklight. So much better than lumos.