title: How to set a background image in android
body: <p>Im very new to this android development.I just started to create a hello world application.</p>
  
  <p>I tried to set a background image and it is working fine.When i tried to add a text on the image it is not working.</p>
  
  <p>I tried in the way below.Can anyone please help me where im going wrong.</p>
  
  <p>in </p>
  
  <p>Main.xml</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:orientation="vertical" 
      android:background="@drawable/andriod" 
      android:layout_gravity="center_vertical" 
      android:gravity="center_vertical"&gt; 
  
      &lt;TextView
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/hello" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>HelloActivity.java</p>
  
  <pre><code>  import android.app.Activity;
    import android.os.Bundle;
    import android.widget.TextView;
    //import android.widget.ImageView;    
  
      public class HelloActivity extends Activity {
      //    /** Called when the activity is first created. */
      //    @Override
      //    public void onCreate(Bundle savedInstanceState) {
      //        super.onCreate(savedInstanceState);
      //        setContentView(R.layout.main);
      //    }    
  
      /** Called when the activity is first created. */
         @Override
  
         public void onCreate(Bundle savedInstanceState) {
             super.onCreate(savedInstanceState);
  
             TextView tv = new TextView(this);              
             tv.setText("This is the first andorid app");          
             setContentView(R.layout.main);         
         }
  }
  </code></pre>
  
  <p>When running it is showing the background image but "This is the first andorid app" is not showing.</p>
  
  <p>Hoping for your help</p>