Thanks for your response. I believe both the method you provided can set the screen orientation. But I am looking for some ways to ignore the application's orientation settings in the framework layer, which means modifying some code of the framework and let all the applications appear in a landscape screen.
On 10月12日, 下午5时20分, "pramod.deore" <deore.pramo...@gmail.com> wrote: > 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 <szhai...@gmail.com> 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: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting