Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的应用程序中使用 Android 的默认相机。拍照后,我将其显示在图像视图中。当照片以横向模式拍摄时,它应该出现在图像视图中,但当以纵向视图拍摄同一张照片时,它会旋转 90 度。是否可以通过代码检测相机模式(横向或纵向)?