またはアプリケーションのSpinner
後、選択したアイテムを同じままにしておく必要があります。項目は、を使用して sqlite データベースから取り込まれています。どうすればこれを達成できるか教えてください。onRestart()
onResume()
Spinner
ArrayAdapter
String myString = (String) myspinner.getSelectedItem();` //the value you want the position for
` @SuppressWarnings("unchecked")
ArrayAdapter<String> myAdap = (ArrayAdapter<String>) myspinner.getAdapter(); //cast to an ArrayAdapter
int spinnerPosition = myAdap.getPosition(myString);
//set the default according to value
myspinner.setSelection(spinnerPosition);