How do Android mediaplayers continuing playing songs when app is closed?
问题 Wondering how next songs are played once app is closed as if playing an entire CD or playlist... 回答1: The media player only plays one audio track. What media players do, is listen on the onCompletion event and play the next track. The MediaPlayer is bound to the process, not the activity, so it keeps playing as long as the process runs. The activity might be paused or destroyed, but that won't affect the internal thread that MediaPlayer uses. I'm building an audio player to learn Android, you