android setting activity orientation by code
it is possible to set the orientation of an activity in the manifest file.开发者_开发技巧
but is it also possible to do it from code? if so, how?
thanks!
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
精彩评论