1. Download our Official Android App: Forums for Android!

Apps Portrait only?

Discussion in 'Android Development' started by cr5315, Jul 23, 2010.

  1. cr5315

    cr5315 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    68
    Posts:
    434
    Joined:
    Jul 23, 2010

    Jul 23, 2010
    434
    158
    68
    Narnia
    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
    Rank:
    None
    Points:
    63
    Posts:
    148
    Joined:
    Sep 14, 2009

    Sep 14, 2009
    148
    26
    63
    Software Developer (Java, C, Web, Unix)
    Birmingham, UK
    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...