たとえば、エラーが発生した場合は、間違ったアイコンや正しいアイコンなど、この動作に適したアイコンが表示されます。
if(condition true)
{
//here i need set right icon
}
if(condition false)
{
//here i need set wrong icon
AlertDialog ad = new AlertDialog.Builder(MainActivity.this).create();
ad.seticon();//how to set for different behavior