+ Reply to Thread
Results 1 to 2 of 2

Thread: How to show Single Screen Orientation?

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    16

    How to show Single Screen Orientation?

    I dont want users to use portrait mode because my app need to have lot of space so i want to force the user to just use my app in landscape mode Let me know how to do that.

  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    13
    You can use

    Code:
    android:screenOrientation="portrait"
    Tell the Android system that the application should handle orientation and keyboard slide-out events.This is done by adding the following attribute to the activity element:

    Code:
    android:configChanges="orientation|keyboardHidden"

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts