如何在另一个类中停止来自playlistManager的音频?

时间:2018-09-11 06:32:10

标签: java android

playlistManager在Fourth.class中播放,然后我返回Second.class,音频记录也播放,按下按钮时必须禁用(Stop();)音频播放在第二节课中。

该过程本身是可以理解的: 我在第二堂课中输入四年级,然后通过FourthClass.stop();导入一种方法来停止第四堂课的音频,但是出现关于"Non-static method 'stop()' cannot be referenced from a static context"

的错误

如何在不更改静态的情况下避免这种情况?

0 个答案:

没有答案
相关问题