Android Question How do you store user preferences or settings?

Discussion in 'Android Questions' started by schemer, Feb 5, 2015.

  1. schemer

    schemer Active Member Licensed User

    On a pc I use the registry to store user preferred settings. How do I store settings on an app created with B4A for an app? Is this done by storing a file like a .ini file or a text file (csv) and read into the app when the users opens it up?
    Thanks,
    schemer
     
  2. Reviewnow

    Reviewnow Active Member Licensed User

  3. schemer

    schemer Active Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    Note that KeyValueStore is a more powerful option for storing data.
     
    schemer and lemonisdead like this.
  5. Peter Simpson

    Peter Simpson Expert Licensed User

    I personally use RandomAccessFile and store app settings in the .dat file that it helps me to creates.
     
    schemer likes this.
  6. Troberg

    Troberg Well-Known Member Licensed User

    I use a map with a file backend, thinly encapsulated in a setting class.

    On PC, I use a local ini-file. Much easier to maintain, move and hand edit (compared to registry).
     
    schemer likes this.
  7. johndb

    johndb Active Member Licensed User

    +1
     
  8. schemer

    schemer Active Member Licensed User

    After looking at the two options the KeyValueStore is the better option altough the other (statemanager) will come in handy for what it does. ;)
    Thanks,
    schemer
     
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