Maximizing an AlertDialog?
<p>I'd like to show a Dialog that occupies as much screen space as possible.</p>

<p>So, here's a sample:</p>

<pre><code>AlertDialog dialog = new AlertDialog.Builder(ctx)......create();
Window w = dialog.getWindow();
WindowManager.LayoutParams lp = w.getAttributes();
lp.width = 320;
lp.height = 480;
w.setAttributes(lp);
</code></pre>

<p>Problem is, this doesn't change a thing. Why?</p>

<p>TIA.</p>
