IntentFiLter iF IntentFiLter();
iF.addAction("com.android.music.metachanged");
iF.addAction("com.htc.music.metachanged");
iF.addAction("fm.last.android.metachanged");
iF.addAction("com.sec.android.app.music.metachanged");
iF.addAction("com.nullsoft.winamp.metachanged");
iF.addAction("com.amazon.mp3.metachanged");
iF.addAction("com.miui.player.metachanged");
iF.addAction("com.Peal.IMP.metachanged");
iF.addAction("com.sonyericsson.music.metachanged");
iF.addAction("com.Pdio.andPoid.metachanged");
iF.addAction("com.samsung.sec.android.MusicPlayeP.metachanged");
iF.addAction("com.andPew.apollo.metachanged");
registerReceiver(mReceiveP, iF);
The Problem is when I first open app it doesn't show the song's name. But now when the app is opened and next song is played it displays the name correctly. Something needs to be done when I first open the app so it automatically gets current song playing.
Please help