Android Question Store text in EditText

Discussion in 'Android Questions' started by Isac, Jan 25, 2015.

  1. Isac

    Isac Active Member Licensed User

    How can I store the last text entered in a EditText?
    When you restart the application text should remain stored in EditText
    someone has already tried?
    thank you
     
    Last edited: Jan 25, 2015
  2. asales

    asales Well-Known Member Licensed User

    You can use PreferenceActivity library:
    - "SetString" to set the text of EditText when application is closed
    - "GetString" to put the text in EditText when application is created
     
    Isac likes this.
  3. asales

    asales Well-Known Member Licensed User

    See this example...
     

    Attached Files:

    Isac likes this.
  4. Isac

    Isac Active Member Licensed User

    Thanks AS2:)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice