no icon for alert dialog

android

Solution

new AlertDialog.Builder(MyActivity.this)
    //.setIcon(android.R.drawable.i)    /// put comment on this line
    .setTitle(R.string.success_title)
    .setMessage(R.string.success_msg)
    .setNeutralButton("OK",
        new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dlg, int sumthin) {
                try 
                {
                    dlg.dismiss();
                } catch (Exception e) {
            }
        }
}).show();

Problem

even if I don't set icon `.setIcon(android.R.drawable.ic_dialog_alert)` for dialog box, it is showing info icon. How can I completely remove the icon from dialog box? ``` new AlertDialog.Builder(MyActivity.this) .setTitle(R.string.success_title) .setMessage(R.string.success_msg) .setNeutralButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dlg, int sumthin) { try { dlg.dismiss(); } catch (Exception e) { } } }).show(); ``` Edited: Sorry everyone.. I completely remove .setIcon line from the dialog box. I forget to remove it when I paste the code here. Even I remove that I still can see the icon as information icon.

Original source