Moving with Eclipse to a new workstation
The hard drive on my laptop started clicking quite ominously, so I figured it was time to order a new hard drive. I backed up my photos to the cloud (Flickr and Picasa) and backed up all my music and docs to Dropbox and Google Docs and waited for the new hard drive to arrive. Files are files: you just need to keep a regular backup; and email already lives in the cloud. That leaves my development environment.
Here are the steps I've followed to move my development set up to a new computer.
1. open up Synaptic and download Eclipse. There are several Eclipse packages available. I selected the big Eclipse package which includes the JDT (Java Developer Tools) and PDE (plug-in development tools). I've had trouble before when I selected one of the smaller eclipse packages and tried to add the plug-ins I needed separately.
2. Download or copy over the Android SDK.
3. Put the Android SDK tools directory in my PATH in .bashrc
b. then type 'bash', so the new .bashrc takes effect.
c. type 'adb', to make sure the android SDK tools are in my PATH.
4. open up Eclipse and go to Help->Install New Software... click "add" to add a new tools depository, and add the android developer tools repository: https://dl-ssl.google.com/android/eclipse/.
b. once the new depository is loaded, select the Android Developer Tools and Android DDMS and wait for Eclipse to download and install them.
5. moved my private signing key over.
6. moved over my projects and imported them through File->Import... ->Existing Projects into Workspace.
b. if you get any errors, try right clicking on the project and select Android Tools->Fix Project Properties
7. Export an app and sign it with the key you moved over. (this is the scary part, if you lose the signing key you used to originally sign your app, you will not be able to provide any more updates to your app in the Android Market!)
a. File->Export ... Android->Export Android Application --> select the project you want to Export --> Use existing keystore, (click location to locate it.) type in your password....
8. Plug your dev phone into your workstation and install the app.
a. adb install -r /path/to/YourApp.apk
Whoo Hoo! The development environment (for android at least) is all moved over.