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 Build a Weather App Building the Weather UI Start at the Center

Michael Switzer
Michael Switzer
7,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.

Screenshot: https://drive.google.com/open?id=0B5WRS680YeJqcVRnd0h6RXVkTkR3TEdvNlliaEotSlB3aDMw

This is incorrect, the screen orientation element is set in the “activity” tag. Link to API documentation below

Video: https://teamtreehouse.com/library/start-at-the-center

Android documentation: https://developer.android.com/guide/topics/manifest/activity-element

Screenshot: https://drive.google.com/open?id=0B5WRS680YeJqUy1xUGk5NEdSd0hCYUdMMkI0Z1FPbTl2QUg0

1 Answer

Ben Deitch
STAFF
Ben Deitch
Treehouse 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">