By default, the screenshot is saved on your computer desktop. To change the location to which screenshots are saved, use the Screenshot save location control in the Settings category in the emulator's Extended controls window. The emulator supports the use of basic camera functionality on your virtual device for earlier Android versions. Android 11 and higher supports the following additional Android Emulator camera capabilities:.
You can use the virtual scene camera in a virtual environment to experiment with augmented reality AR apps made with ARCore. For information on using the virtual scene camera in the emulator, see Run AR apps in Android Emulator. This feature can be used to import custom images such as QR codes for use with any camera-based app.
For more information, see Add Augmented Images to the scene. You can greatly reduce the time it takes to test common AR actions by using the preset macros in the emulator. For example, you can use a macro to reset all the device's sensors to their default state. Before using macros, follow the steps in Run AR apps in Android Emulator to set up the virtual scene camera for your app, run your app on the emulator, and update ARCore.
Then, follow these steps to use emulator macros:. Use the extended controls to send data, change device properties, control apps, and more. To open the Extended controls window, click More in the emulator panel. You can use keyboard shortcuts to perform many of these tasks. The emulator lets you simulate "my location" information: the location where the emulated device is currently located.
For example, if you click My Location in Google Maps and then send a location, the map shows it. Controls for the device's location information are organized under two tabs: Single points and Routes. In the Single points tab, you can use the Google Maps webview to search for points of interest, just as you would when using Google Maps on a phone or in a browser.
When you search for or click on a location in the map, you can save the location by selecting Save point near the bottom of the map. All of your saved locations are listed on the right side of the Extended controls window.
To set the emulators location to the location you have selected on the map, click the Set location button near the bottom right of the Extended controls window. Similar to the Single points tab, the Routes tab provides a Google Maps webview that you can use to create a route between two or more locations. To create and save a route, do the following:.
To simulate the emulator following the route you saved, select the route from the list of Saved routes and click Play route near the bottom right of the Extended controls window. To stop the simulation, click Stop route.
To continuously simulate the emulator following the specified route, enable the switch next to Repeat playback. To change how quickly the emulator follows the specified route, select an option from the Playback speed dropdown. The speed defaults to the Delay value Speed 1X. You can increase the speed by double Speed 2X , triple Speed 3X , and so on. The emulator allows you to deploy your app to multiple displays, which support customizable dimensions and can help you test apps that support multi- window and multi- display.
While a virtual device is running, you can add up to two additional displays as follows:. The emulator lets you simulate various network conditions. You can approximate the network speed for different network protocols, or you can specify Full , which transfers data as quickly as your computer allows.
Specifying a network protocol is always slower than Full. You can also specify the voice and data network status, such as roaming. The defaults are set in the AVD. You can simulate the battery properties of a device to see how your app performs under different conditions. To select a Charge level , use the slider control. If the AVD has the directional pad enabled in the hardware profile, you can use the directional pad controls with the emulator.
However, not all devices can support the directional pad; for example, an Android watch. The buttons simulate the following actions:. This control can simulate 10 different fingerprint scans. You can use it to test fingerprint integration in your app. This feature is disabled for Android 5. This control lets you test your app against changes in device position, orientation, or both. For example, you can simulate gestures such as tilt and rotation. The accelerometer doesn't track the absolute position of the device: it just detects when a change is occurring.
The control simulates the way accelerometer and magnetometer sensors would respond when you move or rotate a real device. You must enable the accelerometer sensor in your AVD to use this control. These values include gravity. For example, if the device is suspended in outer space, it would experience zero acceleration all of x, y, and z will be 0.
When the device is on Earth and laying screen-up on top of a table, the acceleration is 0, 0, and 9. To rotate the device around the x, y, and z axes, select Rotate and do one of the following:. See Computing the device's orientation for more information about how yaw, pitch, and roll are calculated. To move the device horizontally x or vertically y , select Move and do one of the following:. As you adjust the device, the Resulting values fields change accordingly.
These are the values that an app can access. For more information about these sensors, see Sensors overview , Motion sensors , and Position sensors.
The emulator can simulate various position and environment sensors. It lets you adjust the following sensors so you can test them with your app:. For more information about these sensors, see Sensors overview , Position sensors , and Environment sensors. For more information, see Using the emulator with a proxy.
This is equivalant to the -gpu command line option. Autodetect based on host : Let the emulator choose hardware or software graphics acceleration based on your computer setup. SwiftShader : Use SwiftShader to render graphics in software. This option is typically the fastest. However, some drivers have issues with rendering OpenGL graphics, so it might not be a reliable option. For the shortcuts to work, the Send keyboard shortcuts option in the General settings pane must be set to Emulator controls default.
To file a bug against the emulator, click Send feedback. For more information, see how to report emulator bugs. Compare the latest available emulator version with your version to determine if you have the latest software installed. You can disable Wi-Fi in the emulator by running the emulator with the command-line parameter -feature -Wifi. Content and code samples on this page are subject to the licenses described in the Content License. Android Studio.
Download What's new User guide Preview. Meet Android Studio. Manage your project. Write your app. Build and run your app.
Run apps on the emulator. Run apps on a hardware device. Configure your build. Optimize your build speed. Debug your app. Test your app. Profile your app. Android Studio profilers. Profile CPU activity. Benchmark your app. Measure performance. Publish your app. Command line tools. Android Developers. Information about your use of our site is shared with Google for that purpose.
See details. The latest Android release delivers even more personal, safe and effortless experiences on your device. With a redesigned UI, new privacy features and more. Connect your devices to your Android phone for a seamless, unified experience where everything just works. When Google experiences meet Samsung foldables, amazing things can happen. This season, we're introducing new features designed to help you do more or less.
Plus, tools that make the world more accessible. Controls that add some balance to your day. And more ways to create, share and enjoy. Meet people using Android to change what's possible in daily life. Watch and read stories about creative, driven people discovering how to make their world more colorful and connected.
With Android by their side. Choices for work, gaming, 5G streaming and anything else. Your security and privacy are at the heart of what we do. Learn how Android protects you at every turn. Respond to an emergency distress call from the last safe city on Earth Enter a hectic battlefield of up to 64 players as a mercenary in a fictional, but realistic medieval world. Origin Client Free. Play great PC games and connect with your friends, all in one place. Flight Simulator X demo Free to try.
Try several aircraft in the tenth iteration of Microsoft's acclaimed flight sim. Blizzard Battle. Net Desktop App Free. Open your gateway to all things Blizzard. Feature updates and fixes for the original Age of Empires II. Halo: Combat Evolved Free to try. Fight for humanity against an alien onslaught. Fall in love with the classic Age of Empires II experience, now with high definition graphics.
Pokemon GO Free. Connect with other Trainers, discover and capture amazing Pokemon all around you. Alto's Adventure Free. Join Alto and his friends as they embark on an endless snowboarding odyssey. Hearthstone Free. Collect powerful cards and create mighty decks, summon minions and sling spells to control an ever-shifting battlefield. Fight for survival, fortune, and glory, or construct your own city. Manage limited resources and survive five nights, while being stalked by malicious robots.
0コメント