Set Rotation throughout application
Is there a way to set the application's orientation (not just in one activity) programatically开发者_StackOverflow?
write every activity onCreate() method
//---change to landscape mode---
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
//---change to portrait mode---
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
may be work..
精彩评论