Implementing MusicService (Android MediaBrowserService)

By implementing Android.Service.Media.MediaBrowserService, we are providing Android Auto the ability to browse through your media playlists. From the car dashboard, the user will be able to click through the playlists and select any podcast he or she wants to listen to:

  1. Open Visual Studio 2017.
  2. Go to File | Open | Project/Solution, go to your MyPodCast directory, and choose the MyPodCast.sln file.
  3. Right-click on MediaService folder | Add | New Item | and select Visual C# Class and name the file MusicService.cs
  1. Click Add
  2. Open MusicService.cs by double-clicking the file.
  3. Let the MusicService class implement Android.Service.Media.MediaBrowserService
  4. Add the MusicService class's attributes: ...

Get Voice User Interface Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.