android - How I can store the spinner's selected item, and use it in an another class? -
i have settings class. in class have spinner, 4 number. want use these numbers, in class modify program"s run. if 3 selected want thread 3 sec, if 5 5 sec ... how can store spinner's position , use in class?
what implementing onitemselected event spinner? like selected item changed post
inside event can edit , store value in android shared preferences
this let share spinner actual value across activities/classes. can value throught dictionary.
ask me if don't understand.
Comments
Post a Comment