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 Self-Destructing Message Android App Using Fragments for Tabs Modifying Tabs from the Template

Rodrigo Rocha
Rodrigo Rocha
4,042 Points

Some things are different now

Hello, I think that some things are different from this video but there is no a problem. There is a new class called PlaceholderFragment that makes the things more easily and the public Fragment getItem(int position) method in the SectionsPagerAdapter class have only one line of code now.

The PlaceholderFragment class was in the MainActivity class just like SectionsPagerAdapter class. I extracted this class in the same way that was made in this video. But this time when you organize imports, you will have two options to choose from. v4 support and v13 support libraries.

Rodrigo Rocha
Rodrigo Rocha
4,042 Points

Hi Ben Jakuben maybe you'll need to review somethings here.

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Thanks for the heads up! I've started the process of refreshing my courses because of these types of differences. I'm about to publish a new version of Build a Simple Android App and will hopefully get to this course before too long. Let us know here in the Forum if you come across any differences that keep you from progressing.