orientation

UIAlertView won't rotate to landscape even with applicationDidFinishLaunching call

I am trying to use UIAlertView on my landscape right (home button on the right) app but it is showing up in portrait orientation. I have tried putting: [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated: NO ]; in applicationDidFinishLaunching, but it doesn't work. Are there any o...

[Android] How to keep TabHost at portrait orientation and listen for configChanges (orientation).

Hi guys, Could you advise how to keep TabHost with all tabs at portrait screen orientation and at the same time listen for configChanges = orientation? I am going to show another activity when orientation is changed. Seems to me configChanges (orientation) event does not fire when screenOrientation is set to portrait mode. Thanks for ...

Changing Orientation, losing all my list items

While I tested my application on an Android Device turning my Android phone from landscape to portrait, results in all the list items in my list view are disappearing. Why? How to manage? ...

iPad tab bar application needs to support both portrait orientations

Is there an easy way to set my application so that it can automatically rotate to only the portrait modes (no landscape)? ...

Any way to trigger interface orientation check?

My app is going from a flipside view (only one orientation) to its main view (can have any sort of orientation. When I go from flipside back to main view, the main view's orientation is not checked and changed immediately. I need a way to trigger the built in orientation check that happens in willRotateToInterfaceOrientation so that ...

How do I lock the layout of my android program to one orientation

I'm trying to write a program that needs smooth orientation sensor samples as the phone is rotated all around. Every time the orientation of the phone is changed, it interrupts the data and freezes the program while the layout changes. How can I lock it in one orientation (landscape or portrait, it doesn't matter)? I assume it has somet...

iPad device orientation is null?

([UIDevice currentDevice].orientation); using the above code in my app, all i get is 0 (unknown) is there something thats going wrong here? Seems pretty straightforward edit: more research led me to the problem with using device orientation early in the app, which I am doing. However when I instead use interfaceOrientation, it always...

UIImageView size becomes equal to the size of image it holds after autoresizing

Hello, I faced a strange problem. My task is to provide scaling an image to fill the UIImageView frame. The UIImageView is a subview of another view. The code is following: CGRect frame=CGRectMake(0,0,viewSize.width,viewSize.height); UIView* backView=[[UIView alloc] initWithFrame:frame]; backView.autoresizesSubviews=YES; backView.aut...

Android Ignore Flip

I would like to have my android app ignore flip, is that possible? I added android:screenOrientation="portrait" to all of my activities but that is about as effective as the close door button on an elevator. ...

Android change orientation of ImageView

Is it possible to change the orientation of an ImageView to be always PORTRAIT, while the other views in the activity can rotate? Since images don't always look good when rotated... Thanks Chris ...

iPad/iPhone Dev: displayViewController Is Rendering Portrait in Landscape Orientation

-(void)displayFirstScreen { UIViewController *displayViewController=[[UIViewController alloc] init]; displayViewController.view = displaySplash; [self presentModalViewController:displayViewController animated:NO]; [self performSelector:@selector(removeScreen) withObject:nil afterDelay:2.0]; [displayViewController rel...

How To Rotate An MPMoviePlayerController

I am building an iPhone app that plays videos on demand from a web service. The videos play in an MPMoviePlayerController, and everything works fine on the iPhone device. However, when one loads up the iPhone application on an iPad, the videos play Portrait mode (with letterboxing on the top and bottom), instead of Landscape Left like ...

Adding UIViewController.view to another view causes orientation problems

Short version: I'm alloc/init/retaining a new UIViewController in one UIViewControllers viewDidLoad method, adding the new View to self.view. This usually works, but it seems to mess up orientation change handling of my iPad app. Longer version: I'm building a fairly complex iPad application, involving a lot of views and viewcontrollers...

Why doesn't ArrayAdapter filter correctly after screen orientation change?

The layout is basic: an EditText at the top followed by a ListView. EditText has a TextWatcher.onTextChanged implemented so that ArrayAdapter.getFilter.filter is called with the entered text. ArrayAdapter's data is refreshed asynchronously on resume (see code snippet below). Easy enough, works just fine too... right up until the screen o...

TableLayout formatting loss after device rotation

I'm seeing a strange issue with a TableLayout after the device is rotated from either orientation. If you load the view in either portrait or landscape mode, the table loads fine. But once you rotate the device, the columns collapse to just fit their width. I would expect that after rotation, the columns would still stretch to fit the...

UIViewAnimationTransitionCurlUp in landscape mode transitioning right-to-left

I have a view controller that is showing in portrait mode. When you touch the "menu" button, it calls the code below and it flips up to the MainMenu controller. So far, so good. - (void) menuButton: (id) sender { MainMenu_ViewController * viewController = [[MainMenu_ViewController alloc] initWithNibName:@"MainMenu_ViewController...

Set orientation of volume indicator for iPhone glES game.

I'm subclassing UIView using the standard EAGLView framework. When I detect orientation changes, I just add a rotation to my OpenGL stack. However, when the user adjusts the volume using the physical iPhone buttons, the volume indicator is (naturally) not rotated by the GL stack. How do I rotate the volume indicator? ...

How to temporarily lock iPad/iPhone orientation

At a certain point in my application, I would like to temporarily disable the rotation feature - effectively "lock" the orientation in code, similar to what the lock toggle switch does on the iPad in hardware. I'm currently doing: [[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications] and when I'm through, I call: [[...

iphone - On orientation change of iphone , rotate only one control and not all others

Hi, I'm having UIImageView, few lables, buttons etc in a view. Currently I have implementation for portrait mode. When orientation of iphone is changed, I just want to rotate only image view. Rest all other controls should not change. How can I implement the rotation of only image view? ...

Android: notifyDataSetChanged() not updating listview after orientation change

Hello all, I have a semi-complicated problem and hoping that someone here will be able to help me. On a click event I create a thread and start a long-running operation based on this method. After the long-running task is completed, it does a callback to another method, which does a post to the handler: @Override public void content...