switch(dialogid){ case DIALOGO_REGISTRAZIONE: { switch(response) { case 0: { } case 1: { } } } case DIALOGO_LOGIN: { switch(response) { case 0: { } case 1: { } } }}