Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
I'll be using the Android emulator to test and debug my applications throughout this video series. Here I'll show you the steps I follow to create my emulator. I'll go to the ADT menu and choose Window > Android Virtual Device Manager. You can either go to the Device Definitions screen and choose one of the preexisting definitions or you can create a definition from scratch on the Android Virtual Devices tab. I will start from that tab and click New.
I'll name my new Android virtual device JellyBean. In this version of ADT, there are four specific device definitions for actual devices: the Nexus 7, the Galaxy Nexus, the Nexus S, and the Nexus One. Then there are a bunch of predefined device definitions that are generic. I'm going to start with a fairly small device, which will make everything very readable on my screen. It will be the 3.2 QVGA device definition, which uses a medium pixel density.
I'm setting my target to the only SDK that I have installed: Android 4.2. Because all of the exercise files for this course are defined for that version of the SDK, I recommend that you do the same. Make sure that you've selected the options to allow hardware keyboard input. This will let you type values in from your own keyboard and the skin that displays the skin with hardware controls. I'll add a virtual SD card with a size of 64, and then I'll click OK and that creates the virtual device.
Then I'll click on the virtual device and I'll click Start. On the Launch Options screen, I'll accept all of the defaults and click Launch. That starts up your emulator. Now this will be for a very small cellphone, and if you want to emulate a more recent device, such as the Nexus 7, you can choose that too. I'm using this particular virtual device to make all of the text very readable on the screen. You might also see a dialog that pops up, asking you whether you want to use Logcat to log information from the emulator.
I recommend saying yes. This will cause the emulator to take quite a while to start up the first time, but once it's open, you can keep the emulator open throughout all of your development work and not have to hit this pause every time you want to test an application. Once the emulator comes to life, you should see this Welcome screen. You can click OK and that will take you to the emulator's home screen. From this screen, you can do any setup you'd like. For example, the emulator goes to sleep by default after a very short amount of inactive time.
To change that, I'll go to my apps list and then I'll type settings. That should take me to a search screen and I can choose the Settings application. I'll click on Display and then on Sleep, which defaults to sleeping after one minute of inactivity. I'll change that to 30 minutes. Then I'll click the Home button and that takes me back to the Home screen. So now my virtual device is set up and ready to use, and I'm ready to create my first application.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 104829 Viewers
56 Video lessons · 116700 Viewers
71 Video lessons · 85899 Viewers
131 Video lessons · 41088 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.