How to add a background image to an Android Activity?
<p>My goal is to develop a GUI application on top of a background image with buttons in specific places on the image.  The first step is to display the background.</p>

<p>The image can be displayed with resources and is described in several FAQs including this one:</p>

<p><a href="http://stackoverflow.com/questions/3307090/how-to-add-background-image-to-activity">how-to-add-background-image-to-activity</a></p>

<p>It compiles and runs without errors, but the background is black.</p>

<p>Here is the main.xml file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

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

<p>The image has been in png, 9.png, and jpg format with basenames of 'main' and 'background'.  It builds but does not display.  Making clean and recompiling does not help.</p>

<p>This behavior occurs on both the emulator and on hardware -- an Atmel AT91SAM9M10-G45-EK.  The SDK version is 2.0.1.</p>

<p>Thank you for your help.</p>
