This sample illustrates how to write an application that plays media in the background, handles streaming media from the network and reacts appropriately to system events like headphone disconnection and audio focus changes, and also uses the notification system to keep the user informed about what is happening. This CL is a cherrypick of the old CL 104495 (originally in honeycomb-mr1) into honeycomb-mr2. Original CL: https://android-git.corp.google.com/g/#change,104495 Change-Id: Ib8b15ee920300adc093a8b52c17bd9c251ac74ca
9 lines
423 B
HTML
9 lines
423 B
HTML
<p>A simple music player that illustrates how to make a multimedia application
|
|
that manages media playback from a service. It allows the user to play music
|
|
available on the device or specify a URL from which the media should be
|
|
streamed. It also illustrates how to use the notification system to indicate
|
|
an ongoing task and how to deal with audio focus changes.</p>
|
|
|
|
<img alt="" src="../images/randommusicplayer.png" />
|
|
|