0

我尝试创建墙纸并用于该AndEngineLiveWallpaper。所以,当我尝试从场景中分离子精灵时,我有时会捕捉到IndexOutOfBoundsException 。我现在,我必须使用runOnUpdateThread,但它只对BaseGameActivity有用。

如何在BaseLiveWallpaperService中解决这个问题?

4

1 回答 1

1

调用你的引擎 runOnUpdateThread 方法:

mEngine.runOnUpdateThread(new DetachChildRunnable())
于 2013-09-24T20:52:53.630 回答