1

Committing a value to SharedPreferences from a spinner when a button is pressed

view story
linux-howto

http://stackoverflow.com – I'm trying to have a user select an item from a spinner, and when the 'submit' button is pressed, have the data committed to SharedPrefences. Here's where the spinner is located: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_new_baby_profile); Spinner spinner = (Spinner) findViewById(R.id.dob_month); // Create an ArrayAdapter using the string array and a default spinner layout ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.months_array, a (HowTos)