Tôi đang tạo hình nền Live của mình bằng cách làm theo hướng dẫn this. Nhưng tôi nhận được lỗi can not be resolved or is not a field
vào hai dòng sauGặp lỗi tại WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER
WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER
WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT
trong khi cố gắng để đạt được điều này
Intent intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER);
intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT,
new ComponentName(this, LiveWallService.class));
Và trình biên dịch cung cấp các suggessions:
WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER
WallpaperManager.COMMAND_DROP
WallpaperManager.COMMAND_SECONDARY_TAP
WallpaperManager.COMMAND_TAP
WallpaperManager.WALLPAPER_PREVIEW_META_DATA
Là bất kỳ điều sai rồi...?
Xin đừng lưu ý rằng '' ACTION_CHANGE_LIVE_WALLPAPER'' và '' EXTRA_LIVE_WALLPAPER_COMPONENT'' là API 16+ tính năng. – harism
Ok, cảm ơn, nó đã được sửa ... – Arsalan