I've an application running successfully, the application runs only in portrait mode only, if i'm going to change this to landscape, it's also possible to change. But, it won't never come to portrait mode. How can i use these (portrait & landscape) in same time? Is it possible? Thanks in advance.
Asked
Active
Viewed 99 times
2 Answers
0
if you want the app to run in land and port you don't need to place anything just take out the code line that is forcing it. Hope it helps

PedroAGSantos
- 2,336
- 2
- 17
- 34
0
use this code where you have to change portrait to landscape,
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
use this to change landscape to portrait.
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

ilango j
- 5,967
- 2
- 28
- 25