Reputation: 28439
I notice that when you take photos with the native camera app, they come out portrait or landscape (as they should), however, when I take photos in my app using the Camera class, they are always landscape, no matter how I'm holding the device.
I'm really hoping I don't have to monitor the orientation of the device and manually rotate the images... is there a less silly way to get this done?
TIA
Upvotes: 5
Views: 309
Reputation: 362
You dont need to use accelerometer. You can just check the orientation by the time the photo is taken. Developer Android
getResources().getConfiguration().orientation
Upvotes: 1