Вы находитесь на странице: 1из 9

_______________________________________________________________________________________________________________________________________________________________________________________________________________

Setting up an Android Development Environment

Step #1: Install the Java Development Kit (version 6).................................................................1


Step #2: Install the Eclipse IDE...................................................................................................1
Step #3: Install the Android Development Toolkit (ADT) Eclipse Plugin...................................2
Step #4: Install the Android SoItware Development Kit (SDK)..................................................3
Step #5: Install the Android Sample Applications.......................................................................4
Step #6: Open the 'Spinner sample application.........................................................................5
Step #7: Create an Android Virtual Device (AVD)......................................................................6
Step #8: Run the 'Spinner project in the Android Virtual Device..............................................7
Step #1: Install the Java Development Kit (version 6)
nstall the Java Development Kit (version 6) from
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-
419409.html#jdk-6u31-oth-JPR
Step #2: Install the Eclipse IDE
Download "EcIipse CIassic" from http://www.eclipse.org/downloads/download.php?
file=/eclipse/downloads/drops/R-3.7.2-201202080800/eclipse-SDK-3.7.2-win32.zip
Eclipse doesn't have an installation program - you simply extract the archive to a convenient location (e.g.
C:\eclipse).
After extracting the Eclipse directory, right-click on the Eclipse file and paste a shortcut on your Desktop.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
Step #3: Install the Android Development Toolkit (ADT) Eclipse Plugin
Double-click the Eclipse shortcut to launch Eclipse.
A dialog will appear like the one below. Simply choose a workspace directory and check "Use this as the
defauIt and do not ask again. The default should be fine.
n Eclipse, select HeIp > InstaII New Software....
Click Add, in the top-right corner.
n the Add Repository dialog that appears, enter ADT PIugin for the Name and the following URL for the
Location: https://dI-ssI.googIe.com/android/ecIipse/
Click OK
n the Available Software dialog, select the checkbox next to DeveIoper TooIs and click Next.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
n the next window, you'll see a list of the tools to be downloaded. Click Next.
Accept the license agreements, and then click Finish.
f the installation complains about some content being unsigned, just click OK to continue.
When the installation completes, restart Eclipse by clicking Restart Now.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
Step #4: Install the Android Software Development Kit (SDK)
When Eclipse starts up again, click Next and then Finish on the following dialog. This will initiate the
process of downloading the Android Software Development Kit (SDK).
For the next dialog, check Accept AII and then click InstaII
Downloading the SDK takes a few minutes:
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
Step #5: Install the Android Sample Applications
Then, in Eclipse, select Window > SDK Manager.
Check off SampIes for SDK and click the InstaII 4 packages... button.
Then, select Accept AII and then click InstaII
Close the Android SDK dialog.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
Step #6: Open the 'Spinner" sample application
Select FiIe > New > Project...
Then, select Android > Android SampIe Project and click Next> and then Next>.
Select "Spinner and open that project.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
Step #7: Create an Android Virtual Device (AVD)
This step creates an "Android Virtual Device (i.e. a profile for the Android Emulator).
n Eclipse, select Window > AVD Manager and then click New....
Enter the information shown in the screenshot below.
Select Create AVD and close the dialog.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT
Step #8: Run the 'Spinner" project in the Android Virtual Device
n Eclipse, right-click on the Spinner project in the left-hand pane, and click Run as... > Android
AppIication.
After a long delay (depending on how fast your computer is) the Android Virtual Device should appear
with the "Spinner application running:
f the "Spinner application does not appear, you may have to manually start it on your Android Virtual
Device as if it were any other installed Android application. To do this, unlock the Android Virtual Device
by dragging the lock icon on the AVD's screen to the right and releasing. Then, tap the menu button and
tap "Spinner.
SETTNG UP AN ANDROD DEVELOPMENT ENVRONMENT