title: Background Image in Android
body: <p>I´m trying to put a background image in my layout, I put the path of the file (on drawables) in the "background" propierty, it shows in the xml preview, but when I run the app on my phone it doesn´t. </p>
  
  <pre><code>&lt;LinearLayout 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:paddingLeft="@dimen/activity_horizontal_margin"
  android:paddingRight="@dimen/activity_horizontal_margin"
  android:paddingTop="@dimen/activity_vertical_margin"
  android:paddingBottom="@dimen/activity_vertical_margin"     tools:context=".MainActivity"
  android:background="@drawable/background_image"&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My onCreate: </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  </code></pre>
  
  <p>Also, I was trying this tutorial --> <a href="http://androidforbeginners.blogspot.fr/2010/06/how-to-tile-background-image-in-android.html" rel="nofollow">link</a> but it doesn´t works, I can call the xml file and it shows an error. </p>