wirelessdesigns wrote:Maybe you could provide a little more information about the context where you are using it, and perhaps the exception or other errors that LogCat provides when the application crashes?
What parameter is being passed in? Is it a valid resource from R.drawable?
I sorted it out, thanks for replying. The resource was valid and I was getting a Null Pointer Exception. I basically had an image background for a RelativeLayout that enclosed 3 text views. And during execution of the program I wanted to change the background of the relative layout, which caused the exception. Basically in order to implement the idea I used the background for one of the text views which I passed the fill_parent parameter for width and height and arranged the other text views accordingly.