其实就一句,不过前面需要先获取bitmap对象。

        Resources res=getResources();  
BitmapDrawable bmpDraw=(BitmapDrawable)res.getDrawable(R.id.abc);
Bitmap bmp=bmpDraw.getBitmap();
try{
setWallpaper(bmp);
}catch(IOException e) {
e.printStackTrace();
}

至于如何设置待机壁纸,暂时还不太清楚~!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-01-02
  • 2021-12-23
  • 2021-07-12
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2021-12-29
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案