Android Question list.size slowing down app

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

Tags:
  1. Kiran Raotole

    Kiran Raotole Active Member Licensed User

    I have json file which contain nearly 37000 record

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

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

    this work fine :
    Code:
    Dim exact_record As Int
    exact_record = 
    38000
    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.
     
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