there i am trying to write code for authorisation activity. When i am putting some entry in inputEmail i expect that my inputPasword will be fileed automaticly if corresponding
Use setOnItemClickListener and don't use setOnItemSelectedListener. Also use your custom adapter object to fetch the selected values.
prodNameAutoCompTxt.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView> adapterView, View view, int i, long l) {
//Don't use this method
}
@Override
public void onNothingSelected(AdapterView> adapterView) {
System.out.println("Nothing selected");
}
});
prodNameAutoCompTxt.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView> adapterView, View view, int i, long l) {
//Use this method
Product prodObj=(Product) prodAutoAdapter.getItem(i);
new UomSynch().execute(prodObj.getProdID());
}
});