android - spinner set selection doesn't working -


i need add setselection method spinner using position database.

i try both(in position of text)

spinner.setselection(in);  spinner.setselection(in,true); 

but shows first object in array used spinner

thanks help

make sure setselection() called after done spinner's setadapter().


Comments

Popular posts from this blog

python - Setting ctypes.Structure default values -

Ansible - ERROR! the field 'hosts' is required but was not set -

java - HTTP Status 500 - No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode -