I'm making an Android Library Project for playing music files through our API. At the moment I'm using a MusicService (with a media player) to play music files. The MusicService contains an instance of a radio. A radio is providing the MusicService with music files. So a radio can be for retrieving files on the SD card, of retrieving files through an api call, ... The type of radio can be different along different apps built with the same library.
Now, I was wondering... If I create 2 applications with this same library. One application uses the radio with the SD card, the other one the radio with songs from the api. Will these 2 applications interfere with each other, both manipulating the same service?
So when I first start playing from the SD card app, hitting play, the service starts playing. If then, I open the second app on the device and hit Pause, will it pause the music that was playing from the other app?
I know it sounds complicated, but I hope I made my question clear.