title: Android Material: Status bar color won't change
body: <p>I'm developing an simple app to test the material design. I'm using <code>com.android.support:appcompat-v7:21.0.0</code> and my activity looks like:</p>
  
  <pre><code>public class MyActivity extends ActionBarActivity {
     ...
  }
  </code></pre>
  
  <p>The layout is defined as:</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"
      tools:context=".MyActivity"&gt;
  
      &lt;android.support.v7.widget.Toolbar
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/toolbar"
          android:layout_width="match_parent"
          android:layout_height="128dp"
          android:minHeight="?attr/actionBarSize"
          android:background="?attr/colorPrimaryDark"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now i defined my theme following material guidelines:</p>
  
  <pre><code>&lt;style name="AppTheme" parent="Theme.AppCompat.NoActionBar"&gt;
      &lt;item name="colorPrimary"&gt;@color/colorPrimary500&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark700&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>I'd like to change the status bar color in pre Android 5 and set it to <code>colorPrimaryDark</code> but i can't find the way. I tried using:</p>
  
  <pre><code>getWindow().setStatusBarColor(..)
  </code></pre>
  
  <p>but setStatusBar color is available from level 21. 
  Why if i define a <code>colorPrimaryDark</code> in my theme and use appcompact the status bar doesn't change color?
  Anyone can help?</p>