• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Portrait only?

cr5315

Android Enthusiast
I'm making an app and it will only work in portrait view, but I can't figure out how to disable landscape view. I know it can be done, as I've seen apps in the market that don't have a landscape view. How can landscape be disabled?
 
Have a look in the documentation for the AndroidManifest.xml file for the screenOrientation attribute.

e.g.
Code:
        <activity android:name=".SoundCam" android:screenOrientation="portrait" 
                  android:label="@string/app_name">
        . . .
 
Back
Top Bottom