Android - avoid AlertDialog to close(Error handling)
问题 May i know how to avoid AlertDialog to close even when i click the OK. The reason for this is to make a simple error handling when there is a wrong input. ------------------------ Input password ------------------------ Password:______________ _______________________ | OK | | Cancel| I want this dialog to remain when there is wrong input. so that the user can input again. My code: AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Insert Passcode"); final EditText