开发者

How to get the music player status in Android?

开发者 https://www.devze.com 2023-03-31 06:18 出处:网络
Can anyone tell me how to get the status of the music player in Android? I want know whether 开发者_开发问答the music player is paused or playing. Please help me.MediaPlayer player = new MediaPlayer()

Can anyone tell me how to get the status of the music player in Android? I want know whether 开发者_开发问答the music player is paused or playing. Please help me.


MediaPlayer player = new MediaPlayer();
boolean isPlaying = player.isPlaying();

:)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号