Change SurfaceView Image Depending On Thumbnail
<p>So far I have an <code>Activity</code> where there are a selection of thumbnails, once a thumbnail is clicked it opens up the <code>Camera Activity</code> with the <code>SurfaceView</code> which is being set in the XML below:</p>

<p>I need a way to be able to change the <code>SurafceView</code> depending on which thumbail was choosen in the previous <code>Activity</code> I have the thumbnails set up as <code>buttons</code>. I have given each button the same ID as the image name it should use on the <code>SurfaceView</code> so is there a way to take the button <code>ID</code> and change the <code>RelativeLayout</code> background below.</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/overlay"
android:gravity="bottom"
android:orientation="vertical" &gt;

&lt;Button
    android:id="@+id/takepicture"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_centerHorizontal="true"
    android:layout_margin="10px"
    android:layout_marginBottom="10dp"
    android:background="@drawable/capture" /&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>Java:</p>

<pre><code>View viewControl = controlInflater.inflate(R.layout.control, null);
    LayoutParams layoutParamsControl 
        = new LayoutParams(LayoutParams.FILL_PARENT, 
        LayoutParams.FILL_PARENT);
    this.addContentView(viewControl, layoutParamsControl);
</code></pre>
