Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Weather App Building the Weather UI Start at the Center

Michael Switzer
Michael Switzer
7,488 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">