Android Question Limit of a List

Discussion in 'Android Questions' started by kohle, Mar 28, 2015.

  1. kohle

    kohle Active Member Licensed User


    I want to save gps coord. all day.
    I want to put them in a list if internet is not avaible.

    My question is how many entries can be in a list object and how
    can I find out what limit I can use.
    Every phone has a different memory size.

    The idea is to check memory size before adding to list.
    Is there a way to get the memory size

    In C, I would allocate a part of memory for the list before using.

    Some ideas to share ?

  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Its a tough call. Do you need all of them in memory at the same time?
    Can you cache a minimum number to disk?
    I think the worst mobiles had atleast 16MB process memory.
    NJDude likes this.
  3. fixit30

    fixit30 Active Member Licensed User

    I would personally store this information in a SQLite database and then retrieve them once internet connectivity is restored.
    Beja likes this.
  4. kohle

    kohle Active Member Licensed User

    I think SQL lite or saving in a file is the way.
  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