Search code examples
androideclipseprojects-and-solutions

Android - copy existing project with a new name in Eclipse


I'm using Eclipse. Say I have a project 'ProjectA' in the eclipseworkspace (in a folder ProjectA). I want to copy the project but with a new name (ProjectB) and have all the references in the new project adjusted. I can't find much help for what I thought would be a vary basic operation. I want to try out variations on the original design/code and creating a copy seemed the obvious way to go about it.

Any suggestions please.


Solution

    1. Copy your project to a new one (Ctrl+c & Ctrl+v).

    2. Change the package-name in your manifest

    3. Rename your main package with refactor. Don't forget to select.

    4. Change your application name in manifest

      application android:icon="@drawable/icon" android:label="**new name**"