Android emulator setup (Optional)
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
- 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.
- 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
- 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
- Make sure both Android studio and android virtual device are selected and click next
- Select your installation location and click Next
- Choose your start menu shortcut configuration and click Install
- On the installation complete window click Next
- In the completing Android Studio Setup window check the Start Android Studio checkbox and click finish
- In the Import Android Studio Settings prompt Select Do not import settings radio button and click OK
Part 3 Mac OS installation
- Mount and open your downloaded dmg image. Drag the Android studio icon into the Applications folder.
- From your applications folder double click your Android Studio icon
- Click on Open if you get a security prompt
- In the Import android Studio settings From.. window select Do not import settings and click ok
- 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.
- If prompted, in the Data Sharing window click on Send usage statistics to Google
- In the Android Studio Setup Wizard, in the Welcome window click Next
- In the Android Studio Setup Wizard in the install type window
- Make sure Standard setup radio button is selected
- Click Next
- Choose your preferred UI theme and click Next
- On the Verify Settings window click Finish
- In the Downloading Components window, when finished click Finish
- In the Welcome to Android Studio window click on Start a new Android project
- In the Choose your project window, choose Add No Activity and click Next
- 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
- Click on the AVD Manager icon on the toolbar
- Click on Create Virtual Device
- Select the Pixel 4 Image marked with Play Store access and click Next
- 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
- If you clicked on download, in the License Agreement window select the radio button next to I agree and click Next
- In the Installing Requested Components window Click Finish when the progress bar shows DONE
- In the Select a system image window, if recommended Install Haxm
- Click Yes to allow windows command processor to make changes to your device
- When you see Done. Select Finish.
- Back in the Select a system image window Select Q and click Next
- If prompted, in the Emulator Settings window, Use the recommended memory settings and click Next
- Give a name to your virtual device and click Finish
- In your Android Virtual Device Manager window, in the actions column click on the "Play" icon to start the emulator
- Your emulator is ready to use, if you need to restart your device you can hold the power icon to see the power options.