I wanted to set Linear Layout background dynamically in the following way:
Fetch image from web url through XML parsing and then store that image into sd card.<
API are deprecated you can use the below code
BitmapDrawable background = new BitmapDrawable(getResources(), bitmapImage); linearLayout.setBackground(background);