0

when start purchase flow, app force changed orientation landscape to portrait. I've try to set orientation at runtime, but it doesn't work

EAS
  • 366
  • 2
  • 18
  • This answers your question. [ https://stackoverflow.com/questions/18268218/change-screen-orientation-programmatically-using-a-button#:~:text=Yes%2C%20you%20can%20set%20the,SCREEN_ORIENTATION_LANDSCAPE)%3B%20setRequestedOrientation(ActivityInfo. ] – Rajasekhar Sep 19 '20 at 08:09
  • I had tried already,not working...@Rajasekhar – EAS Sep 23 '20 at 05:50

1 Answers1

0
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
EAS
  • 366
  • 2
  • 18