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

后端 未结 4 1341
长发绾君心
长发绾君心 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:24

    You need to add the permission on the manifest:

    Doc android of balise uses-feature

    For example, if your app requires portrait orientation, you should declare so that only devices that support portrait orientation (whether always or by user choice) can install your app. If your application supports both orientations, then you don't need to declare either.

提交回复
热议问题