como adicionar o ouvinte ao preenchimento automático de texto, android?
Estou tentando adicionar um ouvinte que reagirá quando um item for selecionado no autocompletetextview ... alguém pode ajudar // o nome do telefone é o autocompletetextview
PhoneName.setOnItemSelectedListener(new OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> arg0, View arg1,
int arg2, long arg3) {
Toast.makeText(check.this," selected", Toast.LENGTH_LONG).show();
}
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
});