Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment
A technology for asynchronous data and loading devices, applied in the direction of program control devices, program loading/starting, etc., can solve problems such as memory overflow, achieve the effect of preventing OOM problems and protecting CPU overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] 本实施例提供了一种安卓设备的适配器视图异步数据加载方法,参考 figure 1 ,以下通过具体步骤进行详细说明:
[0042] 步骤S101,适配器视图单元接收到操作指令,向通用适配器单元的获取视图子单元发送调用请求。
[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.
[0045] In a specific implementation, the asynchronous data management class unit may be the AsyncDataManager class. The getView function is called every time an item in the list data is detected. The getView function creates a ...
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