android studio SharedPreferences이용하여 데이터 저장
쉐어드를 이용하여 Android앱에서 간단한 데이터를 저장할수 있습니다. 주로 설정 혹은 기타 간단히 안드로이드 앱의 로컬에 저장해야 할때 사용합니다. 공식 자료 : https://developer.android.com/training/data-storage/shared-preferences 사진1) project를 생성합니다. 사진2) xml파일 생성 <? xml version ="1.0" encoding ="utf-8" ?> <androidx.constraintlayout.widget.ConstraintLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" android :layout_width ="match_parent" android :layout_height ="match_parent" tools :context =".MainActivity" > <TextView android :id ="@+id/textView" android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :layout_marginStart ="36dp" android :layout_marginTop ="70dp" android :text =" 이...