[android-developers] Re: Can i specially forbids switching orientation when rotating phone on my app?

2009-10-25 Thread Philip
Thanks a lot. I solved by using setRequestedOrientation. On 10月25日, 上午3时35分, Wayne Wenthin wrote: > You might want to do this during onCreate > > setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); > > or landscape whichever it is that you want > > > > On Sat, Oct 24, 2009 at 2:22

[android-developers] Re: Can i specially forbids switching orientation when rotating phone on my app?

2009-10-24 Thread Wayne Wenthin
You might want to do this during onCreate setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); or landscape whichever it is that you want On Sat, Oct 24, 2009 at 2:22 AM, Philip wrote: > > When i chick a button on my app , the method below will be happened. > ***

[android-developers] Re: Can i specially forbids switching orientation when rotating phone on my app?

2009-10-24 Thread RichardC
The element in your AndroidManifest.xml supports the android:screenOrientation property see: http://developer.android.com/guide/topics/manifest/activity-element.html -- RichardC On Oct 24, 10:22 am, Philip wrote: > When i chick a button on my app , the method below will be happened. > *