Asynchronous data loading method and device for Android device and its adapter view
A technology of asynchronous data and loading device, applied in the direction of program control device, program loading/starting, etc., can solve problems such as memory overflow, achieve the effect of preventing OOM problem and protecting CPU overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] This embodiment provides an asynchronous data loading method for the adapter view of an Android device, refer to figure 1 , the following are detailed steps through specific steps:
[0042] In step S101, the adapter view unit receives an operation instruction, and sends a call request to the acquire view subunit of the general adapter unit.
[0043]In a specific implementation, the adapter view unit may be AdapterView, the general adapter unit may be GenericAdapter, and the view subunit may be obtained by a getView function. The operation instructions received by the AdapterView can be divided into two types: sliding the AdapterView or sliding the focus to control the AdapterView. AdapterView calls the getView function of GenericAdapter according to the received operation instruction.
[0044] Step S102, the acquiring view subunit creates a thread for loading asynchronous data according to the received call request, and triggers the asynchronous data management unit. ...
Embodiment 2
[0053] This embodiment provides an asynchronous data loading method for the adapter view of an Android device, refer to figure 2 , the following are detailed steps through specific steps:
[0054] In step S201, the AdapterView receives a sliding operation command and calls the getView function of the GenericAdapter.
[0055] In a specific implementation, the operation instructions received by the AdapterView can be divided into two types: sliding the AdapterView or sliding the focus to control the AdapterView. AdapterView calls the getView function of GenericAdapter according to the received operation instruction.
[0056] Step S202, the getView function creates a thread for loading asynchronous data, and triggers the AsyncDataManager class periodically.
[0057] In a specific implementation, the getView function may receive multiple call requests within a timing period. According to the call request, the getView function creates a corresponding thread for loading asynchro...
Embodiment 3
[0074] This embodiment provides an adapter view asynchronous data loading device for an Android device, refer to image 3 , the asynchronous data loading device includes: an adapter view unit 301, a general adapter unit 302, an asynchronous data management unit 303, and an execution task unit 304, wherein:
[0075] The adapter view unit 301 is configured to send a call request to the acquisition view subunit 3021 of the general adapter unit 302 when receiving the operation instruction;
[0076] The universal adapter unit 302 includes an acquisition view subunit 3021, and the acquisition view subunit 3021 is used to create a thread for loading asynchronous data and trigger the asynchronous data management unit 303 according to the received call request;
[0077] The asynchronous data management unit 303 includes a push task subunit 3031, and the push task subunit 3031 is used to push the thread for loading asynchronous data into a thread pool, when the number of threads in the ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com