android - AndEngine. DetachChild in BaseLiveWallpaperService -


i try create wallpaper , use andenginelivewallpaper. so, catch indexoutofboundsexception, when try detach child sprite scene. now, must use runonupdatethread, useful on basegameactivity.

how can fix in baselivewallpaperservice?

call engine runonupdatethread method:

mengine.runonupdatethread(new detachchildrunnable()) 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -