Assuming you have created a method that allows the user to choose the path to the image, use this:
// Variable with the path to the background String bg_path = "/sdcard/bg/background.png" // <
Remember to set the background color of the layout transparent in the XML file or you will not see the image. (this is true for everything that populates the parent window, for example, listview)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout="@+id/m_layout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android.background="Color.TRANSPARENT" >
Tivie source share