Domanda

I try to create wallpaper and use for that AndEngineLiveWallpaper. So, I sometimes catch IndexOutOfBoundsException, when try to detach child sprite from scene. I now, that I must use runOnUpdateThread, but it useful only on BaseGameActivity.

How can I fix that in BaseLiveWallpaperService?

È stato utile?

Soluzione

Call your Engine runOnUpdateThread method:

mEngine.runOnUpdateThread(new DetachChildRunnable())
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top