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 )
- Download the SDK ADT Bundle for Mac. http://developer.android.com/sdk/index.html
- Extract the ZIP File into the Applications folder of your computer.
- Rename the extracted folder to SDK or something that will be easy for you to remember.
- Navigate to the following item inside the SDK Directory.. SDK > sdk > tools > android .
- Double click to open [you may have to right click to open depending on your comptuer’s security settings.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- Click on your new emulator device and click Start. You should be good to go now.!