【发布时间】:2011-11-17 12:27:42
【问题描述】:
我刚刚编写了从 AndExample 复制的以下行。
try {
this.collision_sound = SoundFactory.createSoundFromAsset(this.mEngine.getSoundManager(), this, "touch.ogg");
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
Log.d("Error","in creation "+e);
}
this.collision_sound.play();
现在的问题是,当我播放声音时,它会给我一个空指针异常。谁能帮我解决这个问题?
【问题讨论】: