Force “portrait” orientation mode

I’m trying to force the “portrait” mode for my application because my application is absolutely not designed for the “landscape” mode. After reading some forums, I added these lines in my manifest file: <application android:debuggable=”true” android:icon=”@drawable/icon” android:label=”@string/app_name” android:screenOrientation=”portrait”> But it doesn’t work on my device (HTC Desire). It switches from “portrait” lo “landscape”, ignoring the … Read more

How to develop or migrate apps for iPhone 5 screen resolution?

The new iPhone 5 display has a new aspect ratio and a new resolution (640 x 1136 pixels). What is required to develop new or transition already existing applications to the new screen size? What should we keep in mind to make applications “universal” for both the older displays and the new widescreen aspect ratio? … Read more

How to get the screen width and height in iOS?

How can one get the dimensions of the screen in iOS? Currently, I use: lCurrentWidth = self.view.frame.size.width; lCurrentHeight = self.view.frame.size.height; in viewWillAppear: and willAnimateRotationToInterfaceOrientation:duration: The first time I get the entire screen size. The second time i get the screen minus the nav bar. 18 s 18 How can one get the dimensions of the … Read more