Portrait only?


Last Updated:

  1. cr5315

    cr5315 Well-Known Member Developer This Topic's Starter

    Joined:
    Jul 23, 2010
    Messages:
    435
    Likes Received:
    158
    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?
     

    Advertisement
  2. markb

    markb Well-Known Member

    Joined:
    Sep 14, 2009
    Messages:
    148
    Likes Received:
    26
    Have a look in the documentation for the AndroidManifest.xml file for the screenOrientation attribute.

    e.g.
    Code (Text):
    1.  
    2.         <activity android:name=".SoundCam" android:screenOrientation="portrait"
    3.                   android:label="@string/app_name">
    4.         . . .
    5.  
     

Share This Page

Loading...