Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何在 Android 中获取音乐播放器的状态?我想知道音乐播放器是暂停还是播放。请帮我。
MediaPlayer player = new MediaPlayer(); boolean isPlaying = player.isPlaying();
:)