I want my android application to be only run in portrait mode ? How to do that? Please Help.
Unity only runs Android apps in one orientation, and you set it in Android's Project/Build Settings along with everything else. I don't understand what your problem is.
Here i found code in Kotlin
https://tutorial.eyehunt.in/android/set-entire-android-application-portrait-mode-portrait-orientation-kotlin/