(GL music player -- code implementation_ Vi_-- Listen to the phone J pdf
When we call, of course, we don't want the song to be still singing. We hope the mobile phone software can be smarter, pause when we call and continue to play when the call is over. So here we use the phone monitoring function of Android. Here's the code:
First, get the service in oncreate function:)