Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
This course introduces the new features offered to developers and consumers in Android 4.1 Jelly Bean. Author Joseph Lowery first explains how you can expect the update to roll out to devices, and then shows how to install the Android SDK on Windows and Mac, select a device emulator, create a sample app, and prep it for publication on Google Play. Along the way, the course explores the smoother interface (codenamed Project Butter), notifications, advanced text manipulation, and security improvements that will be of interest to Android developers, and describes how those features translate for consumers on the device side.
There are two ways to test your application during development. You can check it in the actual device by connecting a USB cable between your device and the computer, or you can use a software emulator. While an emulator is no real substitute for an actual device, it's definitely very useful for baseline development. In this video, I'll show you how to set up an Android emulator for Jelly Bean. Although I'm on the Mac here, the process is identical on the PC. The first thing you have to know is that in Android-speak, an emulator is known as the Android Virtual Device, or AVD.
So, to start the process, I have my Android SDK Manager, which we installed in the previous movie, opened and up and running. I'm going to go to the Menu, choose Tools > Manage AVDs. The Android Virtual Device Manager dialog box will open. You can see that there are no AVDs or emulators listed here. In the real world development situation, you'd be creating many different emulators, targeting different OS versions and different screen resolutions as well.
We're going to set up a very basic one to get you started. The initial step is to click New. In the Create New Android Virtual Device dialog box, first enter the name of your emulator. We'll call this one Jelly_Bean. Notice that I'm using an underscore here. Now, let's set the Target from the list of available options. We're going to choose Android 4.1.2, which is the latest version of Jelly Bean. You'll notice the API Level is number 16.
Google has this distinct numbering system that it applies to all of its operating system versions. The next option is CPU/ABI. CPU is familiar to most, whether you're a TRON fan or not, as an abbreviation for Central Processing Unit. But what about ABI? ABI is short for Application Binary Interface. This can vary by device. But the most common in Android is ARM, processor manufacturer like Intel. And if I open up the CPU/ABI list, you'll see ARM listed there as well as the Intel Atom.
Let's choose ARM. Now, we're going to enter in the memory size for the SD card next. My Galaxy Nexus has about 16 gigs of memory. But let's say I want to target a wider range of devices. So, I'll enter in 10240 or 10 gigs. The next option is very important if you use the emulator a lot because it will save you a ton of time. Android emulators can create snapshots of where you are in the device, like if you're in a particular app, and it can automatically save and load the snapshot whenever you start the emulator.
For all that to work, you have to choose the Snapshot: Enabled checkbox. Now, we're ready to set the resolution of your emulator, which is found under the Skin category. As you can see, there are a bunch of preset options as well as the ability to enter custom values. We're going to go with the Default option for this basic emulator. Now, under Hardware here, you'll see a number of properties and values and you can also add the new ones in, including any of these from the list that you see here.
So, if you need to test specific features, this is where you would add in those properties. I'm going to just leave the default values here, and we're finally ready to create our new emulator. So I'll click Create AVD. Once that process is completed, and I'll warn you, it can take a bit of time, we'll see a new listing in the manage AVDs dialog box. And there is our result, our Jelly_Bean AVD has been created. I'll click OK. You can see the listing there up top in the AVD Manager dialog box.
If need be, you can select it and edit to make any changes. But let's go ahead and fire this puppy up. So with that selected, I'll click Start. This will bring up the Launch Options dialog box. The first option, Scale display to real size, allows you to change the size of the emulator according to your screen. In my situation, leaving this option unselected works out fine. The Wipe user data option that you see here really only comes into play after you've been testing for a good while.
Since we're just starting, we can leave that deselected. Now, of the next two options, I'm going to deselect Launch from snapshot for this time, because we don't have a snapshot first, but I definitely want to have Save to snapshot selected. Let's click Launch. Once we're there, I'm going to quit the emulator so I can demonstrate how useful the Snapshot function is. So I'll just go up and click Close. And then, close the Starting Android Emulator dialog box.
Now, let's start it again. And you'll see just how quickly the emulator will start up. I have Jelly_Bean selected, I click Start. This time, I'm actually going to choose Launch from snapshot as one of the launch options. Click Launch. Good job!
There are currently no FAQs about Android 4.1 SDK Jelly Bean New Features.
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.