Android: allow portrait and landscape for tablets but force portrait on phone?

🆕 Last Update : 27 September, 2022 📅

Halil Özel
3 min readNov 14, 2019

Hello Everyone, 🙋🏻‍♂️

I want to talk about a situation that I encountered while developing an Android application. This is a different article. I will explain the solution of a problem that I have encountered.

I want to use portrait mode on Android phones and both portrait and landscape mode on tablets. I started researching how to do it.

Android Mobile Portrait Mode

I found a very nice answer on StackOverflow site:

We will do the solution by following the steps there.

Android Orientation

I recommend that you examine the structures that should be considered when developing an Android application.

--

--

Halil Özel
Halil Özel

Written by Halil Özel

Android Developer 👨🏻‍💻

Responses (1)