Top "Android-orientation" questions

The orientation of the screen, i.e. landscape (wider than tall) or portrait (taller than wide)

How to Disable landscape mode in Android?

How can I disable landscape mode for some of the views in my Android app?

android android-manifest android-orientation
Force an Android activity to always use landscape mode

I am using the Android VNC viewer on my HTC G1. But for some reason, that application is always in …

android landscape android-orientation
How do I disable orientation change on Android?

I have an application that I just would like to use in portrait mode, so I have defined android:screenOrientation="…

android android-activity android-orientation
How to fix layout orientation to vertical?

How to fix layout orientation to portrait and do not allow changing from portrait to landscape during run time?

android android-orientation
Fool-proof way to handle Fragment on orientation change

public class MainActivity extends Activity implements MainMenuFragment.OnMainMenuItemSelectedListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.…

android android-fragments android-orientation
Android: Temporarily disable orientation changes in an Activity

My main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy …

android screen-orientation android-orientation
Background task, progress dialog, orientation change - is there any 100% working solution?

I download some data from internet in background thread (I use AsyncTask) and display a progress dialog while downloading. Orientation …

android orientation android-orientation
Restoring state of TextView after screen rotation?

In my app I have TextView and EditText. Both have data in it. When the screen orientation changes the data …

android android-layout android-orientation onconfigurationchanged
Changing number of columns with GridLayoutManager and RecyclerView

Inside my fragment I'm setting my GridLayout in the following way: mRecycler.setLayoutManager(new GridLayoutManager(rootView.getContext(), 2)); So, I just …

android android-orientation android-gridlayout android-recyclerview
Android VideoView orientation change with buffered video

I'm trying to replicate the functionality of the latest YouTube app in the Android marketplace. When watching a video there's …

android android-orientation android-videoview