jdekeij wrote:
> Hoi
> 
> My application gets re-initialized when the gsm orientation changes
> from portrait to landscape and vice versa. I want to keep the
> application in portrait since it does not make any sense to have it in
> landscape mode. Does anyone know how to prevent the re-intantiation of
> the app and how I can keep the application in portrait even when the
> gsm is in landscape orientation?

Add android:screenOrientation="portrait" to the <activity> element of
the AndroidManifest.xml file, and that activity will stay locked in
portrait mode.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to