Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **"— Presentation transcript:

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

2 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) Start building Android apps!

3 INSTALL ECLIPSE Most 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.pdfhttp://andrewmangle.com/eclipse-java-hello-world/ http://andrewmangle.com/wp-content/uploads/2011/09/Module-0-Eclipse-and- HelloWorld-Tutorial.pdf

4 GETTING THE SDK Go to http://developer.android.com/sdk/index.htmlhttp://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.

5 INSTALLATION After running the installer click next. And next again till you get “Choose Install Location”. Install into the C drive For 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

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

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

8 PAUSE Did 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….

9 It should look like this when your done.

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

11 SETTING UP ECLIPSE

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

13 In the “work with” section enter: ** You must be connect to the Internet ** https://dl-ssl.google.com/android/eclipse/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)

14 Then click the select all, and next button to continue

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

16 SETTING UP THE AVD CREATING THE VIRTUAL DROID

17 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

18 Should like something like this.

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

20 STARTING THE AVD (CONTINUED) Press the Launch button

21 LOADING THE AVD – 1 STEP

22 LOADING THE AVD – STEP 2 STILL 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.

23 LOADING AVD – STEP 3 Continue 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)

24 SUMMARY You 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 necessary Installed Android plug-ins in Eclipse Created an Android Virtual Device (AVD) Started an Android Virtual Device (AVD)

25 NEXT STEPS Try the Hello World Tutorial – http://developer.android.com/training/basics/firstapp/index.html We’ll do a rock paper scissors program


Download ppt "SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **"

Similar presentations


Ads by Google