I wanted to create a copy of my Android project in Eclipse so I can modify the copy without touching the original. So I proceeded to create a new workspace. I thought I was working in the new workspace because the path of the workspace is show at the top of the menu bar in Eclipse but I saw:
1) there are no project files in my new workspace directory so I copied a folder with all the project files in it, including a file I changed this morning with today's date
2) when I went to add a new .jar file via this advice, I saw the old jar file workspace was listed rather than my new workspace directory path when doing the 5th step of the advice.
So here are my questions: 1) do I need a new workspace to avoid overwriting my old project code? 2) do I need to import the project that I touched this morning so that Eclipse recognizes its new location? 3) was it still using the old jar file in the old workspace? did I interpret that correctly?
Should I follow these steps to clean things up as listed here:
Make a new android project choosing "Create project from existing source", making sure that the source directory is indeed outside your workspace (you'll have to live with this for a second). This should a) make the necessary .project/.classpath files in the source directory (which is still outside your workspace for now) and b) make the project show up in your list in Eclipse.
Right click the project in the Package Explorer and choose Delete, making sure that the option to delete files on disk is unchecked when it comes up.
Now import the project like you would any other project (you can do this now because the .project/.classpath files were created in step 1 above). There should be an option when importing for "Copy projects into workspace", so tick that option.
Thanks for your help
As above just duplicate the project. To do so: - in your new workspace:
go to File --> New --> Project... --> Android Project from Existing Code -->
Browse for your original project, make sure you check 'copy project into workspace' box and click finish.