Setting Up Android's Virtual Device

After installing Android’s SDK Emulator several times on OSX, I decided it was time to document it and make it really easy for anybody else at the office to get setup. If you’re wondering how to get your work station setup and running Android emulations, here are some easy to follow instructions for you to use.

Android SDK allows us to test Android devices on our computers. Depending on what is being accomplished, it may suffice to simply switch your browser’s User Agent to simulate an Android device. I recommend using User Agent Switcher for Chrome. ( https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg?hl=en-US )

  1. Download the SDK ADT Bundle for Mac. http://developer.android.com/sdk/index.html
  2. Extract the ZIP File into the Applications folder of your computer.
  3. Rename the extracted folder to SDK or something that will be easy for you to remember.
  4. Navigate to the following item inside the SDK Directory..    SDK > sdk > tools > android .
  5. Double click to open [you may have to right click to open depending on your comptuer’s security settings.
  6. Viewing the Android SDK Manager Window, you will now need to install a few packages to get your emulators started. Download the the most recent 3 or 4 Android Packages, and make sure to install Intel x86 Emulator Accelrator (HAXM). This will make your emulator faster.

You should have all the packages which are checked off in this screenshot.

  1. Make sure you accept all the license agreements and start the download. It will take a while to download all of the packages, be patient.
  2. In order to get the HAXM Emulator Excelerator to work, you must install the following driver from Intel. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager. Just download and follow the installation instructions, simple enough.
  3. Almost finished! Once your packages are finished installing, we simply have to create a new emulator to use. In the toolbar, go to Tools > Manage AVDs.
  4. Click New... to create a new Android Virtual Device. It may be wise to name it after the device you use to create it. For example, you could name it Nexus 7, Galaxy Nexus, or 4.0” WVGA. This will help if you have multiple later and you need them organized.
  5. Choose any device to get started, and make sure you can choose Intel Atom under the CPU drop down window. This Intel Atom setting will make your emulator run at a speed that isn’t super slow. Click OK when you’re ready.
  6. Click on your new emulator device and click Start. You should be good to go now.!

Tags: web development, and testing

Let's Work Together

Our team is anxious to work with you! Get in touch so we can get started!

Let's Go