Android edittext validation like dialog box
问题 Android input validation when a button is pressed and display the validation message in a dialog as shown below. Codename is required Password is required USername is required. Enter the valid Email id. Dismiss This is my code: btninsert = (Button)findViewById(R.id.new_customer); btninsert.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { EditText Firstname = (EditText) findViewById(R.id.tf_userName); EditText Lastname = (EditText) findViewById(R.id.tf_password);