android基于LibGdx开发wallpaper互动桌面宠物

在基于LibGdx下制作安卓端桌面宠物系统,遇到个问题就是在设置壁纸的时候是可以看到spinebody动画而且也能点击互动,但是点应用的时候,没有同步到桌面上。logcat提示如下

img

启动代码
Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, new ComponentName(getBaseContext(), MyLiveWallPaperService.class));
startActivity(intent);

AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
config.useCompass = false;
config.useWakelock = false;
config.useAccelerometer = false;
config.getTouchEventsForLiveWallpaper = true;
WindowManager windowManager = getWindowManager();
SpineBody spineBody = new SpineBody(1000,1000);
initialize(spineBody);