Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Camera help in android

I am trying to write an app that will take pictures and then email them I got the preview to work and it seems to be taking the picture but I have designed the app in portrait mode and I cant get the camera to stop taking pictures in landscape mode.

1 Answer

You might need to set the permission in your manifest:

android.hardware.screen.portrait

http://developer.android.com/guide/topics/manifest/uses-feature-element.html