Saving EditText and retrieve it automatically

前端 未结 3 657
遇见更好的自我
遇见更好的自我 2021-01-29 10:50

hi I\'m trying to save the EditText widget values in the internal memory of the phone/tablet so that they can be retrieved automatically by the app when it closes or the activit

3条回答
  •  无人及你
    2021-01-29 11:17

    You should use the shared preference ,shared preference is used to store the data in locally app whenever need you can access it . use this link https://www.journaldev.com/9412/android-shared-preferences-example-tutorial

    to use it. after on button click you can get the value . its help me

提交回复
热议问题