android studio1 SharedPreferences SharedPreferences는 안드로이드 앱에서 간단한 키-값 쌍 데이터를 저장하기 위한 방식 해당 데이터는 앱을 종료하고 다시 시작해도 유지되며 앱 내에서만 접근 가능 주로 사용자 설정, 로그인 정보, 사용자의 행동기록등을 저장 다만 대용량 데이터나 보안이 필요한 데이터는 저장하지 않는것을 권장 또한 해당 데이터들은 앱끼리 공유가 안됨 별도 로직 필요 저장// SharedPreferences 객체 가져오기SharedPreferences sharedPreferences = getSharedPreferences("MyPreferences", Context.MODE_PRIVATE);// SharedPreferences 편집기 가져오기SharedPreferences.Editor editor = shared.. 2024. 6. 14. 이전 1 다음