A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/ar/develop/java/emulator below:

Run AR Apps in Android Emulator | ARCore

Run AR Apps in Android Emulator

Stay organized with collections Save and categorize content based on your preferences.

Use the Android Emulator to test AR scenarios without a physical device. The Android Emulator lets you run ARCore apps in a virtual environment with an emulated device that you control.

Set up your development environment

Software requirements:

  1. Install Android Studio 3.1 or later.

  2. In Android Studio, go to Preferences > Appearance and Behavior > System Settings > Android SDK.

  3. Select the SDK Platforms tab and check Show Package Details.

    Under the appropriate Android version select:
    Google APIs Intel x86 Atom System Image API Level 27 or later.

  4. Select the SDK Tools tab and add Android Emulator 27.2.9 or later.

  5. Click OK to install the selected packages and tools.

  6. Click OK again to confirm changes.

  7. Accept the license agreement for the Component Installer.

  8. Click Finish.

Create a virtual device with AR support

For more information, see the Android Studio instructions to Create a Virtual Device.

Create a new Android Virtual Device (AVD)
  1. In Android Studio open the Device Manager by clicking Tools > Device Manager.

  2. Click Create Device, at the top of the Device Manager panel.

  3. Select or create your desired Phone hardware profile and select Next.

  4. Select an x86 or x86_64 system image running API Level 27 or later and select Next.

  5. Verify that your virtual device is configured correctly:

  6. Click Finish to create your AVD.

Run your app

Test an ARCore app on an AR-supported virtual device in the emulator. To do this, you can follow the Android Studio instructions to Run an app in the Android Emulator.

Note: To run apps with NDK components in the Android Emulator, your app must be built with x86 ABIs. For an example, see the ARCore HelloAR C sample app. Update Google Play Services for AR

The version of Google Play Services for AR on the emulator is likely out of date. Follow these instructions to update it:

  1. Download the latest Google_Play_Services_for_AR_1.48.0_x86_for_emulator.apk from the GitHub releases page.

  2. Install the downloaded APK into each AVD you'd like to use:

    Start the desired AVD, then drag the downloaded APK from your system folder (i.e., Downloads) onto the running emulator, or install it using adb while the virtual device is running:

    adb install -r Google_Play_Services_for_AR_1.48.0_x86_for_emulator.apk

Repeat these steps process for any additional AVDs you'd like to use.

Control the virtual scene

When your app connects to ARCore, you’ll see an overlay describing how to control the camera and a status bar below the emulator window.

Move the virtual camera

Press and hold Shift to access camera movement controls. Use the following controls to move the camera:

Action What to do Move left or right Hold Shift + press A or D Move down or up Hold Shift + press Q or E Move forward or back Hold Shift + press W or S Change device orientation Hold Shift + move mouse

Release Shift to return to interactive mode in the emulator.

Use the Virtual Sensors tab in Extended controls for more precise device positioning.

Add Augmented Images to the scene

Load images into the emulator’s simulated environment to test Augmented Images.

Use the Camera tab in Extended controls to add or modify Scene images. There are two image locations, one on the wall and one on the table.

To view these image locations in the scene, launch your emulator, then move the camera to the dining room area through the door behind the camera’s starting position.

Troubleshooting tips

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-02-28 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["Use the Android Emulator to test AR scenarios without a physical device by running ARCore apps in a virtual environment."],["Set up your development environment by installing Android Studio 3.1 or later and Android Emulator 27.2.9 or later, then create a virtual device with AR support by configuring it with an x86 or x86_64 system image running API Level 27 or later and setting the Camera Back to VirtualScene."],["Update Google Play Services for AR on the emulator by downloading and installing the latest APK from the GitHub releases page."],["Control the virtual scene by pressing and holding Shift for camera movements and using the Virtual Sensors tab in Extended controls for precise positioning, while adding Augmented Images using the Camera tab in Extended controls to load images into the simulated environment."]]],["To test AR apps without a physical device, use the Android Emulator. First, install Android Studio and the required SDK tools (Android Emulator 27.2.9+ and Google APIs Intel x86 Atom System Image API Level 27+). Create a new Android Virtual Device (AVD) with an x86 system image, ensuring \"Camera Back\" is set to \"VirtualScene.\" Update Google Play Services for AR by installing the correct APK. Control the virtual camera using Shift and WASDQE keys. Add scene images via Extended Controls.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3