vendredi 18 avril 2014

app crash on button click when spinner getting populated dynamically


Vote count:

0




I have an android with three spinners getting their data dynamically using rest services. The problem is if i click the save button in the bottom while the spinners are still being loaded. the app crashes. what i am trying to achieve is a method to disable my button click till spinners load their value. I tried setEnabled property & set clickable property. but none helped. i need help in this kind of validation .



else if(spinner1.getSelectedItem().toString().trim().equals(""))
{

Toast.makeText(HourlyEntry.this,"Please wait..", Toast.LENGTH_SHORT) .show();
return false;
}
for example


asked 32 secs ago






Aucun commentaire:

Enregistrer un commentaire