Importing Source Code into an Android Project


Bear with me through a hypothetical for a second. Your friend has sent you a .zip file containing the code to his latest Android Application and he wants you to test and otherwise take a look at it for him. How do you get this application on you Android device? How do you import this source code into eclipse so that it is recognized as an Android application?
 

Importing an archive file as an Android Application

  1. Unzip the code to a directory.  I keep all my projects in one place under their own folders.  You should probably do the same.
  2. Open Eclipse
  3. Goto File > New > Project
  4. Select Android Project from the resulting menu
  5. Select create project from existing source
  6. Click browse and select the unzipped directory you created in step 1
  7. Eclipse should automatically fill in the rest of the information
  8. Choose finish

Your project should be imported and ready to go to be used as normal.  Enjoy