title: why do i get an error if I use more than 2 different backgrounds for my xml files in eclipse?
body: <p>I have 3 activities which I want to use different backgrounds with. but when i do this i get this i get this error however if i only use different backgrounds on 2 activities then the app works</p>
  
  <p>In the <strong>logcat</strong>:-</p>
  
  <pre><code>11-20 13:40:25.855: E/AndroidRuntime(849): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.medepad.community_virtual_ward/com.medepad.community_virtual_ward.Temperature}: android.view.InflateException: Binary XML file line #2: Error inflating class &lt;unknown&gt;
  </code></pre>
  
  <p>the activities are called main welcome and temperature.</p>
  
  <p>code for main
  xml</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".MainActivity"
      android:background="@drawable/main" &gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="400dp"
          android:layout_marginTop="115dp"
          android:text="TextView"
          android:textColor="#000000"
          android:textSize="40dp" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>java code</p>
  
  <pre><code>package com.medepad.community_virtual_ward;
  import android.os.Bundle;
  import android.app.Activity;
  import android.content.Intent;
  import android.view.Menu;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.TextView;
  
  public class MainActivity extends Activity implements OnClickListener {
  
      int a;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          TextView start = (TextView)findViewById(R.id.textView1);
          start.setOnClickListener(this);
      }
  
      @Override
      public void onClick(View v) {
      // TODO Auto-generated method stub
      Intent welcome= new Intent (this,Welcome.class);
          startActivity(welcome);
      }
  }
  </code></pre>
  
  <p>code for temperature</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="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:background="@drawable/temperature" &gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>java code</p>
  
  <pre><code>package com.medepad.community_virtual_ward;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  
  public class Temperature extends Activity implements OnClickListener {
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.temperature);
  }
  
  @Override
  public void onClick(View v) {
      // TODO Auto-generated method stub
  
  }
  }
  </code></pre>
  
  <p>welcome xml code</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:background="@drawable/welcome" &gt;
  
      &lt;TextView
          android:id="@+id/textView2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="400dp"
          android:layout_marginTop="115dp"
          android:text="TextView"
          android:textColor="#000000"
          android:textSize="40dp" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>java code</p>
  
  <pre><code>package com.medepad.community_virtual_ward;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.TextView;
  
  public class Welcome extends Activity implements OnClickListener {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          setContentView(R.layout.welcome);
          TextView next= (TextView)findViewById(R.id.textView2);
          next.setOnClickListener(this);
      }
  
      @Override
      public void onClick(View v) {
          // TODO Auto-generated method stub
          Intent temperature= new Intent(this, Temperature.class);
          startActivity(temperature);
      }
  }
  </code></pre>
  
  <p>why am i getting this error and what can i do to use the amount of backgrounds i want?</p>