orientation

Android app resets on orientation change, best way to handle?

So I am making a basic chess app to play around with some various elements of android programming and so far I am learning a lot, but this time I am lost. When the orientation of the emulator changes the activity gets reset. Based on my research the same thing will happen anytime the application is paused/interrupted, ie. keyboard chang...

Positioning objects in views during re-orientation in iPad

iPad Gurus: Apple wants us to support all orientations. I take that to mean that a particular layout should either rotate so that all objects are positioned relatively the same OR, if that doesn't look good, then they ought to be repositioned, OR two views ought to be designed and built. If I rely on the built-in rotation mechanism, the...

Check orientation on Android phone

How can I check if the Android phone is in Landscape or Portrait? ...

Fix keyboard orientation in landscape iPad app (upside down keyboard)

I'm converting a landscape (UIInterfaceOrientationLandscapeRight) iPhone app to be a universal app. So far I've got the orientation working properly: the iPad version will launch with the right splash graphic and start in the right orientation (LandscapeLeft or LandscapeRight) depending on how the user is holding it. But: when I trigge...

Can I change the orientation of the in-app purchase login view?

I was wondering if it is possible to change the orientation of the in-app purchase login view. In my app, all of the messages coming from the iTunes store show up oriented according to my app settings. My app is in landscape mode, and the messages show up likewise. However, when the user needs to login to iTunes to initiate the purcha...

Programatically access orientation of an iPhone video

I need to access a video returned by the UIImagePickerController and know if it was recorded portrait or landscape. I've seen references to mov_read_tkhd but I'm not sure if that will do the job, or indeed how to include the necessary libraries. ...

Android VideoView orientation change

I am having a VideoView playing video on my Android app. When I try it on the potrait orientation, the video fills the screen. But when I change the orientation to landscape, the video takes up only half the screen space. I am using FILL_PARENT, FILL_PARENT as the layout params. Is there a way I can have the video fill the screen in bot...

Switch between multiple views while respecting orientation

Hello! I have an MVC application with a single model and several views (something like skins). I want the user to be able to switch the views and I can’t get it working with interface orientation. The most simple approach looks like this: - (void) switchToADifferentView: (UIView*) newView { // self is a descendant of UIViewControlle...

ipad SplitView Orientation in DetailView

I am using this code in the DetailView.m of a splitview app. Now the orientation changes occur only when the device is rotated. The detection does not take place when the app is launched. I also get this warning warning: 'RootViewController' may not respond to '-adjustViewsForOrientation:' What change do I need to make the app adjust t...

Delphi control/way to print text sideways

I need a way to have a label (or something like it) print sideways. I would really like it to work at design time if at all possible. Is there any controls / mechanisms that anyone knows of to do this? (Not .net controls please) ...

iphone/ipad application - taking screen shot

I successfully implemented an application that works on ipad as well as on iphone. In that I provided option to user to send the screen shot of the application as mail attachment. Even that is functioning well. But my code is taking screen shot irrespective of orientation. The image i'm getting is always in portrait mode. I want to take...

How to toggle orientation lock in android?

I want to create checkbox in my preference Activity that allows user to toggle orientation change. In similar questions people write only about complete orientation lock (by overriding onConfigurationChanged method or adding configChanges in AndroidManifest.xml) or orientation enforcing ( by setRequestedOrientation ). Is there a way ...

iphone: reloading webview with rotation

i'm using uiwebview to display a very basic html page with just text. i want to support landscape and portrait orientations but i'm having a problem with resizing when the orientation changes. specifically, when the iphone is rotated to landscape, it zooms in on the text (i want the text size to remain the same and for it to fill the wid...

shouldAutorotateToInterfaceOrientation doesn't work on first launch after fresh app install

When the app I'm working on is installed either via Ad-Hoc thru iTunes or built directly to the device, upon launching for the first time, the only view controller in my app that responds to orientation changes doesn't receive calls to shouldAutorotateToInterfaceOrientation: with a landscape argument passed in; debugging shows that it's ...

iPad launch orientation

After reading many posts, I still haven't got a clue how to solve this problem... The first view of my app is a tableViewController. I override (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation and it always returns YES. If I hold my iPad upright under landscape orientation, it rotates ri...

Best way to programmatically detect iPad/iPhone hardware

The reason I need to find out is that on an iPad, a UIPickerView has the same height in landscape orientation as it does in portrait. On an iPhone it is different. The iPad programming guide introduces an "idiom" value to UIDevice: UIDevice* thisDevice = [UIDevice currentDevice]; if(thisDevice.userInterfaceIdiom == UIUserInterfa...

Horizontal UITableView

I want implement a layout in my ipad application that has a uitable view that scrolls left and right rather then up and down : So rather than row 1 row 2 row 3 ( scrolling vertically ) It would be : row 1, row2, row 3 (scrolling horizontally ) I've seen that UItableView is designed to only do vertical scrolling so doing a transfo...

Default.png images and iPad.

I'm about to submit my first iPad app, and I have 2 questions regarding to Default.png images. I would prefer a "splash screen" showing some artwork of my app, instead of the UI as if it was loaded, the app is a bit heavy and I've seen the users dispair when the UI is apparently loaded but it's not working. Does anyone know if apple is...

ipad application rejected due to only one orientation support

i developed first ipad application. i want to fix orientation to landscape. can i fix only one orientation to ipad application?? ...

Horizontal Orientation of DataGrid in Silverlight 4

Hello, I want to change the orientation of the datagrid to horizontal in silverlight 4. i.e. I want to display the headers on the left hand side and the values corresponding to it on right hand side. how can I do it? Thanks. ...