Put it into your manifest.
The orientation will be portrait, but if user's phone is upside down, it show the correct way as well. (So your screen will rotate 180 degrees).
The system ignores this attribute if the activity is running in
multi-window mode.