title: Set Android Theme.Light for Alert Dialog
body: <p>I am trying to set the android <strong>Theme.Light</strong> theme for my alert dialog, but with no success so far. After reading a few tutorials I gathered that using <strong>AlertDialog.Builder</strong> we cannot set the theme directly in the constructor (atleast in API level 7).</p>
  
  <p>The alternate solution that I found is using a <strong>ContextThemeWrapper</strong>, which everyone assured would solve my problem. So I coded something like this:</p>
  
  <pre><code>AlertDialog.Builder builder = new AlertDialog.Builder(
                      new ContextThemeWrapper(context, R.style.popup_theme));
  </code></pre>
  
  <p>I described my theme in the values folder:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;color name="back_color"&gt;#ffffffff&lt;/color&gt;
  &lt;style name="popup_theme" parent="@android:style/Theme.Light"&gt;
      &lt;item name="android:windowBackground"&gt;@color/back_color&lt;/item&gt;
      &lt;item name="android:colorBackground"&gt;@color/back_color&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p></p>
  
  <p>Unfortunately I still get the default <strong>Theme.Dialog.Alert</strong> theme. Can anyone tell me why? Where am I going wrong?</p>
  
  <p><strong>EDIT</strong>: 
  If you do not know the answer to my question, please vote up. I have a bad habit of posting questions which get stuck :(</p>