How to determine the playing state and pause state in default media player?

106 Views Asked by At

I am using isMusicActive function to detect the media player is running (note that this is default media app, such as com.sec.android.app.music). Now, I want to determine the pause state. Is it possible to get that state? Thank all

AudioManager mAudioManager = (AudioManager) getSystemService(getApplicationContext().AUDIO_SERVICE);
if (mAudioManager.isMusicActive())
0

There are 0 best solutions below