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