Android :: Height Of Device In Portrait Mode?
Dec 3, 2009
Is there always a concept of portrait mode for devices? If so, can we get what the height of the device is in portrait mode? I'm using this: DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); but width and height get swapped depending on orientation of the G1.
View 8 Replies
Mar 31, 2010
How can I get the height of the device for portrait mode? I have to create a bitmap (which is zoomable) and I just want to get a rough idea what the tallest height should be. getResources().getDisplayMetrics().heightPixels; does the above return the height, in portrait mode only? I'm not binding my UI to this absolute value, it's just a rough fit.
View 1 Replies
View Related
Mar 26, 2012
there are those of us, who due to whatever reason (helmet cams, preference for posture, etc) want to record videos in portrait mode.
What happens (on my sgs2) is that the video records just fine in whatever resolution I pick... but it records it 90 degrees rotated to the right.
The solution that is usually offered is that "you can rotate it after!" yes... but then you have to CROP part of the image and lower the resolution. 1920 x 1080 recordings end up having to be cropped so that half of the view is cut out , or even more if you are maintaining a real aspect ratio.
The questions about "why not just hold it sideways", are just as pointless as the statement by steve jobs telling iphone4 users that they were holding their phones wrong.
is this something that can be remedied ? or has google decided that people should only record videos when their phones are in landscape mode?
i understand that we cant see landscape resolution in portrait mode; but can't we just have a viewport into the camera, but record in properly oriented landscape mode? so that playback on a computer will show the full resolution, even though we will only see part of it on the phone..
View 1 Replies
View Related
Dec 1, 2013
dialer in kitkat is always in landscape mode when call is ongoing....how can we set it in portrait mode
View 1 Replies
View Related
Sep 23, 2013
I have a tablet and I want to set the portrait mode as the default orientation mode instead of landscape mode.
View 2 Replies
View Related
Jul 3, 2010
Am I the only one that prefers navigating in portrait as opposed to landscape. It seems that you get more view of the road ahead, rather then the sides. What am I missing, where / why would landscape be preferred?
View 3 Replies
View Related
Aug 5, 2009
I am trying to use Camera to take picture and to video recording but it always runs in portrait mode. Even if I tried to sreenOrientatiton="landscape" it solved screen appearance but when I take photo and capture video they are still saved rotated 90 degrees.
View 5 Replies
View Related
Jan 13, 2010
I want to have this result : https://docs.google.com/a/google.com/File?id=afzfgn3h3x_10dwd35pv4_b but in portrait mode. the EditText take all the screen with the keyboard. How can I do that?
View 3 Replies
View Related
Nov 26, 2009
Is it possible to start the browser activity from my game but force it to be portrait regardless of orientation so that it matches the orientation of my game which is always in portrait regardless.
View 2 Replies
View Related
Mar 31, 2009
When we try to implement orientation in AP layer, we can set "android:screenOrientation" parameter in AndroidManifest.xml file or call "setRequestOrientation()" method of Activity class. But if I want to porting android in new HW device, how can I do? Do I need to modify the graphic driver, or just add configuration in program. (Actually I do some experiments but my AP cannot rotate) Besides, can every experts tell me when I set the "android:screenOrientation" parameter, which process will read this configuration, pass to where and which process will do the rotation?
View 2 Replies
View Related
Sep 16, 2010
I want my android application to be only run in portrait mode? How to do that?
View 2 Replies
View Related
Jun 27, 2009
When do you expect it to get fixed? I am a developer working on http://layar.eu and I had to go through lot of trouble to get the app working in portrait mode with camera preview, using a LOT of rotations. I have managed to get everything rotated to portrait except for the on screen inputmethod which still shows up in landscape. Do you have any suggestions for rotating that?
View 9 Replies
View Related
Jul 5, 2010
I want to force App Widget in portrait mode, as we force our activity in portrait mode by adding this attribute in Menifest file android:screenOrientation = "portrait". is there any way to force App Widget in portrait mode?
View 5 Replies
View Related
Oct 1, 2009
I am facing a problem when i put a text view on screen in landscape mode it position is fine but when i switch to portrait mode it position is remain fix it not change according to screen resolution.
View 2 Replies
View Related
Sep 6, 2010
Does anyone know how to move the bar (I don't know what its called) from the right hand side, to the bottom in portrait mode? The one that is at the bottom in desktop mode. (The one that you press to bring up the applications).
View 1 Replies
View Related
Feb 11, 2009
I have written a small example which displays the photos from the server. Its working fine when the device is in one of the mode (landscape of potrait). But if I switch to landscape to potrait or potrait to landscape while downloading the photos from the server, I am getting NullPointerException, showing with androidRunTimeException.
I am using LinearLayout -> ImageView
I am using threads to download the images.
View 4 Replies
View Related
Sep 26, 2010
I made an app thats use the camera. The first problem i get was that i can't use portrait preview without the rotation 90º image. I used the solution (landscape for all), but now, only in the real device, when i start the app and i have the device in portrait mode it crashes (need to force close) and only after reboot the phone its possible to connect to camera, even in the camera app.
View 2 Replies
View Related
Sep 8, 2010
I am using VideoView component for streaming video in Android , but I am not getting the full screen display.
Kindly provide the code to display full screen in portrait/landscape mode.
View 2 Replies
View Related
Nov 5, 2009
I want to know the device state programmatically.
I mean whether the device is in portrait mode or in landscape mode by programming (in a class which extends the Activity).
View 4 Replies
View Related
Feb 28, 2009
how the application knows that the view of device has changed from portrait to landscape.is there any way to know the application about view change.
View 2 Replies
View Related
Jun 26, 2010
When i am texting in the compact qwerty or phone keypad the setting always defaults to xt9. Is there anyway to default text messages and email to abc instead? I am using the htc ime mod keyboard from xda if it matters .
View 2 Replies
View Related
Jun 22, 2010
I didn't really pay attention, but since i have been on these forums I noticed when I type a post my keyboard lags. It isn't too bad while in portrait mode but when I'm in landscape my keyboard lags a LOT. I havent noticed it on any other sites. It is at its absolute worst when posting in landscape on this forum.
View 2 Replies
View Related
Jan 22, 2010
Do you use landscape or portrait mode? And which keyboard do you use to post, virtual or real, since the virtual one hides the screen for some reason? I posted this from my Droid, just to prove to myself that I could real keyboard, big hands no problemo. Few typos, but easily fixed. No worse than I do on a life-size keyboard at home.Droid looks to be about the size of a busines card next to my big thumb. I can still somehow peck the keys fairly quick.
View 10 Replies
View Related
Jun 6, 2010
For some reason the entire right side of my keyboard stopped working in portrait mode. i don't know what could have caused this but it really stressing me. Any ideas on what I need to do to fix this?
View 3 Replies
View Related
Sep 2, 2010
I am having a lot of difficulty with my keyboard in both landscape and portrait. I am using the "Android Keyboard" that came with the phone. Examples of what I am referring to:
1. Wrong Key Showing: I type one letter and a different one is actually displayed.
2. Horrible Response: I get half way through an email and realize I need to fix an error in the middle of the paragraph. Trying to get the cursor where I want it a extremely hard to do and often it will move, but not where it is suppose to be moved to. Other times the cursor simply doesn't move at all and I have to erase all the back to where the error is and than retype. And no the cut and paste or copy and paste do not work since the cursor is not moving.
3. Random sentences just erase: I will be typing and hit the back key to erase a character, but instead it erases a line or two and won't stop.
Suggestions and no I am not going to root and void the warranty.
View 7 Replies
View Related
Feb 25, 2009
I am using Intents to switch between activities in my Android app. I am putting data in the Intent for use in the next activity. When I switch the phone between landscape and portrait modes, the values passed from the intent are lost and I get a NullPointerException.
Can someone please tell me what could be wrong.
There's a lot of code to post it entirely. But if someone needs to look at specific parts of code, I can post it here.
Edit
I solved the issue of state not being saved. But another problem I faced is that none of the buttons on the screen work after the orientation has been changed. On button press, I get this warning in LogCat
02-25 23:07:49.190: WARN/WindowManager(58): No window to dispatch pointer action 0
View 2 Replies
View Related
Dec 8, 2009
Anyone know if it's possible to obtain the physical height or altitude of your device, using the sensors or by any other means?
View 4 Replies
View Related
Sep 16, 2009
I have a problem creating a custom view for an Android application. My custom view wants to use if permitted the maximum screen width. I couldn't find any way to retrieve this value. Can anybody point me to the right method?
View 1 Replies
View Related
May 21, 2010
I am using two xml layout file layoutPotrait.xml and layoutLandscape.xml.When device/emulator is in portrait mode i want to set the content view with layoutPortrait.xml file and when I will change the emulator to landscape mode I want to set content view with layoutLandscape.xml file. How can I achieve this?
View 3 Replies
View Related
Jul 6, 2010
I'm responding to an email and I rotate the phone to landscape mode. Once completed, I turn the phone upright and it remained in landscape mode. The only way to get it back was to hit the menu button. I rotated to landscape a few minutes later and now its stuck in that mode, and won't return to portrait at all. I tried removing the battery to no avail.
View 3 Replies
View Related