[英]Device Rotation on fixed orientation Android
我正在Android 2.2中显示相机活动,并且将屏幕方向锁定为横向模式。 有没有办法让设备旋转?
我的意思是,getOrientation()始终返回LANDSCAPE,而getRotation()始终返回1。即使将方向锁定为横向模式,如何获得设备的实际旋转度?
您可以使用SensorManager
类,请参见http://www.workingfromhere.com/blog/2009/03/30/orientation-sensor-tips-in-android/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.