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 Setting Up the Project

Jay Mayu
Jay Mayu
6,805 Points

New SDK creates Activities with fragements

I followed the tutorial and found that SDK no longer creates Activities and related xml file. Instead fragments are created.

Is there any settings that can help me to over come this? or should I copy paste the code from fragement xml file to layout xml file?

Thanks Jay

1 Answer

Dekel Zoaretz
Dekel Zoaretz
14,864 Points

The new Android SDK is "forcing" you to use fragments. the solution that you wrote above is the way to manage with it. I suggest that you will try to use more with Fragments because android are going to that way. Good luck!