앱을 portrait mode 일때만 실행하고 싶고, 실행 후에도 portrait 전용으로 사용하고 싶어요.
1. Service에서 orientation을 체크해서 activity를 start 하려고 하려고 하는데,
getResources().getConfiguration().orientation 는 activity에서만 사용 가능한가요?
service에서는 항상 0 값으로 들어와서 확인이 불가능하네요.
2. menifest에 android:screenOrientation="portrait" 를 추가했더니,
activity에서도 getResources().getConfiguration().orientation 값이 항상 0으로 들어와요.
서비스에서 orientation을 체크할 수 있는 방법과, 동시에 activity 실행후에도 portrait 전용으로 사용하는 방법 좀 알려주세요..