Actually, that won't work. This is because we do not know what orientation 
is in when the app started.

My current solution is to detect what orientation it is in, 
then setRequestedOrientation to the current orientation. This works nicely.

在 2012年7月9日星期一UTC+8下午7时14分20秒,abhijeet tomar写道:
>
> Ya it is right...you have to put 
> android:screenOrientation="portrait|landlandscape"
> in each activity... 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to