1

Android: Setting spinner with values from DB - but base array is in String

view story
linux-howto

http://stackoverflow.com – My preset values for the spinner comes from a String Array. <string-array name="currencyArray"> <item>INR</item> <item>USD</item> <item>EUR</item> </string-array> I am able to display this and save this fine. I am adding some values in a SQLite DB on "Add". On update, i want to fetch the values and display on screen. One of them is the spinner. I tried this code String myString = getIntent().getStringExtra("Currency"); System.out.println(myString); ArrayAdapter myAdap = (ArrayAdapter) currencySpin.get (HowTos)