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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![SANKET THAKUR](https://secure.gravatar.com/avatar/d4af129cec96489c456f2b60a8763501?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
SANKET THAKUR
Android Development Techdegree Student 580 PointsProblem on adding a new activity
Whenever I add a new activity (blank or other) in my layout two xml files are generated. One is actvity_<name_of_Activity_>.xml and other is content_<name_of_Activity>.xml. How do I resolve this problem?
1 Answer
![Niyamat Almass](https://uploads.teamtreehouse.com/production/profile-photos/2312382/micro_Niyamatdff.jpg)
Niyamat Almass
8,176 PointsSolutions
- When you create a project for the first time you have to choose empty activity instead of blank activity. Empty activity doesn't create content_main res file.
Hope this helps!
SANKET THAKUR
Android Development Techdegree Student 580 PointsSANKET THAKUR
Android Development Techdegree Student 580 PointsThanks Niyamat Almass . It worked. Though, can you tell me why two xml files are generated when we choose the Blank Activity.