HTC Desire :: Orientation After 2.2

Sep 1, 2010

After 2.2 (stock update done whilst away for repair by HTC) my phone will flip orientation WAY too much, sometimes only the slightest turn will trigger it but occasionally no movement is required at all (as in it's flat on the desk) - I do realise 2.2 added the feature that the app remembers the last orientation but it's happening even when the last use was portrait.It's so random I've now switched it off completely (orientation not the phone).Am i alone in thinking this feature is way too sensitive after the 2.2 update ?

HTC Desire :: Orientation after 2.2


HTC Desire :: Change Orientation On Phone

Jul 11, 2010

I have seen online screenshots where applications like contacts etc either appear on full screen, or on a line like this.

At the moment I can only have them on full screen as they come from the people widget...

View 1 Replies View Related

Android :: Orientation Change - Dialog Above Activity With Fixed Orientation

May 14, 2009

I have created an activity for my game which handles all orientation changes by itself and has a fixed "portrait" layout. Actually it uses the accelerometer and is rendered using 2D canvas methods. If the level has been completed I show up a highscore dialog in which the user can enter his name. The dialog is floating above the underlying level screen which gets blurred out nicely. This generally works.

Problem is that the dialog does not get rotated if the orientation of the phone changes. So even if the keyboard is exposed the dialog is shown in portrait mode instead of landscape. I have tried to use an activity with dialog theme instead but the behavior didn't change. After several tries it seems that I have found the reason for this: Once there's an activity with fixed orientation in the activity stack then all subsequent activities keep this orientation, too. They will not react on orientation changes anymore (e.g. if the keyboard gets exposed).

After upgrading to 1.5 SDK the described behavior changed a little bit. Now at subactivities indead react on orientation changes like expected. However, the need to have an opaque background! That means that neither dialogs nor activities with dialog theme will work. Those will stick with the orientation of the underlaying activity. So my workaround is to first start a sub-activity with an opaque black background. This activity then shows my highscore dialog on top. It looks quite okay but I wonder if there's a better solution? Is it possible to show a dialog above a fixed portrait or landscape activity which automatically adapts to orientation changes?

View 3 Replies View Related

Android :: Using Orientation Sensor To Get 360° Orientation

Jul 17, 2009

I have a problem with working with the ORIENTATION values of the SensorManager. I would like to have some kind of 360°-value which directly shows me if the phone is in normal portrait (0°), landscape, portrait turned around (180°) or anything in between. So I could have, for example, an arrow that points to the floor (like gravity would do with a plummet) all the time, no matter how I tilt (sidewards) the phone. I thought this would be easy, but I'm pretty confused at the moment.

First of all, the X value of the orientation-array seems to correspondent with how I turn the phone, BUT: if it's completely uprightly standing, this value is about 60° ... why not 0° (or 90°, 180°, 270°), as I would expect?

Second: The value resets if I turn the phone and Android automatically changes screen orientation. So both in Portrait and in Landscape mode it will be sth. like 60° when the phone is in a 0° angel in real world. I set "android:screenOrientation" to "landscape" but this doesn't help anything :/

I want the app NOT to change orientation when I turn the phone, but I want it to get a continuous orientation value when I tilt the phone.

View 4 Replies View Related

Android :: Can Force A Specific Layout Orientation - But Have An Opposite Keyboard Orientation Android

Aug 19, 2010

I understand how to force a specific orientation per activity in the android manifest. I would like to know if it is possible to allow the keyboard to change orientation even though the activity(the layout really) must remain unchanged.

View 1 Replies View Related

HTC Incredible :: Orientation Lag In 2.2

Sep 1, 2010

seems that changing from portrait to landscape and back is a LOT slower since I upgraded to 2.2. Is no one else seeing this?There's like a 2 second delay and it used to be less than 1 second.

View 4 Replies View Related

How To Change Orientation For AVD

Feb 6, 2013

What I want to do is to change the default Portrait to Landscape.I have one AVD setup using fwvga device, I went to Setings -> Display, only saw Auto-rotate screen checked (by default), unchecked, it does not work.

I'm testing out a web app. It works but if the orientation changes to Landscape it would work better.

View 4 Replies View Related

What To Do When Screen Orientation Changes

Jan 12, 2014

I have some code in place that checks for if the screen has been re orientated which works fine.But its what I do after that that seems to be a pain.if I put an if statment in that stops any methods that would normally be trigged on the oncreate method my screen is empty on rotation.if I try to just reinflate the view, that doesn't work because I havent saved the data that it displays to singleton.

It basically seems like I have to save my individual vars to a singleton then if the screen reorientates use them... But then that seems really crude and crappy stuff like if you scroll down the viewlist the position is refreshed to the top when you reorienate..What Im doing basically just doesnt seem right?

View 1 Replies View Related

Android :: Set Screen Orientation Of A Tab

Mar 18, 2009

I would a Tab (in a TabHost) to have a Landscape orientation while the activity with the TabHost is in Portrait orientation, is that possible (if so how)? I tried setting the orientation of the Activity displayed in the tab in the Manifest but it didn't work.

View 7 Replies View Related

HTC EVO 4G :: Want Kickstand / Portrait Orientation?

Jun 1, 2010

Looking at videos/pics of the kickstand, it almost looks like the kickstand supports the phone when in portrait orientation. Can anyone confirm this? Is landscape the only way the kickstand works with the phone?

View 14 Replies View Related

Android :: Orientation Changes And Layout

Apr 14, 2010

I figured that I can have custom layout for each orientation just by making two folders layout-port and layout-land. So I put different views in these folders. Worked well.

Now, I have a webview in my activity and it reloads whenever there is any change in orientation. So to prevent that I put android:configChanges="orientation" in my manifest file.

After putting this the reloading stopped but the contents in the layout-port started getting selected for landscape mode as well.

View 6 Replies View Related

Android :: Orientation Changes For Layouts

Oct 16, 2009

i have a layout folder with 2 layouts. layout1 and layout2 i have another folder layout-land that has layout1 in it. i would like to be able to get to all the layouts so i could create a set of layout like this: {layout1, layout2, layout1(from layout-land folder)}is there any way i can use the existing android mechanisim to do that? if not, what would be the impact of creating my own definition of the layout folder (for example to have under the layout folder layout1, layout2 and layout_land1 and have my code do getOrientation to diffrentiate whcih one should be presented).

View 9 Replies View Related

Android :: App Widget And Orientation Changes

Sep 1, 2009

I've built an app widget a fairly simple one that draws an image inside a frame. (If that sounds familiar, that's because it's very similar to the built-in one, but it's a start to something else.)The RemoteView consists of little more than a FrameView and an ImageView. I have a second FrameView that may display or not depending on some certain state awareness.The Image updates on an Alarm schedule rather than the built-in mechanism so the user can adjust this value after installation. The image is set on the RemoteView using a drawable ID from included resources in the package. They've been resized to approximately a quarter of the screen size, but might still be scaled a little by the ImageView.All of this has been working fine. There is one issue that I've been unable to diagnose even the root of the problem.

After an orientation change when the home screen redraws, the ImageView doesn't always draw. The rest of the RemoteView does draw just as it was set during the most recent Update.The mystery is that the ImageView does, in fact, draw if the Alarm is currently set. If it's not currently set, it doesn't draw. Nothing else seems to affect whether it draws or not. It doesn't matter if the widget process is running or not, either (killing it via DDMS and then rotating has the same effect).This occurs in the emulator as well as the G1. During a rotate, the widget gets no update event at all.I could set it to listen for configuration changed broadcasts, but since it works in one of the cases, I suspect something else is going on and that's just an unnecessary piece of duct tape.

View 12 Replies View Related

Android :: Orientation And Webview

Jun 15, 2010

I have a webview and I am using android:configChanges="orientation" to restrain the webview from reloading everytime the orientation changes.I also have two different folders layout-port and layout-land to define the layouts for different orientations.If I use android:configChanges="orientation" then the above two folders are ignored. Can I have both working at the same time?

View 6 Replies View Related

Android :: How To Set Dialog Orientation?

Jul 28, 2009

My underlying actitvity is set to landscape orientation, but when I show the dialog, I'd like it to be in portrait (vertical) orientation.I set the orientation in my layout to be vertical but that didn't help. The Dialog class doesn't have a method for such a thing.

View 3 Replies View Related

HTC EVO 4G :: Orientation Switch Not Working

Jun 19, 2010

I noticed that the orientation on my evo is not working, I checked the orientation in the setting and it's enabled. I restarted the phone and still same problem, it will not switch during web browsing, email inbox, calculator, etc...

View 17 Replies View Related

Android :: Handling Orientation Changes Yourself

Jun 3, 2010

From the documentation regarding the android:configChanges='orientation' attribute of the activity tag in the manifest:

Using this attribute should be avoided and used only as a last-resort. Please read Handling Runtime Changes for more information about how to properly handle a restart due to a configuration change.

Why does it say this?

In the case of threads and networking requests via a service API library, a request could be made with a reference to the original Activity, and then an orientation change could occur, leaving the thread pointing to the old Activity.

While this can be fixed, it's tedious and ugly compared to just handling the configuration changes yourself.

Why should it be avoided?

I guess I should also ask: would this be an acceptable reason for doing the orientation configuration changes yourself?

View 2 Replies View Related

Android :: Getting Orientation Of Device

Dec 18, 2009

I have a camera preview activity, which is forced to stay in landscape mode.Is there a way I can tell the current orientation of the phone (not the screen orientation).Basically I want to know if the user is holding the phone in portrait mode, or in landscape mode, so I can rotate the output captured bitmap correctly (right now it just always outputs in landscape mode).

View 1 Replies View Related

Android : Receiving Orientation Changes

Sep 22, 2009

I've got an activity which is always configured to be displayed in portrait mode (with android:screenOrientation="portrait"). I don't want it destroyed when an orientation change happens, so I have android:configChanges="orientation" for it.

However, it *does* needs to be aware of orientation changes, so I can update the content. Unfortunately it would appear that while I am being sent configuration change events, the orientation in the configuration claims it's always in portrait mode, presumably because that's what the activity is set to.

How can I have my activity be permanently in portrait mode and *also* receive the correct orientation change events as the phone is rotated?

View 3 Replies View Related

Change Orientation At Run Time

May 14, 2014

I am new to Android development and in general mobile phone app development. I am trying to make an app which uses jpeg images as background. What should my image resolution be for it to be full screen? (eg. 1920x1080, 1280x720, 640x480, etc) Is it device specific?

I read about the resources and how you can place resources in 'drawable' folders and then Android selects the best match. But does it adjust the resolution when you change orientation at run time (tilt device)? Is there a setting in the manifest file for this? I set android:screen Orientation= "land scape" in the activity. Also does it crop the image if it is too large or adjusts it to fit on the screen?

View 1 Replies View Related

Android App And Screen Orientation

Jan 19, 2012

I was wondering if there was any java code that will allow you to make sure each window in your app stays in portrait despite the user flipping the phone to landscape. I already tried inserting android:screenOrientation="portrait" into both my android manifest and into every single XML file I had but unfortunately only some stayed in portrait and others still flipped to landscape.

View 3 Replies View Related

General :: Screen Orientation App?

Mar 11, 2012

Is there an app that sets different orientation settings for each app. Like if i want my browser to switch to portrait it switches. But if I open xda it stays in landscape even if my settings is set to auto rotation. SGH-T989

View 4 Replies View Related

Android :: Resize Based On Orientation.

Feb 12, 2009

I need to have my view resize itself based on the orientation. After extensive googling (maybe i was using the wrong terms) I could find nothing telling me how to detect when the orientation was changed. Here is my layout file: how do I have it automatically resize itself? I want each item (the EditText and the WebView) to fill half the screen (not counting the title/notification bars). I set the height to absolute and not wrap_content because wrap_content defaults to 1 line for EditText and nothing for WebView. and fill_parent has the EditText on top of the WebView.

View 9 Replies View Related

Android :: How To Handle Activity When Orientation Changes?

Aug 9, 2010

I am writing an activity, that loads data from a server and displays it as a list using ArrayAdapter. For that I'm showing a progress dialog i.e loading, while it loads all data from the server. Then i dismiss the dialog in a handler. My problem is that when ever i change the orientation, the progress dialog is again shown, which is not needed, because all the data is displayed already?

View 1 Replies View Related

Android :: Clockwise Landscape Orientation

Jun 17, 2010

Apparently, since Froyo it's possible to display app in clockwise landscape orientation (e.g. as demoed here: http://www.youtube.com/watch?v=R4YazuITS1o). However, I can't find anything related in the SDK. How can I display my app this way?

View 5 Replies View Related

Android :: Any Way To Force Landscape Orientation?

Jun 3, 2010

I'm new to android and i was wondering if there's anyway to force landscape mode at all times. Another way of saying it, i never want to see portrait orientation on my device. Is there any settings or apps that will force landscape mode at all times (unless an app requires portrait)?

View 1 Replies View Related

HTC Droid Eris :: Orientation Is Very Slow

Apr 3, 2010

the orientation feature on my Droid Eris is painfully slow going back and forth from landscape to portrait. Sometimes I have to gently knock on my desk for it to respond and that does not work all the time. Is there anything that I can do to rectify this?

View 11 Replies View Related

Android :: TabHost Slow On Orientation Changes

Nov 24, 2009

I currently have a TabHost with 3 tabs.The content of each tab is an activity. The first and second tab make HTTP connections.The first tab still uses the UI thread (which i'm changing) so it would explain the slow orientation change since it's creating a fresh activity and making all those connections again. What I don't understand is why if I am on say Tab 3 which makes no connections at all does changing the orientation take such a long time (up to 5 seconds).In playing around with the TabWidget I noticed something that may be related.

View 2 Replies View Related

Android :: Change Orientation Of AlertDialog

Mar 25, 2009

I am building a AlertDialog in java code, so by default it is portrait but I want to show it in landscape orientation. How to do it in Java code?

View 2 Replies View Related

Android :: Screen Orientation Change

Oct 8, 2009

I notice when using the emulator that when the screen is flipped, I get a following logcat message:

INFO/WindowManager(589): onOrientationChanged, rotation changed to 1

How can I catch this in the code? I want to know whenever the orientation changes. I assume I have to set a listener, but I can't find an example anywhere.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved