Get current track from music player?

All your problems with Audio, Video and Images.

Get current track from music player?

Postby stewartg » Sat Nov 15, 2008 1:04 pm

Sorry if this has been discussed already, I tried searching both this site and google and was not able to find any answers.

How can I find out which track is currently playing in the default android music player or when the track changes? I have not been able to figure out how to connect to the MediaPlaybackService or setup my filters correctly.

I currently have this in my manifest which just displays a Toast notification.
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.                 <receiver android:name=".MediaReceiver">
  2.  
  3.                         <intent-filter>
  4.  
  5.                                 <action android:name="com.android.music.NowPlayingActivity" />
  6.  
  7.                         </intent-filter>
  8.  
  9.                 </receiver>
  10.  
  11.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


It wont run for com.android.music.NowPlayingActivity or com.android.music.MediaPlackbackActivity but it works for android.intent.action.WALLPAPER_CHANGED.

Thanks in advance.
stewartg
Freshman
Freshman
 
Posts: 2
Joined: Sat Nov 15, 2008 12:26 pm

Top

Postby STuFF » Thu Aug 27, 2009 10:49 pm

up !

do you manage to do it ?
STuFF
Freshman
Freshman
 
Posts: 3
Joined: Sat Aug 22, 2009 2:34 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 12 guests