How to set icon for dialog in Android
<p>I want to customize a dialog in Android.
I know how to set the title for dialog:</p>

<pre><code>dialog.setTitle("O message");
</code></pre>

<p>Now I want to set the icon in front of the title.
How can I achieve this?</p>

<pre><code>Dialog dialog;
dialog = new Dialog(this);
dialog.setContentView(R.layout.layouterror22);      
dialog.setTitle("O message");
</code></pre>
