OSDN Git Service

Adds the Random Music Player sample.
authorBruno Oliveira <btco@google.com>
Tue, 7 Jun 2011 05:09:21 +0000 (01:09 -0400)
committerBruno Oliveira <btco@google.com>
Tue, 7 Jun 2011 05:09:21 +0000 (01:09 -0400)
commitb30a3010f51cb3631011d84ac948496f044fc7f5
tree7394c9f4a9461b68fcce01aae8168d90df861128
parent193d98ec183f4a3e137b8d0c5e20529819e1eef2
Adds the Random Music Player sample.

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
58 files changed:
build/sdk.atree
samples/RandomMusicPlayer/AndroidManifest.xml [new file with mode: 0644]
samples/RandomMusicPlayer/_index.html [new file with mode: 0644]
samples/RandomMusicPlayer/default.properties [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi-v9/ic_stat_playing.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/eject.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/eject_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/ff.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/ff_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/ic_launcher.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/ic_stat_playing.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/pause.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/pause_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/play.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/play_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/rew.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/rew_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/selector_eject.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/selector_ff.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/selector_pause.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/selector_play.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/selector_rew.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/selector_stop.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/stop.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-hdpi/stop_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-ldpi-v9/ic_stat_playing.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-ldpi/ic_launcher.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-ldpi/ic_stat_playing.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi-v9/ic_stat_playing.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/eject.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/eject_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/ff.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/ff_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/ic_launcher.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/ic_stat_playing.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/pause.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/pause_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/play.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/play_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/rew.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/rew_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/selector_eject.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/selector_ff.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/selector_pause.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/selector_play.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/selector_rew.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/selector_stop.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/stop.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/drawable-mdpi/stop_pressed.png [new file with mode: 0644]
samples/RandomMusicPlayer/res/layout-land/main.xml [new file with mode: 0644]
samples/RandomMusicPlayer/res/layout-port/main.xml [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/AudioFocusHelper.java [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/MainActivity.java [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/MusicFocusable.java [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/MusicIntentReceiver.java [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/MusicRetriever.java [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/MusicService.java [new file with mode: 0644]
samples/RandomMusicPlayer/src/com/example/android/musicplayer/PrepareMusicRetrieverTask.java [new file with mode: 0644]