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.
当我使用 mediaplayer.prepareAsunc() 时,如何在加载过程中停止媒体播放器(在设置无线电流的路径之后)..当我完成活动时,它开始播放,加载后..如何在加载过程中停止它? 没有 System.exit(0) 方法?
private void releaseMediaPlayer() { if (mMediaPlayer != null) { mMediaPlayer.release(); mMediaPlayer = null; } }