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!
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
Michael Switzer7,490 Points
Incorrect AndroidManifest value
In the “Build a Weather App” series, “Start at the center” video: near the end, the instructor says to set the screen orientation element in the “application” tag in the AndroidManifest.xml file.
This is incorrect, the screen orientation element is set in the “activity” tag. Link to API documentation below
Android documentation: https://developer.android.com/guide/topics/manifest/activity-element
Ben DeitchTreehouse Teacher
Hey Michael, good catch! I'll get this in the pipeline to get fixed. In the meantime for anyone else visiting this post, the 'screenOrientation' property should should look like:
<activity android:name=".MainActivity" android:screenOrientation="portrait">