setting wallpaper through code

前端 未结 1 1353
情话喂你
情话喂你 2021-02-11 02:06

I was trying to make an app which also had the facility to let user select wallpaper he would like to set. I have managed this by calling the Gallery Intent. Once the user selec

1条回答
  •  孤城傲影
    2021-02-11 03:04

    You should decode with inSampleSize option to reduce memory consumption.

    • Android: Strange out of memory issue while loading an image to a Bitmap object (stackoverflow)

    Another option inJustDecodeBounds can help you to find correct inSampleSize value

    • How to get bitmap infomation before decode an image file? (Google Groups)

    0 讨论(0)
提交回复
热议问题