The Emulator Sidebar

The free-standing emulator sports a “sidebar” that runs alongside the main emulator window:

Android Emulator, with Sidebar on the Right
Android Emulator, with Sidebar on the Right

This provides you with rapid access to a number of emulator features and controls. Some of those are hidden behind the “More” button, at the bottom of the sidebar (looks like an ellipsis, “…”).

Note that the sidebar buttons have tooltips that will tell both the button’s purpose and the keyboard shortcut, if any, for that button.

If you click the “More” button, you will open up the “Extended Controls” window:

Android Emulator with Extended Controls
Android Emulator with Extended Controls

Some of the features are configured via this window.

Power and Navigation Controls

The top icon in the sidebar is a power button. A quick click on it will simulate putting your emulator to sleep; clicking it again will “wake it up”. A long-click will behave like the POWER button on an Android device, bringing up the power menu:

Android Emulator, Showing Power Menu
Android Emulator, Showing Power Menu

Towards the bottom of the sidebar are BACK, HOME, and RECENTS buttons for navigation:

Android Emulator Sidebar Navigation Buttons
Android Emulator Sidebar Navigation Buttons

Screen Orientation

Two buttons on the sidebar allow you to rotate the device clockwise or counter-clockwise:

Android Emulator Sidebar Rotation Buttons
Android Emulator Sidebar Rotation Buttons

This allows you to rotate between all four portait and landscape orientations:

Android Emulator in Landscape
Android Emulator in Landscape

Screenshots

The camera button on the sidebar allows you to rapidly take screenshots of the emulator window:

Android Emulator Sidebar Screenshot Button
Android Emulator Sidebar Screenshot Button

These will be stored in a directory controlled by the “Settings” category in the “Extended controls” window:

Extended Controls, Showing Screenshot Save Location in Settings
Extended Controls, Showing Screenshot Save Location in Settings

Faking the Real World

That “Extended controls” window also allows you to fake real world behavior in your emulator.

Location

The “Location” category lets you fake GPS fixes, if your app winds up using locations.

There are two tabs: “Single points” and “Routes”. As the names suggest, you use the “Single points” tab to set the emulator GPS to a specific point, and you use “Routes” to have the emulator play back a series of GPS fixes with time intervals between them.

For specifying points for GPS fixes, the emulator needs a latitude and longitude. Older versions of the emulator let you provide those values directly. Now, instead, you get a tiny Google Map and need to provide locations that way:

Extended Controls, Showing Location Single Points Tab
Extended Controls, Showing Location “Single Points” Tab

You can pan around the map by dragging it using your mouse, and you can zoom it using the +/- buttons. You can search for a location using the “Search” field, as you would on the Google Maps Web site or app.

A simple click will place a marker pin at the clicked point, showing you the address:

Extended Controls, Showing Location Single Points Tab with Marker
Extended Controls, Showing Location “Single Points” Tab with Marker

The “Set Location” button in the corner of the window will set the simulated GPS fix to that location. The “Save Point” option in the map window itself will add this location to a list of saved points to the side of the map, under a name that you provide:

Extended Controls, Showing Location Single Points Tab with Saved Point
Extended Controls, Showing Location “Single Points” Tab with Saved Point

Later, you can click on items in the list to move the map to that location, then click the “Set Location” button to send that GPS fix.

The “Routes” tab lets you build up a route from saved points. To start a route, you need to first save a point in the “Single points” tab, then choose “Start a Route” from the “…” drop-down menu. This will bring up a typical Google Maps navigation form, where you can specify start and end addresses:

Extended Controls, Showing Location Routes Tab with Suggested Route
Extended Controls, Showing Location “Routes” Tab with Suggested Route

Clicking “Save Route” will save it to the list on the right:

Extended Controls, Showing Location Routes Tab with Saved Route
Extended Controls, Showing Location “Routes” Tab with Saved Route

The “Play Route” button will then simulate the device moving along the map-supplied route, using real-world speeds for that particular route. The “Playback speed” drop-down lets you speed up the playback, if you get bored waiting for NYC traffic.

If you have a route in GPX or KML format, you can import that using the “Import GPX/KML” button. This allows you to use more sophisticated off-emulator tools to build up your route.

Network Status

The “Cellular” category controls how the emulator emulates its cellular network connection:

Extended Controls, Showing Cellular Options
Extended Controls, Showing “Cellular” Options

Telephony

The “Phone” category allows you to simulate incoming phone calls and text messages:

Extended Controls, Showing Phone Options
Extended Controls, Showing “Phone” Options

These will trigger the corresponding apps on the emulator, based on registered Intent filters, such as responding to an incoming call:

Emulator Simulating an Incoming Call
Emulator Simulating an Incoming Call

Miscellanous Features

Additionally, you have:


Prev Table of Contents Next

This book is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.