문제

I've got an application , I want to lock the screen when I pressed a button. So I want to know how can I set the screen rotation to 270. The application use android 1.6(API 4).So I can't use

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE);

When the screen is landscape and orientation!=Surface.ROTATION_90.

도움이 되었습니까?

해결책

It seems you can't do this on API 4. You can only use SCREEN_ORIENTATION_REVERSE_LANDSCAPE from API 9.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top