How to set android:screenOrientation=“portrait” for Camera

后端 未结 4 1371
长发绾君心
长发绾君心 2021-01-27 10:35

I am using Samsung Galaxy Note to run a phonegap application. When I take picture, I can see that screen rotates just before entering camera. How can I disable this?

I h

4条回答
  •  甜味超标
    2021-01-27 11:01

    How do you take picture? If you are sending intent to fire up camera application you lose control about orientation changes. Also note, that before going to sleep and locking screen launcher forces your application into portrait with an butt-kick regardles of the settings or overriding methods. Most probably you can not and behaviour on other devices could be different.

提交回复
热议问题