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 Self-Destructing Message Android App Starting the App Adding the Login Screen

changing ribbit project's android version

Hello teamtreehouse! I am currently trying to begin learning ribbit project, but confused about using fragments which are not used in the tutorials. May I use older versions of android, lets say, 3.0 and do the same stuff as Ben?

1 Answer

Masum Bergmann
PLUS
Masum Bergmann
Courses Plus Student 4,129 Points

What I think is happening to you is that eclipse generates (unwanted) fragments whenever you create an activity (which does not happen with Ben's version of eclipse). This has nothing to do with the Android version, but everything to do with the Eclipse version.

There is a simple fix...

  1. Go to your unwanted newFragment_layout xml view. Copy the code.

  2. Go to newActivity_layout xml view, and paste the code (overwriting the existing code)

  3. Delete the newFragment_layout, and delete the code referring to that fragment inside the NewActivity.java file.

A more detailed description is given by Ben here: http://stackoverflow.com/questions/22289164/adt-blank-activity-created-with-fragment-activity

Hope this helps!