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 trialJordan Peterson
5,134 PointsNeed help with activity_main.xml
I was is the activity_main.xml in eclipse and I accidentally deleted all the code in it. I tried closing it and reopening eclipse but it automatically saved it for me. Can someone help me with the code I need?
1 Answer
Damian Ison
6,398 PointsWhat did you have in the code?
You could start a new project and simply copy the code over from the activity_main in the new project into your current one and then re-add your text views and whatever else you have.
Just ensure that the string name will match to the code
Jordan Peterson
5,134 PointsJordan Peterson
5,134 PointsThank you! I got it to work now. :)