There is a site from which by request I get a fairly large JSON file with about 20 thousand entries in them still subarrays .. But it is possible to get several small JSON and parse them separately.

How better to get such JSON whole file and parse it or get some smaller JSON and parse it separately?

Those. if the application will be in class 5-10 AsyncTask will not the application load the system?

    1 answer 1

    I understand that you have a mobile client for android, in your case it is better to take the data in chunks, parse and give the result in parts. You cannot guarantee that the client will have a good Internet all the time and if you take everything at once, there may be a blunted application.

    See what pagination is and how to work with it mobile client.

    • Well thank you. In general, for example, if there are 10 classes of AsyncTask, is it bad or not? The fact is that my whole JSON will not be displayed in one list, and in some it can even be 10 lists. In this connection, I asked better for 10 lists to receive and parse separately? - Kolhoznik
    • If there is an opportunity to create one main class and get one from it, it will be better. You are asking about the architecture of the application, this is a serious matter that requires a lot of experience and analysis, I answered you about working with the network, because this is the bottleneck of the application - Igor Lavrynenko
    • Understood thanks. - Kolhoznik