Android add string to shared preferences
问题 my task is to write simple application: 1. user writes a String in a Text field and save it to SharedPreferences (his note) saveButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { text = textEtxt.getText().toString(); InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(textEtxt.getWindowToken(), 0); // save to ShPr sharedPreference.save(context, text); Toast.makeText(context,