screen-rotation

Saving/Restoring custom ArrayList on Android screen rotate?

I have a custom ArrayList of MovieItems that I want to save and restore on screen rotation. I checked out this post - How to save custom ArrayList on Android screen rotate? - and implemented and adapted some of the codes but the saving and restoring don't seem to be working for me. 1) Saving the...

How to save/restore(update) ref to the dialog during screen rotation?(I need ref in onCreate method of activity.)

protected Dialog onCreateDialog(int id) { ... AlertDialog.Builder adb = new AlertDialog.Builder(this); ... mydialog = adb.create(); ... } But onCreateDialog runs after onCreate. If you want to be backwards compatible, you do it as follows. class MyActivity extends Activity { protected static final...

Fragment calling fragments loosing state on screen rotation

Hi i created a project with a default "Navigation Drawer Activity". So i have a MainActivity with a fragment with is replaced for each item on menu. One of the menus is "Customers" with shows a list of customers. From customers fragment i can see the Interests of this customers, with is a Fragment...

Android Front Camera recording video but plays upside down…!

I have managed to create an android application to record videos but the problem is with the orientation of front camera video . The output is not the as per requirements . It gets automatically rotated . Application orientation is landscape . So, I need to record using front cam in landscape mode....

iPhone view controller view shifted down 20 pixels when rotating to landscape

I am trying to implement a custom tabbarcontroller using a UIViewController and a UITabBar. Everything is working fine so far, except when I rotate the device to landscape, the UIViewController shifts the entire view down 20pixels, creating a black bar between the status bar and the view. Even when...

Rotate screen when HTML5 video playing in fullscreen

First of all, i would like to apologize for my bad level in english, and for all the mistakes i might have done in this post. I'm also a "junior" in Android devloppement (i'm doing this on my free time), i'm not good and experienced enough yet ^^ so sorry if i might have some difficulties to...

Hiding UISplitViewController overlay in portrait

In adopting the new UISplitViewController I'm trying to make a change a default behaviour that occurs when using the UISplitViewControllerDisplayModeAutomatic mode. When working in portrait I want the primary overlay to hide when the user triggers a push to the detail side. By default the overlay...