title: How to accomplish task of playing recording in background and work on different activities?
body: <p>I am bit new to android development, I have came across a scenario and wanted to have valuable feedback from experts.</p>
  
  <p>In my application user is on Activity1, from where user selects a client and is navigated to Activity2. On Activity2 user shall be able to play a recording file, while the recording is being played, user can navigate to Activity3, Activity4 or Activity5, listens to audio and make the entries. On Activity3, Activity4 and Activity5 user will have controls to pause or stop the audio.
  And if user navigates back from Activity2 to Activity1, the audio will stop automatically.</p>
  
  <p>I am confused that either it can be done through service or background task.</p>
  
  <p>Any valuable suggestions/code sample is highly appreciated.</p>