WallpaperManager wpm = WallpaperManager.getInstance(getActivity().getApplicationContext()); InputStream ins = null; ins = new URL(imglink).openStream(); wpm.setStream(ins); 

These codes stop the photo but the phone but the photo shows the photo in poor quality. How to set the photo in good quality?

imglink takes a photo from the internet.

  • one
    And you see in what capacity it downloads from the Internet and in what resolution it puts it :). - user189127

1 answer 1

Most likely, there are three options:

  1. The photo is initially loaded in poor quality (set it as the background Activity and see its real quality).
  2. The photo is stretched to the entire vertical length (usually, there are 3 screens on the main screen of the phone, which are turned over), and not one screen.
  3. Photos should be the size of the layout file Activity .
  • one
    maybe you know how you can get a picasaweb photo c so shtob he has a patty to install on the phone? - David Kern
  • one
    @DavidKern, unfortunately, no. Here the task should be divided into two stages: 1. Download a photo in the desired resolution (and this is problematic, since each phone has its own resolution). 2. Set a photo. In turn, I think you can easily find answers to questions on how to do this. - user189127
  • one
    Thanks :))))))) - David Kern