我正在按照这个教程创建我的第一个动态壁纸。但是在下面两行代码上遇到了错误,错误信息为
can not be resolved or is not a field
。
WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER
WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT
我想实现的目标是:Intent intent = new Intent( WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
new ComponentName(this, LiveWallService.class));
编译器提供以下建议:
WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER
WallpaperManager.COMMAND_DROP
WallpaperManager.COMMAND_SECONDARY_TAP
WallpaperManager.COMMAND_TAP
WallpaperManager.WALLPAPER_PREVIEW_META_DATA
Is any thing wrong...?