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 Implementing Designs for Android Customizing a ListView for the Inbox Fun with Refactoring

Refactoring Ribbit Package

Hi Ben,

So when we refactored our code into specific packages, we had to modify the AndroidManifest.xml but there was this line of code that you did not edit so I was just curious to know if this must be modified as it still contains the old package structure value in the android:value attribute.

                android:value="com.teamtreehouse.ribbit.MainActivity" />

Thanks, Ankit

1 Answer

Ankit, I believe that you will find that is for device(legacy really) support. The android Version Honeycomb v3.0 was the first version to use in app navigation with up/back as ben mentioned in the video. So to make it work on older versions of android you must have the meta-data tag with those attributes for navigation. The link is here Android Navigation Documentation. Included in that you will need to add the appcompat package into your build path. I am pretty sure that is why that code did not get edited. Here is my code: <p>

            android:screenOrientation="portrait" >
            android:value="com.example.ribbit.LoginActivity" />

Ok, thanks! :)