【发布时间】:2013-12-09 14:33:04
【问题描述】:
我有一门壁纸课 壁纸服务#onCreateEngine( 在 init 中,我从 sharedprefs 中读取背景图像和颜色。
现在,如果我启动我的应用程序,我会设置可选择的背景颜色和背景。
我开始预览
Intent intent = new Intent(
WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
new ComponentName(this, CustomWallpaper.class));
startActivity(intent);
如果我设置壁纸我仍然看到旧值,那么预览中的一切都很好, 因为课程没有重新开始.. (如果我设置另一个 3 方壁纸并更改设置并开始我的一切正常)
有人可以给我一个提示吗?
【问题讨论】:
标签: android class restart wallpaper