Skip to content

volvo-cars/automotive-media-sample

Repository files navigation

Media Sample

License

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.

Code Structure

The project is structured as follows.

Media Playback Layer

This consists of the media playback client components and the media service.

Domain Layer

Here you will find all the domain models and entities for the application.

Data Access Layer

This layer is responsible for sourcing the media to play.

Common

Shared utilities and helpers live here.

Running the App

Prerequisites

  • 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.

About

A sample media application designed for Android Automotive.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages