问题描述
我有多个项目,单击时我想要一个声音。我收到一个错误 ( E / MediaPlayerNative:错误(1,-19)并且 E / MediaPlayer:错误(1,-19))。 我的代码
// set click listener to play the audio
mylist.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView,View view,int position,long l) {
// get the allwords object at the given the position the user clicked on
Word word = allwords.get(position);
// create and setup media player with current word
mymediaplyer = MediaPlayer.create(PhrasesActivity.this,word.getaudio());
//start the audio
mymediaplyer.start();
}
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)