title: How do I Load ImageButton image at runtime from SD Card?
body: <p>I want to let the user to load their own images from an SD Card to be used as an ImageButton.  Here is my main.xml code </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/heart"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/hello" /&gt;
  
      &lt;ImageButton
          android:id="@+id/imageButton2"
          android:layout_width="150dp"
          android:layout_height="200dp"
          android:src="@drawable/me" /&gt;
  
      &lt;ImageButton
          android:id="@+id/imageButton1"
          android:layout_width="150dp"
          android:layout_height="200dp"
          android:layout_marginLeft="50dp"
          android:layout_marginTop="50dp"
          android:cropToPadding="true"
          android:scaleType="fitCenter"
          android:src="@drawable/mylove" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>