Join Lee Brimelow for an in-depth discussion in this video Creating a Kindle virtual device, part of Developing Applications for Amazon Kindle Devices.
So, now that we have our development environment set up, let's now create an actual Kindle Fire emulator. So, let's go to the virtual device manager and open that up. And then, we can go to Device Definitions. And remember, we downloaded the Kindle Fire device definitions when we downloaded the SDKs. Now, in this course, I'm going to be targeting a Kindle Fire HD 7-inch, just because that's the actual device that I own. But later on, I'm going to be showing you how to adapt the application to the different screen sizes and DPIs of the other Kindle devices.
So, with that selected, I'm going to click Create AVD. And here, we can actually customize it, so the first thing I'm going to do is to actually rename it. So, I'll say Kindle HD_7. The device should automatically be pre-filled with the correct device. Now, the target, this is a really important thing, by default, it set to target Android 4.0.3. If we leave it like this, then we're going to see just the regular Android Ice Cream Sandwich UI.
We're not actually going to see the Kindle UI, so that's not going to work. So, we're going to change the target to Kindle Fire HD 7-inch. Now, these next two options, they basically provide controls outside of the emulator. If you want to keep those, you can. I like to turn those off, just so I can see the emulator window. Now, were not going to be using the camera in this application. For Memory Options under RAM, we want to keep that at the default. For VM Heap, we want to change that to 256, and that's based on recommendations from Amazon. For Internal Storage, let's bump it up to 1024 megabytes. Now, for an SD card, that can be one of the things that really slows down the start up of your emulators.
So, you could choose not to even include one, but we're actually going to need it later on in the course. So, I'm going to put the smallest size possible which is 9. Now, under Emulation Options, you can choose to actually Emulate Hardware Acceleration. And it actually uses the graphics card on your computer. Now, this is definitely something you should check off because it just make things run a lot faster in the emulator. it makes it more, like a real world emulation. This won't actually work with every single computer and graphics card combination out there.
So, once you boot up the emulator, if you start having issues or crashing, you can come and actually uncheck this. The only downside of using this is you can't use the Snapshot feature. But we're going to use the Host GPU. Click OK. And now, you can see that we have that virtual device created. I'm going to click on it and then click Start. Now, for you, this is not going to be an issue, but for me, since I'm recording this movie at a very small resolution, I'm going to need to scale it down, so I can actually fit it on the screen.
So, I'm going to scale it to 9 inches. But again, you shouldn't have to do that on your systems. And we're going to click Launch. And now, it's going to start up the Kindle HD 7-inch. Now, this start up process can actually take quite a while, especially the first time you've started it up. So, as soon as we're done loading, we'll continue. Okay, so the emulator has loaded up. And you'll notice, if you actually have a Kindle device, that it doesn't look exactly the same, things like the carousel, are not present here on the emulator. But for testing your applications, they will emulate perfectly, how it will run on the device.
So, it works just how you would expect on the device. I can pull down on the notifications to see those. Now, an important point is that when we get to the chapters on using GameCircle and Amazon Maps, you need to have this emulator actually registered with an Amazon account. And it should be the Amazon account that you use to create your developer registration when you register to become an Amazon developer. Or else, those APIs are not going to work here in the emulator. So to do that, I'm going to swipe down notifications, go to More, My Account, and you'll see here, this Kindle is not registered. Please sign in with your Amazon account.
So, I'm going to register this. And it just asks for your e-mail and password. And again, this should be the same account that you use to become a registered Amazon developer. Now, one of the bad things about this particular emulator is you can't use your computer keyboard. You're going to actually have to save here and type in your e-mail address and password. So, again, do that. Click Register, and then this emulator will then be tied to your Amazon account, and those APIs will work.
So, I'm going to just close this really quick, because I did want to point out, once you have registered that Kindle device to your Amazon account. And then, say, you want to launch it up again, you want to make sure you don't check off Wipe User Data. because if you do, then that Emulator will basically be fresh, brand new and you're going to have to register again. So, when you're launching the emulator, don't check off wipe user data. I mean, if we need to wipe some user data from our application, well, we can just do it on an application basis inside of the emulator.
The course also covers multiscreen development and testing with the Kindle Emulator, as well as actual deployment to the Kindle store.