How to change background image in android application?
<p>There is a background in my app, and it should be changed after some event. So, how should i do that?</p>

<p>main.xml:</p>

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

<p>and there background should be changed:</p>

<pre><code>if(a&lt;b) *change background to bg2.jpg goes here*
</code></pre>

<p>help please and sorry for my english</p>
