Hii Before using the method setBackgroundDrawable() method to set tthe background of your layout screen which takes Drawable object you need to first create the drawable object fron the filename using the static method createFromPath(String pathname) present in Drawable class.In the pathname specify the location of your image stored in sdcard and then you can use the method setBackgroundDrawable() to set the background.
On Mar 6, 11:13 am, BGH <[email protected]> wrote: > I want to set the background of my main layout screen from a file on > the SD card? Been searching but I cant work out how to achieve this. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

