Android emulator setup

Introduction

You will need an Android test device for this session.

This section covers deploying an emulator for future hands on exercises.

If something goes wrong and you want to start again with a fresh device, instructions are included for redeploying the os image.

Note: Screenshot precedes the steps in this lab.

Part 1: Downloading the installer

  1. On your laptop,
    • Go to https://developer.android.com/studio/ 
    • Find and click on Download Android Studio
      • Note: If the correct os version is not displaying click on download options and download the correct one


NOTE: Installation of Android Studio is NOT on ControlCenter.

 

  1. Check the box next to I have read and agree with the above terms and conditions
    • Click on Download android Studio for your platform

Part 2 : Windows installation

  1. Go to your downloads folder
    • Right click on your recently downloaded file and click on run as and administrator
    • Click on yes to allow the installer to make changes to your machine
    • Click next on the welcome to android studio setup window
  1. Make sure both Android studio and android virtual device are selected and click next
  1. Select your installation location and click Next
  1. Choose your start menu shortcut configuration and click Install
  1. On the installation complete window click Next
  1. In the completing Android Studio Setup window check the Start Android Studio checkbox and click finish
  1. In the Import Android Studio Settings prompt Select Do not import settings radio button and click OK

Part 3 Mac OS installation

  1. Mount and open your downloaded dmg image.
    • Drag the Android studio icon into the Applications folder.
  1. From your applications folder double click your Android Studio icon
  1. Click on Open if you get a security prompt

Part 4: Initial configuration

In this part we are setting up a project and a virtual device with the following settings:

  • API Level: 29
  • ABI: x86_64
  • Target: Android 10.0 (Google Play)

api level 29 mas the project compatible with android 10 onwards.

The abi is a image classification for processor command type, in this case for native x86 64 bit, so the commands can be executed in your pc or mac without translation. this is not mandatory but it's important for app compatibility, as these settings are visible to developers and they can choose which image types to make their apps available to. this is the case with the salesforce app that gets used in some of our labs.

 

  1. If prompted, in the Data Sharing window click on Send usage statistics to Google

 

  1. In the Android Studio Setup Wizard, in the Welcome window
    • Select Next
  1. In the Android Studio Setup Wizard  in the Install type window
    • Make sure Standard setup radio button is selected
    • Click Next
  1. On the Select UI Theme window
    • Select your preferred UI theme
    • Select Next
  1. On the Verify Settings window
    • Select Finish
  1. In the Downloading Components window,
    • This will take about 5 - 10 minutes
      • On a Mac, you might be prompted to enter your credentials for HAXM installation wants to make changes
        • Enter your Username and Password and select OK
        • You might also be required to go to Security and Preferences to allow apps to be downloaded
    • When finished, select Finish
  1. In the Welcome to Android Studio window
    • Select Create New Project
  1. In the Choose your project window,
    1. Select No Activity
    2. Select Next
  1. In the Configure your project window:
    • In the Name field put something significant i.e. "Horizon Integrationt"
    • In the Minimum SDK dropdown menu, select API 29: Android 10.0 (Q)
    • Click Finish
  1. On your Laptop / Desktop
    • Find your Android Studio window
    • In the top right corner , select the AVD Manager icon on the toolbar
  1. In the Your Virtual Devices window
    • Select + Create Virtual Device
  1. On the Select Hardware window
    • Select the Pixel 4 Image marked with Play Store and size 5.7"
    • Select Next
  1. In the System Image window:
    • Select the x86 Images tab
    • Select the R Download next  the x86_64 version , API Level 30
  1. In the License Agreement window
    • Select the radio button next to Accept
    • Select Next
  1. In the  Component Installer window
    • Wait for the download to complete (5 to 10 minute Install process)
      • When the progress bar shows Done
    • Select Finish
  1. In the Select a system image window
    • Make Sure "R" x86_64 is selected and click Next
  1. In the Verify Configuration ,
    • Note the default Name of the device
    • Give a name to your virtual device
    • Select Finish
  1. In your Android Virtual Device Manager window,
    • Select your device
    • in the actions column click on the "Play" icon to start the emulator
      • On a Mac, you might be prompted  to allow access to the device
  1. Your emulator is ready to use, if you need to restart your device you can hold the power icon to see the power options.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.