Android dialog crashes, when I try to change its image
<p>I've made my custom android dialogue, but when I try to dynamically change an imageview inside it, the application crashes.</p>

<pre><code>    Dialog dialog = new Dialog(this,R.style.myBackgroundStyle);
    dialog.setContentView(R.layout.dialog);

    dialog.show();

    ImageView ivDialogLetter = (ImageView) findViewById(R.id.ivDialogLetter);
    ivDialogLetter.setImageDrawable(drwLetter); // &lt;- this line kills is.
</code></pre>

<p>Any ideas what might be the problem?</p>

<p>Thanks!</p>
