Android emulator setup (Optional)

Introduction

If you don’t have an android test device and you want to test the Device enrollment, android single sign on, and other android based labs, theres an emulator you can install in your laptop an follow along with the particular lab manual as you would do on a physical device. What follows is the installation instructions for the installation of such software.

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
    • 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
    • Click on save file when prompted

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
  1. In the Import android Studio settings From.. window select Do not import settings and click ok
  1. On the Android Setup Wizard, in the Welcome window click Next. From this point on you can follow the initial configuration steps, plese ignore anything regarding the HAXM plugin as this has been already installed for you in the initial installation process.

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 click Next
  1. In the Android Studio Setup Wizard  in the install type window
    • Make sure Standard setup radio button is selected
    • Click Next
  1. Choose your preferred UI theme and click Next
  1. On the Verify Settings window click Finish
  1. In the Downloading Components window, when finished click Finish
  1. In the Welcome to Android Studio window click on Start a new Android project
  1. In the Choose your project window, choose Add No Activity and click Next
  1. In the Configure your project window:
  • in the Name field put something significant i.e. "Livefire"
  • In the Minimum SDK dropdown menu, select API 29: Android 10.0 (Q)
  • Click Finish
  1. Click on the AVD Manager icon on the toolbar
  1. Click on Create Virtual Device
  1. Select the Pixel 4 Image marked with Play Store access and click Next
  1. In the System image window:
  • Select the x86 Images tab
  • select the x86_64 version of the Q image. If you havent used this image before you need click on Download first
  1. If you clicked on download, in the License Agreement window select the radio button next to I agree and click Next
  1. In the Installing Requested Components window Click Finish when the progress bar shows DONE
  1. In the Select a system image window, if recommended Install Haxm
  1. Click Yes to allow windows command processor to make changes to your device
  1. When you see Done. Select Finish.
  1. Back in the Select a system image window Select Q and click Next
  1. If prompted, in the Emulator Settings window, Use the recommended memory settings and click Next
  1. Give a name to your virtual device and click Finish
  1. In your Android Virtual Device Manager window, in the actions column click on the "Play" icon to start the emulator
  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.