Setting background image found in sd card
<p>In my application I want to be able to allow users to place in images onto a folder created by my app which then I put them into a stack which will be set up as an image background.</p>

<blockquote>
  <p>The question is how would I be able to set a background image on code?</p>
</blockquote>

<p>I know you can place images in drawables and set it on xml but I want users to be able to feel free to choose from the background they prefer.</p>

<p>Thanks.</p>

<p>This is what I tried. If possible correct me cause it's not working.</p>

<pre><code>Bitmap backgroundBitmap = BitmapFactory.decodeFile(backgroundFileLocation);
Drawable backgroundImage = new BitmapDrawable(backgroundBitmap);
LinearLayout ll = (LinearLayout)findViewById(R.id.linearLayout_layout_options);
ll.setBackgroundDrawable(backgroundImage);
</code></pre>
