I've got an app that uses a Spinner tied to an Adapter. I want to be able to save its contents when onSaveInstanceState is called, but am not sure which put method of the Bundle class I can use to do this?
protected void onSaveInstanceState(Bundle outState) { //TODO: Figure out how to save mDirectories (spinner) outState.putString("mStatus", mStatus.getText().toString()); outState.putString("mPath", mPath.getText().toString()); // outState.putSerializable("mDirectories", mDirectories); <-- Spinner object outState.putStringArray("links", links); outState.putInt("linksPointer", linksPointer); super.onSaveInstanceState(outState); } -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en