I don’t know why the onItemSelected triggerd it self when the activity starts ? is that because i have initials data on the spinner from the start ?
I don’t know why the onItemSelected triggerd it self when the activity starts ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your
onItemSelected()method will be called whenever theSpinnerchanges its selection. This includes when it initially gets its default selection.If you need to skip doing work that first time, use a
booleanflag to track whether or not this is the firstonItemSelected()call.