我正在用我的相机(手机)拍照,然后我需要它来设置壁纸,但让我崩溃。当我使用setWallpaper()的时候,它说我是The method setWallpaper(Bitmap) from the type Context is deprecated。这是我的代码: ImageButton ib;(bmp); }它让我在这里坠毁,setWallpaper()
我的墙纸管理器使用异步任务来设置为墙纸。但是在从非异步切换到AsyncTask之后,我得到了错误消息"The method getBaseContext() is undefined for the type SetWallpaperTask“请更正我的代码旧的非异步任务 {
URL myFileUrl = null;wpm = WallpaperManager.getInstance(ge