Android emulator
About
The Volvo Cars XC40 Recharge emulator for Android Studio lets you build and test your app for Android Automotive OS. The emulator offers a preview of the same controls and context you would find inside a real XC40. Integrate fully with Google apps and services like Google Assistant for voice control, Google Maps for navigation and Google Play for access to other apps.
Watch this space - the EX30 emulator will be available soon.
Getting started
Begin by following the steps below to get you a local copy on your machine for development and testing purpose.
Prerequisites
Install the latest version of Android Studio on your machine. Download Android Studio here.
1. Add emulator to Android Studio
- In Android Studio, select Tools > SDK Manager
- Click the SDK Update Sites tab
- Click Add
- Enter the following:
- Name: Volvo System Image
- URL: https://developer.volvocars.com/
sdk/ volvo-sys-img.xml
- Click OK
- Switch to the SDK Platforms tab
- Enable the Show Package Details checkbox
- Enable Volvo System Image under Android 11.0 (R)
- Click OK
2. Create Android Virtual Device
Create an Android Virtual Device (AVD) by using the Volvo Cars XC40 Recharge emulator.
- Restart Android Studio before creating an AVD
- In Android Studio, select Tools > AVD Manager
- Click on the “+” icon in the Device Manager window to create a device
- Select Automotive from the menu on the left
- Choose Volvo XC40
- Click Next
- Under the x86 Images tab, choose the Android R system image - Api Level 30, Android 11.0 (Volvo XC40)
- Click Next
- Click Finish
Note: If you do not see Volvo XC40, then restart Android Studio. It will appear when you open device manager again.
3. Build your application
Once the above steps are complete, you can begin building applications. For more help getting started, visit our media sample project or Google's car sample projects on GitHub.
Known issues
The home button on the skin of the emulator does not work due to a defect in the Android Open Source Project, which is expected to be fixed in an upcoming release. To work around this issue, you can navigate home using the home button in the emulator console (attached to the emulator window).
Disclaimer
Note: The emulator system images for Automotive are currently in beta since the emulator doesn’t support Bluetooth and the system image has a Global Navigation Satellite System (GNSS) related Common Type System (CTS) test failure.