Android Question Spinner

Discussion in 'Android Questions' started by palmaf, Feb 27, 2015.

  1. palmaf

    palmaf Member Licensed User

    In my application i have a spinner with some elements . Made the choice I save the value and the position in a database. The subsequent reopening of the application i would like through the saved parameters bring up on the spinner the choice made previously, is possible ?
  2. tufanv

    tufanv Expert Licensed User

    If you save the choice to database , you can retrieve it of course and show on the spinner
  3. palmaf

    palmaf Member Licensed User

    I don't know how , which property of the spinner use ?
  4. Erel

    Erel Administrator Staff Member Licensed User

    You need to set the SelectedIndex property:
    Spinner1.SelectedIndex = 1 'select the second item
  5. palmaf

    palmaf Member Licensed User

    Works perfectly, thanks for the help
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice