Receiving MP3 play actions in a BroadcastReceiver

by Jun8 » Wed, 11 Nov 2009 03:42:33 GMT


Sponsored Links
 Hi,

I am trying to build an Android Service that should get notified when
the user starts playing an MP3. I checked LogCat when I start playing
a song and saw that the following Intent is logged:

Intent { act=com.android.music.PLAYBACK_VIEWER flg=0x4000000
cmp=com.android.music/.MediaPlaybackActivity }

I couldn't figure out how to write an IntentFilter to let my Service
know that this event has occurred and let me know the name of the song
that will be played. I searched Android reference but could not find
anything on PLAYBACK_VIEWER.

Or should I instead listen for Intent { act=android.intent.action.PICK
dat= typ=vnd.android.cursor.dir/track
cmp=com.android.music/.TrackBrowserActivity } that is fired when the
list of songs is presented?

Thanks,

C

--



Other Threads

1. start android on top of moblin/ubuntu

is it possible to start android on top of moblin or ubuntu installed
on  a laptop or netbook?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Emulator (SDK 1.1_r1 for widndows XP) crash using emulator -data

Hello devs,

I need to run several emulator instances to test my application. When
i try to run instances using emulator -data <path> option, the
emulator crashes. I got a MS Visual Studio window informing that
emulator throws a "unhandled win32 exception". The exception message
in the de{*filter*} (MS Visual Studio 2008) is: "Unhandled exception at
0x77c4706c in emulator.exe: 0xC0000005: Access violation reading
location 0x03216848"

Does anyone have a hint on this?

Ps: the emulator runs normally without "-data" option.

--~--~---------~--~----~------------~-------~--~----~

3. Bus error when running 1.5 emulator

4. Encrypting application data file that is bundled with apk !

5. Which components does CALL_STATE_RINGING block?

6. How to config G1 to make both browser and MMS work?

7. Android theme inheritance relation implied by name?