Exercise 3.1 Setting up your AndroidStudio and creating the "GeoQuiz" app and running it on emulator.
TiP: read your book's reading assignment prior to do this exercise
STEP 1: Follow the directions for installation at http://developer.android.com/sdk/index.ht
- NOTE: if you have trouble you must come to physical office hours for help ASAP. you can not wait on this
- System Requirements: see http://developer.android.com/sdk/index.html#Requirements
STEP 2: Create an App -- you will create the "GeoQuiz" app in Chapter 1 of your Android Studio book and run it on an emulator AVD.
- 2.1: how to create an app (http://developer.android.com/training/basics/firstapp/creating-project.html) ALSO --look at chapter 1 of your book
- 2.2: how to run the app (http://developer.android.com/training/basics/firstapp/running-app.html ) ALSO --look at chapter 1 of your book
Run on the Emulator
Whether you're using Android Studio or the command line, to run your app on the emulator you need to first create an Android Virtual Device (AVD). An AVD is a device configuration for the Android emulator that allows you to model a specific device.
Create an AVD
- Launch the Android Virtual Device Manager:
- In Android Studio, select Tools > Android > AVD Manager, or click the AVD Manager icon in the toolbar.
- Or, from the command line, change directories to sdk/ and execute:
tools/android avd
Note: The AVD Manager that appears when launched from the command line is different from the version in Android Studio, so the following instructions may not all apply.
Figure 1. The AVD Manager main screen shows your current virtual devices.
- On the AVD Manager main screen (figure 1), click Create Virtual Device.
- In the Select Hardware window, select a device configuration, such as Nexus 6, then click Next.
- Select the desired system version for the AVD and click Next.
- Verify the configuration settings, then click Finish.
For more information about using AVDs, see Managing AVDs with AVD Manager.
Run the app from Android Studio
- In Android Studio, select your project and click Run from the toolbar.
- In the Choose Device window, click the Launch emulator radio button.
- From the Android virtual device pull-down menu, select the emulator you created, and click OK.
It can take a few minutes for the emulator to load itself. You may have to unlock the screen. When you do, My First App appears on the emulator screen.
- Launch the Android Virtual Device Manager:
STEP 3: additional reading ---(read documentation at http://developer.android.com/tools/studio/index.html and follow directions for setup).
DELIVERABLE: Create Youtube video of running the dummy applicaiton in android studio. Turn in to BB->Exercises->Exercise 3.1 the URL to your Youtube. See info on how to do this.