Anyway to lock opera mobile or the stock browser into landscape mode?
When I'm lying in bed especially it's hard to hold the nook without it wanting to rotate into portrait mode.
Anyway to lock the browser into landscape mode?
Thanks.
Lock 90 degrees only
I want to lock rotation into 90 degrees only. Or how to disable accelerometer? Thought maybe the new tablet tweaks would allow this.
Anyone?
We can't. We only have a portrait lock in CM7.
So how am I supposed to browse lying on my side?
How am I supposed to browse lying on my side?
There's got to be a way.
Don't tell me I'm the only one who wants this.
If I turn my phone so the right side if facing down in goes landscape then turn it 90 degrees more so the top of the phone is facing down, it will stay that way and be lock landscape
Sent from my PC36100 using XDA App
Izord said:
Don't tell me I'm the only one who wants this.
Click to expand...
Click to collapse
OH, I wish it wasn't that way....
Izord said:
How am I supposed to browse lying on my side?
There's got to be a way.
Don't tell me I'm the only one who wants this.
Click to expand...
Click to collapse
You definitely aren't the only one who wants it. I think it's crazy that Android doesn't natively support locking the screen orientation in landscape mode. Hard to believe there is apparently no hack. Maybe we are the only two Android side-browsers on Earth. Or maybe it's too hard.
Debut post sent from my Nexus S 4G using XDA Premium App
Maxathon Browser has an option to lock browser orientation.
can't check right now, don't have my nook with me. but I think seeing in one of the new nighty (maybe n106 on up) there was a new setting for locking the screen in 0, 90, 180 and 270
browser landscape lock with javascript for mozilla
I don't know how useful it to reply this post now. but now mozilla provides as experimental solution to lock browser to any view in mobile.
check the link below and code afterwords.
developer.mozilla.org/en-US/docs/Web/API/Screen.lockOrientation#Usage_with_a_DOMString_argument
//fullscreen function
function launchFullscreen(element) {
if(element.requestFullScreen) {
element.requestFullScreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if(element.webkitRequestFullScreen) {
element.webkitRequestFullScreen();
}
}
document.addEventListener("mozfullscreenchange", function(e) {
var fullscreenElement = document.fullScreenElement || document.mozFullScreenElement || document.webkitFullScreenElement;
if(typeof fullscreenElement != 'undefined'){
$('.fullScreenOverlay').fadeOut();
if (window.screen.mozLockOrientation("landscape-primary")) {
// orientation was locked
alert('orientation locked');
} else {
// orientation lock failed
alert('orientation lock failed');
}
}else{
$('.fullScreenOverlay').fadeIn();
}
});
Related
Hi,
Just got my Topaz today.
I only manage to get it to landscape mode when turning left, is there a way of getting to go landscape when turning to the right. I prefer it that way for querty usage, being right handed I prefer to have extra reach with mi right hand.
Thanks.
I thought that it can rotat each way except for upside down. If not that will suck but sure there is a hack for it. Try turning it to the right and tilting the screen down a little bit?
If it works let me know. And by right I assume you mean that you like the bottom of the phone to be on the right side. Because I hate diveces that rotate to the left.... I've seen a few where you need to turn it left to slide out the qwerty. Seems Bass Ackwards to me.
Is it possible to rotate both ways?
Anyone found a fix for this? I'm using the new WM6.5 rom, and after enabling auto-rotate, I can only get it to rotate one way. I'd like it to rotate the other way as well as that would suit the position of my car mount and car charger better. Any ideas anyone?
not sure if it works but you can try to change with advance config 3.3 landscape mode from 270° to 180° for right rotation but its fixed
abzza said:
not sure if it works but you can try to change with advance config 3.3 landscape mode from 270° to 180° for right rotation but its fixed
Click to expand...
Click to collapse
Don't you mean "to" 90 degrees?
180 would be upside down?
yes 90 degrees
You can use ChangeScreen to rotate all the programs.
Changescreen does the trick
Thanks chaps for all the advice. Advanced config does seem to have settings to rotate in all directions, but the Touchflo interface would still only rotate in the one direction.
However, changescreen seems to override that, and allows you to rotate it in all directions (as long as you take the restrictions of the Manilla settings).
Thanks everyone!
Lee
Anyone else notice that the phone will automatically go into landscape mode even if the phone is being held upright? For instance, when I open the market, it will always change to landscape. Is this a 2.2 feature or is something buggy?
80+ views and no replies... I'm guessing this is something unique to me? Alright then, is there any way to recalibrate the phone's orientation?
It's not just you, but you are a bit wrong on exactly what's happening. If I open an app, initially it will open in portrait mode. Then if I rotate the phone it will go to landscape. Now, hit home, and you go back to Sense and its in portrait. Hold the phone in portrait and open another app, it will be in landscape. It's like the phone stays in landscape in the background whenever you go to the Sense screen which is always in portrait, and then ignores or forgets to switch any running apps back to portrait in the background, and any new apps will open in landscape as well. Annoying... I like the way 2.1 switched ALL apps back to portrait whenever you went back to the home screen. Can anyone patch this?
s197 said:
Anyone else notice that the phone will automatically go into landscape mode even if the phone is being held upright? For instance, when I open the market, it will always change to landscape. Is this a 2.2 feature or is something buggy?
Click to expand...
Click to collapse
Yes, this is happening to me too... I find myself tilting my phone to fix it when I shouldn't have to. Know of a fix?
I'm working on an app where there is a requirement to "mark" an item, specifically a question on a quiz app.
There is an image button on the top of the screen and when pressed, will put a "star" by the question. The user wants this to toggle, that is, every time the imagebutton is pressed, the star will appear or disappear.
Any "easy" way to do this? LOL Obviously I know how to show and hide it. But the code on the actual button press could be a pain. Not to mention, once set to View.VISIBLE, it's visible on ALL pages of the quiz.
My thought is to store the state of the question# and status of button in a database table: Y for on, N for off. Then query that status on every page. What I prefer would be something like this:
Code:
switch(V.getid()) {
case starButton: // button pressed!
if(star.VISIBLE) // it's there already, get rid of it
star.setVisibility(View.INVISIBLE);
else
star.setVisibility(View.VISIBLE); // not there, show it
}
There isn't a "star.VISIBLE" There is "star.setEnabled(true/false)", but that just "turns off" the button and grays it out a little. Any ideas? I want to keep this code short and sweet because I have to put it in onFling() too!
TIA,
Roots
if (star.getVisibility() == View.VISIBLE)
......
OMG...ok, I need to retire from programming ROFL So simple, so easy and yet I am so dumb to not see that solution.
Man, I was all around it wasn't I? LOL
Thanks. <hides under desk in shame>
When applications that are GPU accelerated are switched to full screen, the screen orientation always switches back to default (with the Asus on the Transformer logo on top). This is regardless of the orientation you have set.
For example:
A)
1.) You have rotated your screen upside down
2.) you run Angry Birds
3.) the screen switches back to standard default orientation
B)
1.) You have rotated your screen upside down
2.) launch youtube
3.) play a video
4.) switch to full screen
5.) the screen automatically switches back to standard default orientation
I have upgraded to 3.1 recently and don't seem to remember this being an issue before with 3.0.1 before.
Is anyone else also having this issue?
ok, is anyone with 3.1 NOT having this issue?
I get the same thing happening, and I think I would go as far as to say that it's actually intentional behavior on the part of Asus and Google to make the orientation revert like that. It makes more sense for fullscreen video to default to that orientation so as to ensure that it's consistent with the proper docking position, which is with the docking port on the bottom. Most people who watch fullscreen video for any extended period of time are probably going to dock the device.
Why do you turn the tablet upside down in the first place? I understand that having the ability to rotate 270 degrees is sometimes helpful for games and multi-user applications, I just don't see how using the tablet in its default orientation would pose a problem.
I'm typing on phone so briefly, the reason I need the transformer to be upside is due to the design of the variable angle stand of the official asus transformer skin case.
The case stands by folding in a scalene triangular fashion.
20 degrees above horizontal requires upside down.
75 degrees above horizontal requires right side up.
So most of the time when you use it in your lap, you want only 20 degrees
Applications are allowed to overide the orientation. This is true for most media players. It'll force the screen into the default landscape mode. App controlled so not honeycomb issue
Sent from my Transformer TF101
Sounds like a bit of a design oversight on the part of Asus.
Now as far as fixing it, you only have a few options. While you do have the ability to disable auto rotation on the screen, that's going to cause the tablet to simply default to the 0 degrees landscape orientation. What you need on top of that is a way to manually set your orientation, and so far I've never seen an app or ROM that does that. That's not to say it's impossible, just that I've never seen it done. The other option is to buy the keyboard dock, but that's a little excessive unless you really think you need it.
This is due to the fact that the dev of the app has forced it to lock in that orientation (landscape right side up, there's an app called androsensor that will give you more info). There was another thread concerning the same topic in themes and apps section. Your best bet is to email the app developer when you run into this.
One example is airport mania, if you were holding the device upside down and launched the game, it would force it to run right side up. I sent them am email with a description of what is happening and that the official sleeve (although I don't have one but felt it was with mentioning) is designed so the device is upside down with camera at bottom and charge port at top. Got a reply within the day and an update in the market within 3.
Sent from my Transformer TF101 using XDA Premium App
klau1 said:
Uncontrollable Orientation Behaviour
Click to expand...
Click to collapse
To much beer, not enough sex
There is an option to lock the orientation in the settings. So once it is upsied down you can lock the orientation and it shouldn't change.
I am not with my TF right now to test this though.
no, that doesn't work.
I don't recall this being a problem prior to the 3.1 update. Having to purposely ask each developer to change the orientation when none was necessary before is simply unacceptable.
Having bought something as simple as a case with it's multi-angle feature, one expects it to work out of the box.
As far as I knew, apps like Moboplayer always stayed in the default landscape orientation during video playback
I don't use Moboplayer much, but as far as I can recall, the Youtube app worked upside down in full screen before.
Can someone with 3.0 confirm?
Hi,
I want my app to start, after the back button was pressed 3x.
So I got this class which is executed in the Launcher.
Code:
public class KeyManager extends Activity {
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if(KeyEvent == "Back key"){
Log.e("KM", "PRESSED!!!!!"+keyCode);
}
//return super.onKeyDown(keyCode, event);
return false;
}
}
This code works, if it s implemented in the launcher class, but it does not work, if the app is in the background. How or which key listener do I need for listening to background keys or more if the app is working only in the background?
Of course it doesn't work when being background. These events aren't sent to the activitiy if it's not in the foreground, and as far as I know even services can't react to them.
Well, ok so that is the problem. But I think it should be possible to solve that as some apps also react if for example the browser is being opened etc. Also, Samsung user might know, by clicking 2x the home button the app S Voice opens. And it should not be a system app, but just a usual one.
Maybe something like a global key listener is available? Unfortunately I couldnt find anything referring to that, yet.
Deyaz said:
Well, ok so that is the problem. But I think it should be possible to solve that as some apps also react if for example the browser is being opened etc. Also, Samsung user might know, by clicking 2x the home button the app S Voice opens. And it should not be a system app, but just a usual one.
Maybe something like a global key listener is available? Unfortunately I couldnt find anything referring to that, yet.
Click to expand...
Click to collapse
The Samsung S voice example is a really bad example to use because that's just code implemented in TouchWiz's launcher, I'm guessing its a timer that listens for 2 presses of the home button within a set time, if 2 presses are registered in the given time-frame, S Voice is launched via intent, if not then the default action for the home button is taken.