diff --git a/Android.mk b/Android.mk index 467a892e7d868..f752f44919235 100644 --- a/Android.mk +++ b/Android.mk @@ -415,6 +415,8 @@ web_docs_sample_code_flags := \ resources/samples/NotePad "Note Pad" \ -samplecode $(sample_dir)/SampleSyncAdapter \ resources/samples/SampleSyncAdapter "Sample Sync Adapter" \ + -samplecode $(sample_dir)/RandomMusicPlayer \ + resources/samples/RandomMusicPlayer "Random Music Player" \ -samplecode $(sample_dir)/RenderScript \ resources/samples/RenderScript "RenderScript" \ -samplecode $(sample_dir)/SearchableDictionary \ diff --git a/docs/html/resources/resources-data.js b/docs/html/resources/resources-data.js index 097d0041c73d1..e8c9ae7e3a0c6 100644 --- a/docs/html/resources/resources-data.js +++ b/docs/html/resources/resources-data.js @@ -546,6 +546,16 @@ var ANDROID_RESOURCES = [ en: 'An application for saving notes. Similar (but not identical) to the Notepad tutorial.' } }, + { + tags: ['sample', 'new', 'media' ], + path: 'samples/RandomMusicPlayer/index.html', + title: { + en: 'Random Music Player' + }, + description: { + en: 'Demonstrates how to write a multimedia application that plays music from the device and from URLs. It manages media playback from a service and can play music in the background, respecting audio focus changes.' + } + }, { tags: ['sample', 'new', 'newfeature', 'performance', 'gamedev', 'gl'], path: 'samples/RenderScript/index.html', diff --git a/docs/html/resources/samples/images/randommusicplayer.png b/docs/html/resources/samples/images/randommusicplayer.png new file mode 100644 index 0000000000000..e16e0677da002 Binary files /dev/null and b/docs/html/resources/samples/images/randommusicplayer.png differ