Hi, you can use this in .java as //change to landscape mode setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
//To change to portrait mode setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); Or You can also used directly in manifest file inside activity as android:screenOrientation="landscape" Hope it will help you. On Oct 12, 8:16 am, hairui <[email protected]> wrote: > Hi everyone, > > I am a developer on an android porting project. While looking for ways > to 'lock' the screen orientation in the framework layer, I found some > posts here talking about the similar topic. > > I guess the key is to modify the file 'lockscreen.java' or nearby, but > i know no more about what to do next. > > So I write this mail to see if anybody can give me more hints. My aim > is to 'lock' the screen orientation, which means let the framework > ignore the applications' orientation setting, and just use the > 'landscape' one. > > Any help is appreciated. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
