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
Richard White
1,230 PointsSaving Versions of Adroid Dev Projects
I am a complete novice when it comes to Eclipse or any Development at all for that matter.
Is there a way, in Eclipse to save versions of a project as I go along?
As I "Build a Simple Android App " I clicked "Save As" in Eclipse as an experiment, created a new folder to Save it to, Saved it to the folder I created, and then the MainActivity.java view lit up like a Christmas Tree. Having no idea what was happening I deleted the "Save as" version and ActivityMain went back to normal.
My goal is to refer back to a specific place in the process. I have gotten to the adding random integers and it is working fine. It may not be working fine as I add more functionality and I want the option of starting over from a point that I know it was working.
So, how can I save versions as I Develop? This will also give me the option of experimenting with different Form Wigets, etc as I go along.
Thank you for your help.
2 Answers
Ben Jakuben
Treehouse TeacherThis is an excellent question! There are a few solutions. You can accomplish what you were trying to do by finding your project folder in your workspace folder using Windows Explorer or Finder for Mac. Just copy and paste the whole folder in some backup location. If you right-click on your project in the Package Explorer and select Properties you can find the "Location" in your computer's filesystem under the "Resource" section at the top.
The better solution is to use a version control system like git. GitHub is the most popular site for storing projects using git. We have a whole course on git, but I am also recording a small workshop that will show how to do a simple version for exactly the purpose you have described: creating backups of different versions so you never lose your code. That will be ready when my next project comes out in a little over a month.
Marcus Pierce
8,752 PointsThank you.
Marcus Pierce
8,752 PointsMarcus Pierce
8,752 PointsBen, did you ever record this "small workshop"? Or do I need to take the whole course on git?
Ben Jakuben
Treehouse TeacherBen Jakuben
Treehouse TeacherI did! Using Git is the third stage of the Android Tools project.