orientation

Ipad orientation problem with modal view

Hi, i've a problem with a modal view rotation. I create a main view in portrait mode, then i create a modal view. Everything works fine: i can rotate the modal view and all orientation are supported. If i create the main view in portrait mode then rotate in landscape and after that i create my modal view... the modal is in portrait mode ...

Centering a background image in Android

I have a background image about 100 x 100 that I want to center in an Android app. Is there a way to do this? I'm thinking it would greatly help with orientation changes for simple apps. ...

Android camera unexplainable rotation on capture for some devices (not in EXIF)

What I'm doing seems like it should be simple, but I'm still lost after I've read every possible Stackoverflow answer I can find and Googled every article I can find. I'm using a preview SurfaceView and capturing an image from an activity that is set for screenOrientation="landscape" in my AndroidManifest.xml. I followed the sample Cam...

How can I force horizontal orientation programatically?

My application has a portrait mode, and a landscape mode. I want the user to be able to force the landscape orientation by clicking on a button. How can I do this programatically? ...

How to create a 3D compass in Android?

I am currently trying to develop a 3D compass myself. I have been trying for almost a week now, and still no luck. So please help me out. This is the code I use for my orientation handler: public void onSensorChanged(int sensor, float[] values) { // azimuth pitch roll if (sensor == SensorManager.SENSOR_ACCELEROMETER) { ...

Android Dialog with dynamic text (API level < 8) killed on rotation

I want to create a dialog with a string that I build at runtime. It looks like API level 8 allows you to call showDialog with a bundle, but I have to write an app that will run on the older OSs. How do I create a dialog with something like a simple error string and make sure it doesn't die when I rotate the screen. I realize if I over...

Three20, different images for portrait and landscape orientation possible?

I am using three20 to present a photo essay of a story I made after the February earthquake in Chile. I would like the app to display portrait type images when iPad device is in portrait orientation and landscape type images when iPad device is in landscape orientation. So there would be two versions of every image, one cropped for portr...

iPad - FaceDOWN Down Issue

Hi, I am working with iPad App. And i have problem in FaceDOWN, in this orientation viewdidlaod & viewwillappear will not call evenif the button is also not work. In faceUP orientaion all the functionality is working. In my plist four orientation is set in Supported interface orientations (iPad); Portrait (bottom home button) Port...

UiTabViewControllers+UINavigationControllers+UIViewControllers Orientation

I have a UITabViewController application with 4 tabs and each tab with a UINavigationController, each with a UItableView. When a row is clicked it navigates to another view. I would like to support Landscape Orientation only for a certain UIViewController and not in any other view. When I set "return YES" on each UINavigationcontrollers ...

How to draw canvas in respect of phone orientation (landscape , portrait) ?

There is no problem with portrait mode but when i try my app on landscape mode it doesn't look how it should.What is general aproach to solve this problem.My first idea is replacing X and Y places.If i am on the right track how should i do this ? Should i use an if statement at the beginning of the onDraw() function and write entire same...

xrandr changes X's orientation too slowly

Hello, I'm changing X's orientation with following command xrandr -o left xrandr -o normal ... When orientation is changing screen becomes black for a moment then it switches orientation. So how to get rid of this black screen effect ? Maybe some other options should be added to xrandr ? Regards, Levon ...

How to save state during orientation change in Android if the state is made of my classes?

Hello, I was looking at the way Android handles orientation change for my application (I discovered that it restarts the mainactivity on orientation change :| ). I've seen that you can ovveride the method protected void onSaveInstanceState(Bundle outState) to save stuff, then have the in onStart. The problem is that I've my view wit...

Android phone reboots while executing my own developed application

I developed an Android application that uses many services, including GPS and orientation (compass). The genre of the application is AR (augmented reality) and I'm moving image views around the screen in real-time depending on the phone orientation. However, after a while, the phone freezes for a second and then reboots (Motorola Droid)....

Windows Phone 7 applications - Orientation Change

Hello there fellow developers! I am working on a Windows Phone 7 app and I can't figure out what I believe is a simple problem for the more seasoned ones. Say I have a layout consisting of two elements: a ListBox (filled with an abundance of items) and a TextBlock (providing the user with some basic instructions). I want these to be one...

iphone navigation controller - transition between portrait and landscape view controllers

In my iphone app, i've two view controllers. First one is a portrait and second one is landscape. When app is started, it will show the portrait view. On click of a button in portrait view, the view transitions to landscape view. Here, i'm using navigation controller. If both the views are portrait, pushing the next view via navigation c...

Iphone OpenFlow orientation issue

Hi, I have used the OpenFlow API developed by Alex Fajkowski in an app I am working on. It is a tabbar based app with navigationcontrollers in each tabs, and in one of the tab is the openflow view. everything works fine except when during landscape orientation the selected Image is not in the center of the screen. How do I fix this? Tha...

How can I manually recreate a Contextmenu for a Child of a ListView on Resume?

Hi, I have a ListView with a ContextMenu. If the ContextMenu is open and the Orientation changes, I want to reopen the Contextmenu for the Child of the ListView, that was clicked on. I tried to do this in "OnResume", but at this point, the ListView seems to have no Children. Anybody knows an answer? Thanks in advance. ...

Stopping orientation change with side-keyboard (Android)

I am wondering how I can make the orientation of the screen permanent, even when the phone has a slide-out keyboard. This is the code I have: <activity android:name=".AppName" android:label="@string/app_name" android:screenOrientation="portrait"> Thanks. ...

UINavigationBar root view doesn't rotate into landscape.

I have an application with a main menu screen consisting of a few buttons on link to other view controllers using a navigation bar which are consist of web views. In each of my view controllers including the root I have the following method to auto-rotate: (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)x { retur...

UIScrollView Vertical Pan Snapping to top or bottom of view

Hi Guys, I have an image that is 320x480 and upon orientation change this image obviously hangs out of view. There are some images where the focal point of it sits with it's bottom cut off (which isn't undesirable). My issue however is when the user pans vertically to see the full image, the view appears to snap to the bottom meaning th...