简体   繁体   中英

How to set camera orientation locked to portrait on android

I'm building a scanner app using this scan library , how do I set the orientation in the library code to set the camera orientation locked to portrait? I've tried Lock Camera orientation to portrait and setting camera orientation to portrait not working

Don't use third party libs

https://developer.android.com/guide/topics/media/camera

You can use the official android docs to learn how to use and then apply what you got from the other links. If you want to edit and crop you cand find more information in those links:

How to crop and rotate image programmatically in android?

Android: Edit image intent

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM