안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요
String names[] = {"Georgiana","Jen","Simon"};
스트링 배열을
....
SharedPreferences.Editor editor = pref.edit();
editor.putString("names", names[])
스트링 배열(Array)을 SharedPreferences 이용해서 저장을 어떤식으로 하는지요?
editor.putArray("names", names[]) ; 에러나네요?
String names[] = {"Georgiana","Jen","Simon"};
스트링 배열을
....
SharedPreferences.Editor editor = pref.edit();
editor.putString("names", names[])
스트링 배열(Array)을 SharedPreferences 이용해서 저장을 어떤식으로 하는지요?
editor.putArray("names", names[]) ; 에러나네요?
editor.putString("names", names) ;
에러==>
The method putString(String, String) in the type SharedPreferences.Editor is not applicable for the arguments (String, String[])
이런에러가 나네요
에러==>
The method putString(String, String) in the type SharedPreferences.Editor is not applicable for the arguments (String, String[])
이런에러가 나네요
배열을 저장가능한지요
안되면 배열을 다른방법으로 저장하는 방법이 있는지요?
조언부탁합니다.