//初始化包
cls("android.app.WallpaperManager",wm)
cls("android.graphics.Bitmap",bitp)
cls("android.graphics.BitmapFactory",bfy)
//图片路径(/sdcard/+路径)
s path = "/sdcard/iApp/Userimg/icon_iapp.png"
//初始化壁纸工具
javax(Wallm,null,wm,"getInstance","Context",activity)
//初始化图片为Bitmap变量
javax(image,null,bfy,"decodeFile","String",path)
//设置壁纸
javax(null,Wallm,wm,"setBitmap",bitp,image)
//需要权限<uses-permission android:name="android.permission.SET_WALL_PAPER"/>应该是这个我手写的或者百度安卓设置壁纸权限
iApp一本通