title: how set a background image of the layout via Url in android?
body: <p>In my application to set background of layout from web url through the JSON. But in image view I am setting like this </p>
  
  <pre><code>try {
                    ImageView i = (ImageView)findViewById(R.id.animation);
                    Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new URL("http://alpharithm.in/manager/test/img/files/products/mushroom-soup.jpg").getContent());
                    i.setImageBitmap(bitmap); 
                  } catch (MalformedURLException e) {
                    e.printStackTrace();
                  } catch (IOException e) {
                    e.printStackTrace();
                  }
  </code></pre>
  
  <p>Not to set as a background. How can I set a background for the layout?</p>