Android keep orientation portrait

Option 1

In the AndroidManifest.xml add ‘screenOrientation’ property in activity tag

Option 2

In the onCreate function add the following line of code before setContentView() function

 

  Like
Author: bm on November 3, 2016
Category: Android
Tags: ,

Your comment:

Your Name

Comment:




Last articles