Download
set up computer n.
Skip this Video
Loading SlideShow in 5 Seconds..
Set up Computer PowerPoint Presentation
Download Presentation
Set up Computer

Set up Computer

209 Vues Download Presentation
Télécharger la présentation

Set up Computer

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
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.pdf

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

  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/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. Click next again. And accept the terms and license agreement. • 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 **

  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