Replies: 1 comment
-
|
두 메서드 모두 SharedPreferences에서 데이터를 저장하는데 사용됩니다. 차이점은 다음과 같습니다. Commit
Apply
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
SharedPreferences란?
저장하려는 값이 간단한 설정값이나 문자열을 저장하기 위해 사용됨
DB를 사용하기에 부담스러울 때 사용하면 굿
Key-Value형식으로 데이터를 저장하기 위한 API임Application에
XML 파일로 저장함앱의
내부 저장소에 저장되며, 앱 삭제 시 함께 삭제됨저장 방식
commit()apply()Beta Was this translation helpful? Give feedback.
All reactions