orientation

UIVIew layout and orientation changes

Hi, I am supporting all orientation for the iPad app. I am adjusting the my view with autoresizingMask for orienttaion changes (main view and tabbar) . But the subviews in the main view are flowing out of the mainview in landscape mode. so i forced a "setNeedsLayout for the mainview, making subviews in mainview to fit into the mainview ...

Orientation in a UIView added to a UIWindow

OK, bear with me. I have a UIView which is supposed to cover the whole device (UIWindow) to support an image zoom in/out effect I'm doing using core animation where a user taps a button on a UITableViewCell and I zoom the associated image. The zooming is performing flawlessly, what I haven't been able to figure out is why the subview i...

How to get NEW width/height of root layout in onConfigurationChanged?

One of our views has a ScrollView as its root layout. When the device is rotated and onConfigurationChanged() is called, we'd like to be able to get the ScrollView's new width/height. Our code looks like this: @Override public void onConfigurationChanged(Configuration newConfig) { Log.d(TAG, "Width: '" + findViewById(R.id.scrollview...

Trouble with onscreen keyboard orientation in iPhone OpenGL ES application.

I need to take keyboard input in my OpenGL ES application, so I just created a hidden UITextField and added it as a subview to the main window along with the view that presents my content. I use the UITextField to control the keyboard and it works fine in a single orientation. I then changed my code to support all orientations by rotati...

android saveinstance saving vector datatypes

hi friends, I am making an application which is currently working perfectly but with only 1 problem... As we all know that the activity is destroyed and recreated when user changes the orientation of the phone... my activity needs to save a vector full of objects wen the activity is recreated... i checked the OnSaveInstance() method and ...

Force iPhone Orientation

I'm making an iPad app and I need to force the orientation to portrait to several parts of the app. I used the undocumented "setOrientation" API and the app was rejected. Is there a documented way to do this? ...

PHP resize image fixed size but maintain orientation

I need to resize images in php using GD to a fixed size but maintain the orientation (portrait/landscape), these are: portrait: 375 x 500px landscape: 500 x 375px Everything I have tried always ignores the orientation and makes them all landscape. Can anyone help? ...

How can I detect device orientation going back and forth through tabs and views?

My application goes back and forth between Portrait and Landscape. I have all of my content(labels, uiimageviews, uilabels) lined up to relocate for both orientations. However, the only change when the device is actually rotated. When I cycle between tabs after it has been rotated it just shows up autosized and not the way I have it s...

Resize view on iPhone when rotating

I have an application with many views. I want only a couple of the views to be able to rotate to landscape when the device is rotated. I found out that I couldn't use (BOOL)shouldAutorotateToInterfaceOrientation because that would rotate every view in my app. I found a solution to this problem here on Stack Overflow but now I have anothe...

How do I reset the scale/zoom of a web app on an orientation change on the iPhone?

I'm having the same problem that a couple of others have had with getting the correct behavior in a web app on an orientation change, and there doesn't seem to be an obvious solution - I've seen this question asked a couple of times on Stack Overflow and no one's yet been able to answer it. When I start the app in portrait mode, it work...

Changing the orientation of tabbar controller Forcefully.

Hai. In my iphone app i won't to change my tabbar orientation to landscape or portrait with out rotating the device, such that when i am pressing rotate button whole tabbar controller need to rotate for either landscape or portrait mode. can any one please give me a suggestion. ...

iPhone video player - Change player orientation (w/ Playlist)

Hi, I need to rotate the video player on iPhone (or let it autorotate). I know the webview solution, but here come the problem, I need to play several video (distant), and WebView can't provide me a stopSelector. I know the fact that setOrientation is a private API. Is there a solution ? ...

Rotation animation is causing error...What is Apple's Updated requirement?

What does this mean and why am I getting this error. Any suggestions on how to fix it? "Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations." ...

Android Image Orientation Issue on Motorola Droid

Hi there, Our app uses the gallery pick action to grab an image from the device to upload to a new blog post. We're seeing on the Moto Droid that images taken in portrait are being sent back to the app in landscape orientation so the image is sideways. AFAIK this only occurs on the Droid. Found this via google, but we need the full si...

Background Activity for Map in Android started again if phone orientation is changed

Hi, i've developed an android app that's fetches an xml file and displays this data via several markers on the map. This works fine so far. The problem right now is that when i switch the orientation of the phone (portrait->landscape or vice versa) the markers disappear for a small moment, the xml processing is started again and then ...

Left-to-right Tree in LaTex, not top-to-bottom?

Hi, I'm looking to draw a tree where the root is on the left and each child node is drawn to the right. It seems that the qtree package can't do this. Any one have any ideas? I've found this document, which seems like it might help, but it's a bit obtuse. ...

Problem with Landscape and Portrait view in a TabBar Application

I have an TabBar app that I would like to be in landscape and portrait. The issue is when I go to tab 2 make a selection from my table then select tab 1 and rotate the device, then select tab 2 again the content does not know that the device rotated and will not display my custom orientated content correctly. I am trying to write a pri...

how to tell if a photo was taken in landscape or portrait? JPEG .NET metadata orientation

Thru VB.net/C# is there any way to read any metadata of off a JPEG to tell if the photo was taken in landscape or portrait? I would assume a camera would need an accelerometer first of all to even tell what direction is up...correct? Assuming there is that kind of intelligence to detect the angle of tilt, how would I go about reading th...

Android - How to get a widget to recognize when the phones orientation has changed

I want my widget to update when the phones orientation has changed. Before android 2.0 you could register your widget to get the intent on orientation change <intent-filter> <action android:name="android.intent.action.CONFIGURATION_CHANGED" /> </intent-filter> but after 2.0 you cannot do it. Android Dev doc says: You can not r...

Determine UIInterfaceOrientation on iPad

I don't need to specify the orientation in this case, I just need to detect it, but I'm having trouble. I have conditional code that should only work in portrait, and if the device is in landscape I need to do something else. Since the deviceOrientation is not necessarily the same as the interfaceOrientation, I can't come up with a way...