Search code examples
androidandroid-mediaplayermedia

How to play a song using service?


I want to know, how to run a song in a service, I also want to use .aidl file to expose clients the interface.


Solution

  • Sound basic for Android..

    I recommended you for go through this tutorial MusicDroid - Audio Player Part.

    There are three parts of these tutorial. Its nicely describe for how to implement Audio player for android using service and AIDL.

    Also look at this android developer tutorial Media Playback.

    I think this will help you a lot..!