Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Get current track from music player?

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: Google [Bot] and 7 guests