1
嘿,我想加载在其中包含睡眠指令线程内的Soundpool声音。我说的是块看起来像这样:soundPool.load()里面(等待)线程?
Thread wait = new Thread() {
@Override
public void run() {
try {
sleep(800);
soundsMap.put(SOUND5, soundPool.load(this, R.raw.w5, 1));
} catch (InterruptedException e) {
// blub
} finally {
}
}
};
wait.start();
蚀在load
标志着一个错误,并写道:
的方法
load(Context, int, int)
在类型SoundPool
不适用于参数(new Thread(){}, int, int)
有没有人一个想法,我怎么能解决这个问题?我真的不明白这封邮件想告诉我什么。
谢谢你,解决它:) – user2330482 2013-05-07 03:30:50