Android Question list.size slowing down app

Discussion in 'Android Questions' started by Kiran Raotole, Nov 6, 2018.

  1. Kiran Raotole

    Kiran Raotole Active Member Licensed User

    I have json file which contain nearly 37000 record

    when I'm using :
    Dim list1 As List
    list1 = json.NextArray

    Dim exact_record As Int
    exact_record = list1.Size
    It slow down app.

    this work fine :
    Dim exact_record As Int
    exact_record = 
    what i'm doing wrong?
  2. DonManfred

    DonManfred Expert Licensed User

    you are just setting a value to an variable
    This is the line which needs some time.

    Only load the last 50 results from the webapi. If you later need more results; reload more from webapi.
  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