set up computer
DESCRIPTION
Set up Computer. ** Please be aware screenshots May not match **. Overview. Install Eclipse Install Android Software Development Kit (SDK) Install the JDK 7u9 if necessary Install Android plug-ins in Eclipse Create an Android Virtual Device (AVD) Start an Android Virtual Device (AVD) - PowerPoint PPT PresentationTRANSCRIPT
SET UP C
OMPUTER
* * P L E A S E B E A WA R E S C R E E N S H O T S M A Y N O T M A T C H * *
OVERVIEWInstall EclipseInstall Android Software Development Kit (SDK)
Install the JDK 7u9 if necessaryInstall Android plug-ins in EclipseCreate an Android Virtual Device (AVD)Start an Android Virtual Device (AVD)Start building Android apps!
INSTALL ECLIPSEMost students will have already downloaded and installed
Eclipse.
If not, please go here for a tutorial http://andrewmangle.com/eclipse-java-hello-world/ or directly
to the PDF http://andrewmangle.com/wp-content/uploads/2011/09/Module-0-Eclipse-and-HelloWorld-Tutorial.pdf
GETTING THE SDK
Go to http://developer.android.com/sdk/index.html
Depending on your operating system, your Blue box may have different text. If you do not see your operating system, select ‘other platforms’
• Save it to the desktop so you can find the file.
INSTALLATION After running the installer click next. And next again till you get
“Choose Install Location”.
Install into the C driveFor these purposes it will be called C:\android-sdk
*At home when installing, wherever you install it make sure the path has no spaces for it will cause problems later down the line.After your done click next and install
INSTALLATION CONT.Click next and install it. After installation is complete click finish. The
Android SDK Manager should put up next.
** If you do not have the most update-to-date JDK, you will get a warning. You will be directed to the Java downloads pages – please download Java SE 7u9 (JDK) http://www.oracle.com/technetwork/java/javase/downloads/index.html
*** Only do this step if you encounter the warning when installing the Android SDK ***
ANDROID SDK MANAGER In the manager, only check off the following and nothing else (For now, installing a lot of things will take to long to accomplish)Tools Android SKD Tools Android SDK Platform-tools.Android 4.1.2 (API 16) (Latest stable Android OS)
Documentation for Android SDK SDK Platform Sample for SDK ARM EABI v7a System Image Google APIs (Need for using Google maps in your apps) Sources for Android SDK
Android 2.2 (API 8) (Most common OS for now…) SDK Platform Samples for SDK Google APIs by Google Inc.
Extras Android Support Library Google USB Driver Package (Not compatible with Mac’s – will not be seen
in the next screen shot)
PAUSEDid you select more options than were recommended? Yes – go back! This will make developing in Android more
difficult as a beginner You can always go to the Android SDK Manager in eclipse to
download more
No – excellent. Let’s continue….
It should look like this when your done.
Your screen will list all of the options you select two slides earlier. The screen shot illustrates only the software I wanted to update.
Please review the all the licenses and accept all (if you do not agree with the license, please to not press Accept)
Press the install button - FYI This could take a LOOOOOONG time depending on your Internet download speed.
SETTING UP E
CLIPSE
IN ECLIPSE GO TO HELP AND THEN “INSTALL NEW SOFTWARE”
In the “work with” section enter: ** You must be connect to the Internet **
https://dl-ssl.google.com/android/eclipse/ if https: does not work try http:
Then click add
In the next menu, type in the name “Android” (or whatever you want at home)
Then click the select all, and next button to continue
Once its done installing just restart eclipse. Next, in eclipse, go to window> preferences > android (Mac users – Eclipse -> Preferences -> Android)And in the path, type in
C:\android-sdk (or wherever you saved the android SDK folder.)
(Mac’s will be different) Then click apply and then okay.
** This screenshot does not include Android 4.1.2 and Google APIs for 4.1.2. Your screen will **
Click next again. And accept the terms and license agreement.
SETTING UP T
HE AVD
C R E A T I NG T
H E VI R
T U A L DR O I D
In eclipse go to window> AVD Manager (or click on the Icon in Eclipse on your toolbar)
Then click new.For name enter whatever name you like (Test for this example
purpose).Then for target select Google APIs (Google Inc.) – API Level 16 For SD card > size: you can enter 100 Mib (which is more than
enough for most lightweight projects your working on)Lastly click create AVD
Should like something like this.
STARTING THE AVD (ANDROID VIRTUAL DEVICE)The AVD can now be started – Select “Test” and press Start
STARTING THE AVD (CONTINUED)Press the Launch button
LOADING THE AVD – 1 STEP
LOADING THE AVD – STEP 2STILL WILL TAKE A SUBSTANTIAL AMOUNT OF TIME 30 SECONDS TO 5
MINUTES You will want to keep the emulator (AVD) running during your
Android development, so you only have to wait once. If you connect your Android-enabled device (phone/tablet), you can avoid this entire process.
LOADING AVD – STEP 3Continue to wait (My 2.8 GHz Intel Core 2 Duo with 4 GB of RAM
took 3 minutes to load)… SUCCESS!! Use your mouse to click the OK button and then press the home button (looks like a house)
SUMMARYYou are ready to start developing in Android
We have completed the following:Installed Eclipse (if necessary)Installed Android Software Development Kit (SDK)Install the JDK 7u9 if necessaryInstalled Android plug-ins in EclipseCreated an Android Virtual Device (AVD)Started an Android Virtual Device (AVD)
NEXT STEPSTry the Hello World Tutorial –
http://developer.android.com/training/basics/firstapp/index.html
We’ll do a rock paper scissors program