set up computer

25
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **

Upload: preston

Post on 22-Feb-2016

57 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: Set up Computer

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 * *

Page 2: Set up Computer

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!

Page 3: Set up Computer

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

Page 4: Set up Computer

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.

Page 5: Set up Computer

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

Page 6: Set up Computer

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 ***

Page 7: Set up Computer

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)

Page 8: Set up Computer

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….

Page 9: Set up Computer

It should look like this when your done.

Page 10: Set up Computer

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.

Page 11: Set up Computer

SETTING UP E

CLIPSE

Page 12: Set up Computer

IN ECLIPSE GO TO HELP AND THEN “INSTALL NEW SOFTWARE”

Page 13: Set up Computer

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)

Page 14: Set up Computer

Then click the select all, and next button to continue

Page 15: Set up Computer

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.

Page 16: Set up Computer

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

Page 17: Set up Computer

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

Page 18: Set up Computer

Should like something like this.

Page 19: Set up Computer

STARTING THE AVD (ANDROID VIRTUAL DEVICE)The AVD can now be started – Select “Test” and press Start

Page 20: Set up Computer

STARTING THE AVD (CONTINUED)Press the Launch button

Page 21: Set up Computer

LOADING THE AVD – 1 STEP

Page 22: Set up Computer

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.

Page 23: Set up Computer

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)

Page 24: Set up Computer

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)

Page 25: Set up Computer

NEXT STEPSTry the Hello World Tutorial –

http://developer.android.com/training/basics/firstapp/index.html

We’ll do a rock paper scissors program