간단하게
SharedPrefeneces prefs;
SharedPrefeneces.Editor editor;
prefs=getSharedPreferences("Pre",0);
editor=prefs.edit();
editor=putString("str","안녕");
editor.commit();
이렇게 했는데 왜 저 분홍색 행에서 경고가 뜨는거죠?
SharedPreferences.edit() without a corresponding commit() or apply() call less... (Ctrl+F1) After calling edit() on a SharedPreference, you must call commit() or apply() on the editor to save the results
이렇게 떠서 commit 앞이든 뒤든 apply()도 붙여보고 다 했는데 경고는 사라지질 않네요 사용하는게 잘못된건가요?