A sample media application designed for Android Automotive.
The app is structured to follow Android's Media playback architecture. For an Android automotive app, this means that the app doesn't have an activity of its own. The UI is drawn by the system, and the app is responsible for providing the data to display and play in a structured manner. For more information, and resources on how to build media apps, please read the official Android documentation.
The project is structured as follows.
This consists of the media playback client components and the media service.
Here you will find all the domain models and entities for the application.
This layer is responsible for sourcing the media to play.
Shared utilities and helpers live here.
- Android studio 4.2+
- Android Automotive emulator
- The computer you're testing the app with should have speakers so you can hear the track playing (obvious, but overlooked sometimes)
Checkout the Volvo Cars Developer Portal for more information on creating apps for cars.
Once everything is set up, simply clone this repository, build, and run the app on the target emulator.