CN103455355B - Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment - Google Patents
Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment Download PDFInfo
- Publication number
- CN103455355B CN103455355B CN201310401857.XA CN201310401857A CN103455355B CN 103455355 B CN103455355 B CN 103455355B CN 201310401857 A CN201310401857 A CN 201310401857A CN 103455355 B CN103455355 B CN 103455355B
- Authority
- CN
- China
- Prior art keywords
- asynchronous data
- view
- adapter
- thread
- subelement
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses Android equipment, and an asynchronous data uploading method and device for AdapterView of the Android equipment. The asynchronous data uploading method for the AdapterView comprises the steps that an AdapterView unit receives an operation instruction, and sends a calling request to a getView subunit of a GenericAdapter unit; the getView subunit creates a thread for uploading asynchronous data according to the received calling request, and triggers an AsyncDataManager unit; a PushTask subunit of the AsyncDataManager unit pushes the thread for uploading the asynchronous data to a thread pool, wherein when the number of threads in the thread pool reaches a preset threshold value, the PushTask subunit is used for performing sequencing and waiting on threads which are newly created by the getView subunit; and an ExecuteTask unit calls the threads in the thread pool and uploads the asynchronous data. By adopting the method, the device and the Android equipment, the CPU overhead of a system can be effectively protected, and an overflow problem of an internal memory can be prevented.
Description
Technical field
The present invention relates to Android device field, the asynchronous data particularly to a kind of Android device and its Adapter view adds
Support method and device.
Background technology
Developing rapidly with wireless communication technology, based on ARIXTRA(Android)The mobile phone of operating system is increasingly popularized,
So that increasing software developer redirect to the exploitation of Android phone software field.In android system exploitation,
Almost each application can be related to view adapter(AdapterView)Asynchronous data load.
AdapterView is the class in android system, can include List View(ListView), grid view
(GridView)And gallery(Gallery)Isometric drawing mode.A kind of existing asynchronous data loading method is by monitoring
The slip event of ListView carries out asynchronous data loading, or carries out asynchronous data by the slip event monitoring GridView
Load.Because the asynchronous data load mechanism of different views mode is different, the view of single kind can only be loaded it is impossible to
Realize general it is therefore desirable to an asynchronous data loading scheme that can be general.
Load for realizing general asynchronous data, prior art provides one kind by triggering universal adapter
(GenericAdapter)Obtain view and create the method that thread carries out asynchronous data loading.For example, when detect screen slide
When dynamic, AdapterView can trigger the acquisition view in GenericAdapter(getView)Function, often detects and slips over row
One of table data item(item)All call a getView function, create a thread and go to load asynchronous data, and will add
Carry the data render completing on screen.
However, when screen sliding speed is very fast, a getView function can be called due to often slipping over an item, be
System can be created that a lot of threads, lead to same time memory thread excessive, Out of Memory, internal memory occurs and overflows(Out Of
Memory, OOM).
Therefore, a kind of it can be avoided that internal memory overflow asynchronous data loading scheme become urgent demand.
Content of the invention
Embodiment of the present invention problem to be solved be Android device view adapter carry out asynchronous data load when, easily
The problem that internal memory overflows occurs.
For solving the above problems, the embodiment of the present invention provides a kind of Adapter view asynchronous data loading side of Android device
Method, including:Adapter view unit receives operational order, sends to the acquisition view subelement of universal adapter unit and calls
Request;Described acquisition view subelement, according to the call request receiving, creates the thread loading asynchronous data, triggers asynchronous number
According to management class unit;The described thread loading asynchronous data is pushed away by the push task subelement that described asynchronous data manages class unit
Deliver in thread pool, when the number of threads in described thread pool reaches default threshold value, described push task subelement is by institute
State the new thread creating of acquisition view subelement to be ranked up waiting;Execution TU task unit calls the thread in thread pool to asynchronous
Data is loaded.
Optionally, the operational order that described Adapter view unit receives includes:Slip view adapter or slip focus
Control view adapter.
Optionally, described push task subelement adopts tree graph, and the thread of the loading asynchronous data creating is ranked up.
Optionally, described execution TU task unit first transfers the thread entering into afterwards in thread pool.
Optionally, described execution TU task unit calls the thread in thread pool that asynchronous data is loaded, including:Described
Execution TU task unit calls asynchronous data to execute the execution function in class unit, to call the thread in thread pool to asynchronous data
Loaded.
Optionally, described acquisition view subelement clocked flip asynchronous data management class unit.
Optionally, the described timing cycle obtaining view subelement clocked flip asynchronous data management class unit is 200 millis
Second was to 2 seconds.
Optionally, described asynchronous data management class unit also includes:If obtaining view subelement in current timing cycle
Inside receive call request, then asynchronous data manages the cancellation of class unit and obtains the line that view subelement creates in a upper timing cycle
Journey.
Optionally, when the described call number obtaining view subelement reaches predetermined number threshold value, the described triggering of execution is different
Step data manages the operation of class unit.
Optionally, the Adapter view asynchronous data loading method of described Android device also includes:Data holding unit,
The asynchronous data that described loading is completed is preserved.
Optionally, the called number of times of the asynchronous data of described preservation is judged, if called number of times is 0, will
Corresponding data abandons;If called number of times is not 0, continue to preserve.
Optionally, the Adapter view of described Android device includes following at least one:List View, grid view and picture
Corridor.
For solving the above problems, the embodiment of the present invention also provides a kind of Adapter view asynchronous data of Android device to load
Device, including:Adapter view unit, for when receiving operational order, to acquisition view of universal adapter unit
Unit sends call request;Universal adapter unit, including obtaining view subelement, described acquisition view subelement is used for basis
The call request receiving, creates the thread loading asynchronous data, triggering asynchronous data management class unit;Asynchronous data manages class
Unit, including push task subelement, described push task subelement is used for being pushed to the described thread loading asynchronous data
In thread pool, when the number of threads in described thread pool reaches default threshold value, described acquisition view subelement is newly created
Thread be ranked up wait;Execution TU task unit, for calling the thread in thread pool that asynchronous data is loaded.
Optionally, described Adapter view unit is used for receiving slip view adapter or slip focal point control view adaptation
The operational order of device.
Optionally, described push task subelement, for adopting tree graph, is carried out to the thread of the loading asynchronous data creating
Sequence.
Optionally, described execution TU task unit, for first transferring the thread entering into afterwards in thread pool.
Optionally, described execution TU task unit, for calling asynchronous data to execute the execution function in class unit, to call
Thread in thread pool loads to asynchronous data.
Optionally, described acquisition view subelement, manages class unit for clocked flip asynchronous data.
Optionally, the described timing cycle obtaining view subelement clocked flip asynchronous data management class unit is 200 millis
Second was to 2 seconds.
Optionally, described asynchronous data manages class unit, is additionally operable to acquisition view subelement and receives in current timing cycle
During to call request, cancel the thread that described acquisition view subelement creates in a upper timing cycle.
Optionally, data holding unit, the asynchronous data for completing described loading is preserved.
Optionally, data holding unit, for preserving the asynchronous data that called number of times is not 0.
Optionally, the Adapter view of described Android device includes following at least one:List View, grid view and picture
Corridor.
Compared with prior art, the technical scheme of the embodiment of the present invention has advantages below:
By the way of pushing, the thread loading asynchronous data is pushed in thread pool, to the thread loading in thread pool
Number is limited, and after the number of threads in thread pool exceedes default threshold value, remaining thread enters enqueue and waits, permissible
The CPU overhead of protection system effectively, prevents the appearance of OOM problem.
Further, obtain view subelement and periodically trigger asynchronous data management class unit, or reach in call number
Triggering asynchronous data management class unit during default amount threshold is so that asynchronous data management class unit is in described timing cycle
Or obtain the number of threads that view subelement creates in described default amount threshold, form a current batch loading,
And to obtaining the loading asynchronous data that creates in a upper timing cycle or in default amount threshold of view subelement
Thread carry out cancel operation.By this method, asynchronous data management class unit is in a timing cycle or default number
It is only necessary to process in current timing cycle or line that in default amount threshold, acquired view subelement creates in amount threshold value
Journey, the pending number of threads such as decreases, and alleviates system processing pressure, effectively saves the flow of user.
Brief description
Fig. 1 is the Adapter view asynchronous data loading method flow chart of the Android device in the embodiment of the present invention one;
Fig. 2 is the Adapter view asynchronous data loading method flow chart of the Android device in the embodiment of the present invention two;
Fig. 3 is the Adapter view asynchronous data charger structural representation of the Android device in the embodiment of the present invention three
Figure.
Specific embodiment
In prior art, when screen slip is detected, AdapterView can trigger in GenericAdapter
GetView function, often detects and slips over one of table data item and all call a getView function, create a line
Journey goes to load asynchronous data.However, when screen sliding speed is very fast, can call once due to often slipping over an item
GetView function, system can be created that a lot of threads, lead to same time memory thread excessive, Out of Memory, occur
OOM problem.
For solving the above problems, the thread loading asynchronous data is pushed to line by the way of pushing by the embodiment of the present invention
Cheng Chizhong, limits to the number of threads loading in thread pool, after the number of threads in thread pool exceedes default threshold value,
Be introduced into the thread of thread pool, that is, the new thread creating enters enqueue and waits, can protection system effectively CPU overhead, prevent
The only appearance of OOM problem.
Understandable for enabling the above objects, features and advantages of the present invention to become apparent from, below in conjunction with the accompanying drawings to the present invention
Specific embodiment be described in detail.
Embodiment one
Present embodiments provide a kind of Adapter view asynchronous data loading method of Android device, with reference to Fig. 1, below lead to
Cross concrete steps to be described in detail:
Step S101, Adapter view unit receives operational order, single to acquisition view of universal adapter unit
Unit sends call request.
In being embodied as, Adapter view unit can be AdapterView, and universal adapter unit can be
GenericAdapter, obtaining view subelement can be getView function.The operational order that AdapterView receives can
To be divided into two kinds:Slip AdapterView or slip focal point control AdapterView.AdapterView is according to the behaviour receiving
Instruct, call the getView function of GenericAdapter.
Step S102, described acquisition view subelement, according to the call request receiving, creates the line loading asynchronous data
Journey, triggering asynchronous data management class unit.
In being embodied as, asynchronous data management class unit can be AsyncDataManager class.Often detect and slip over
One of table data item calls a getView function, the line of one loading asynchronous data of getView function creation
Journey, triggers AsyncDataManager class.
Step S103, described asynchronous data manages the pushs task subelement of class unit by the line of described loading asynchronous data
Journey is pushed in thread pool, when the number of threads in described thread pool reaches default threshold value, described push task subelement
The described new thread creating of view subelement that obtains is ranked up waiting.
In being embodied as, the thread of getView function creation is pushed in thread pool AsyncDataManager class.
Number of threads in thread pool has the upper limit, such as it is allowed at most there are 5 threads in thread pool simultaneously.When the line in thread pool
When number of passes mesh reaches the predetermined number upper limit, for getView function, new thread execution sequence creating etc. is to be operated.
Step S104, execution TU task unit calls the thread in thread pool that asynchronous data is loaded.
In being embodied as, can be using ExecuteTask as execution TU task unit.Can carry out in the following manner
Asynchronous data loads:ExecuteTask calls asynchronous data execution class unit(AsyncDataExecutor)In execution
(onExecute)Function, to call the thread in thread pool, loads to asynchronous data.
Using the scheme of the present embodiment, by the way of pushing, the thread loading asynchronous data is pushed in thread pool,
The number of threads loading in thread pool is limited, after the number of threads in thread pool exceedes default threshold value, is introduced into
The thread of thread pool, the thread newly creating enters enqueue and waits, and can be effectively protected the CPU overhead of system, prevent OOM
The appearance of problem.
In being embodied as, such scheme can also be made with further extension.Carry out in detail below by way of specific embodiment
Describe in detail bright.
Embodiment two
Present embodiments provide a kind of Adapter view asynchronous data loading method of Android device, with reference to Fig. 2, below lead to
Cross concrete steps to be described in detail:
Step S201, AdapterView receives slide instruction, calls the getView letter of GenericAdapter
Number.
In being embodied as, the operational order that AdapterView receives can be divided into two kinds:Slip AdapterView
Or slip focal point control AdapterView.AdapterView, according to the operational order receiving, calls GenericAdapter
GetView function.
Step S202, getView function creation loads the thread of asynchronous data, clocked flip AsyncDataManager
Class.
In being embodied as, in a timing cycle, getView function may receive a plurality of call request.According to calling
Request, the corresponding thread loading asynchronous data of getView function creation, but the thread of the loading asynchronous data now creating is simultaneously
Do not trigger AsyncDataManager class immediately, and be by waiting.At the end of a timing cycle, getView function
The thread triggering AsyncDataManager class creating in timing cycle, and execution step S203.
In being embodied as, the timing cycle of getView function clocked flip AsyncDataManager class can be 200
Millisecond was to 2 seconds.In the present embodiment, timing cycle is set to 1 second.
Step S203, AsyncDataManager class calculates the AdapterView item being currently needed for loading asynchronous data
Number, forms a current batch loading, and cancels a upper batch loading.
In being embodied as, AsyncDataManager class is using calculating asynchronous data(computeAsyncData)Letter
Number, the number of the loading asynchronous data thread that getView function in step S202 is created in the timing cycle of 1 second is carried out
Calculate, and form a current batch loading(ExecuteRunnable).AsyncDataManager class pair simultaneously
The thread loading asynchronous data that getView function creates in a upper timing cycle carries out cancelling operation.
Step S204, PushTask is ranked up to the thread in current loading batch, and thread is pushed to thread pool
In.
In the present embodiment, using PushTask as push task subelement.Number of threads in thread pool has the upper limit, this
Allow be up to 5 threads in thread pool to exist in embodiment simultaneously.
In being embodied as, the current thread loading batch is pushed away successively by PushTask according to the creation time length of thread
Deliver in thread pool.If currently loading the number of threads of batch more than 5, according to the creation time of thread, when taking establishment
Between the shortest 5 threads, be pushed to successively in thread pool.For example, the current Thread Count loading batch is 10, according to timing week
In phase, the creation time length of thread is ranked up, and thread 1 is creation time thread the longest, and thread 10 is that creation time is the shortest
Thread.In this case, the shortest 5 threads of creation time are selected, that is, thread 6 is to thread 10, successively by thread 6 to thread
10 put in thread pool, and remaining thread 1 to thread 5 is then etc. pending.
Step S205, ExecuteTask transfers the thread in thread pool.
In being embodied as, ExecuteTask transfers the thread in thread pool, and mode of transferring is first to transfer to enter thread afterwards
Thread in pond.
Step S206, ExecuteTask calls the onExecute function in AsyncDataExecutor, exchanges taking-up
The thread loading asynchronous data carries out asynchronous data loading.
In being embodied as, after step S201 to step S206, can also preserve loading the asynchronous data completing
In data holding unit, so that when the asynchronous data that loading completes needs re invocation, can directly keep from data
Call in unit, without being reloaded, improve system effectiveness.
In being embodied as, such scheme can also be done and optimize further.For example, data holding unit can be to preservation
The called number of times of asynchronous data judged, if call number is 0, corresponding data is abandoned;If called number of times
It is not 0, then continues to preserve, such that it is able to the effective space discharging data holding unit.
Using the scheme of the present embodiment, the triggering AsyncDataManager class of getView function timing,
AsyncDataManager class calculates the number of threads of getView function creation in timing cycle, forms a current loading
Batch, and the thread batch loading asynchronous data that getView function is created in a upper timing cycle carries out
Cancel operation.By this method, AsyncDataManager class only needs to process current timing week in a timing cycle
The thread of getView function creation in phase, the pending number of threads such as decreases, and alleviates the pressure that system is processed.And
In current timing cycle, when getView function receives call request, asynchronous data management class unit cancels getView function
The thread creating in a upper timing cycle, can save the flow of user.
Additionally, judging to having loaded the asynchronous data service condition completing, the asynchronous data not used is abandoned,
The memory pressure of system can be alleviated.
It is understood that in being embodied as, step S202 can also be entered to the call request number of times of getView function
Line pipe is managed, when the call number of getView function reaches predetermined number threshold value, just execution triggering AsyncDataManager class
Operation.For example, only when the call request that getView function receives reaches 5, the thread of getView function creation is
Can go to trigger AsyncDataManager class, and the operation after executing.
For making those skilled in the art more fully understand and realizing the present invention, the embodiment of the present invention additionally provides corresponding shifting
The driving coalignment of dynamic terminal.It is described in detail below by way of specific embodiment.
Embodiment three
Present embodiments provide a kind of Adapter view asynchronous data charger of Android device, with reference to Fig. 3, described different
Step data charger includes:Adapter view unit 301, universal adapter unit 302, asynchronous data management class unit 303,
Execution TU task unit 304, wherein:
Adapter view unit 301, for when receiving operational order, the acquisition to universal adapter unit 302 regards
Figure subelement 3021 sends call request;
Universal adapter unit 302, including obtaining view subelement 3021, described acquisition view subelement 3021 is used for root
According to the call request receiving, create the thread loading asynchronous data, triggering asynchronous data management class unit 303;
Asynchronous data manages class unit 303, and including push task subelement 3031, described push task subelement 3031 is used
In being pushed to the described thread loading asynchronous data in thread pool, when the number of threads in described thread pool reaches default threshold
During value, the thread that described acquisition view subelement 3021 is newly created is ranked up waiting;
Execution TU task unit 304, for calling the thread in thread pool that asynchronous data is loaded.
In being embodied as, described Adapter view unit 301 can be used for receiving slip view adapter or slides burnt
Point controls the operational order of view adapter.
In being embodied as, obtain view subelement 3021 and can be used for clocked flip asynchronous data management class unit 303,
Timing cycle can be 200 milliseconds to 2 seconds.In the present embodiment, timing cycle is set to 1 second.
In being embodied as, asynchronous data management class unit 303 can be additionally used in obtaining view subelement 3021 currently fixed
When the cycle in when receiving call request, cancel described obtaining the thread that view subelement 3021 creates in a upper timing cycle.
In being embodied as, push task subelement 3031 and can adopt tree graph, the line to the loading asynchronous data creating
Journey is ranked up.
In being embodied as, execution TU task unit 304 can first transfer the thread entering in thread pool afterwards.
In being embodied as, execution TU task unit 304 can be used for the execution letter calling asynchronous data to execute in class unit
Number, to call the thread in thread pool that asynchronous data is loaded.
In the present embodiment, the Adapter view asynchronous data charger of described Android device can also include:Data is protected
Hold unit, after completing the loading to asynchronous data when execution TU task unit, preserve and load the data completing.Specifically real
Shi Zhong, described data holding unit can be only used for preserving the asynchronous data that called number of times is not 0.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completed with the hardware instructing correlation by program, this program can be stored in a computer-readable recording medium, storage
Medium can include:ROM, RAM, disk or CD etc..
Although present disclosure is as above, the present invention is not limited to this.Any those skilled in the art, without departing from this
In the spirit and scope of invention, all can make various changes or modifications, therefore protection scope of the present invention should be with claim institute
The scope limiting is defined.
Claims (22)
1. a kind of Adapter view asynchronous data loading method of Android device is it is characterised in that include:
Adapter view unit receives operational order, sends to call to the acquisition view subelement of universal adapter unit and asks
Ask;
Described acquisition view subelement, according to the call request receiving, creates the thread loading asynchronous data, triggers asynchronous number
According to management class unit;
The described thread loading asynchronous data is pushed to thread by the push task subelement that described asynchronous data manages class unit
Chi Zhong, when the number of threads in described thread pool reaches default threshold value, described acquisition is regarded by described push task subelement
The new thread creating of figure subelement is ranked up waiting;
Execution TU task unit calls asynchronous data to execute the execution function in class unit, to call the thread in thread pool to asynchronous
Data is loaded.
2. the Adapter view asynchronous data loading method of Android device as claimed in claim 1 is it is characterised in that described fit
The operational order that orchestration view unit receives includes:Slip view adapter or slip focal point control view adapter.
3. the Adapter view asynchronous data loading method of Android device as claimed in claim 1 is it is characterised in that described push away
The task subelement of sending adopts tree graph, and the thread of the loading asynchronous data creating is ranked up.
4. the Adapter view asynchronous data loading method of Android device as claimed in claim 3 is it is characterised in that described hold
Row TU task unit first transfers the thread entering into afterwards in thread pool.
5. the Adapter view asynchronous data loading method of Android device as claimed in claim 1 is it is characterised in that described obtain
Take view subelement clocked flip asynchronous data management class unit.
6. the Adapter view asynchronous data loading method of Android device as claimed in claim 5 is it is characterised in that described obtain
The timing cycle that view subelement clocked flip asynchronous data manages class unit is taken to be 200 milliseconds to 2 seconds.
7. the Adapter view asynchronous data loading method of the Android device as described in claim 5 or 6 is it is characterised in that institute
State asynchronous data management class unit also to include:If obtaining view subelement to receive call request in current timing cycle,
Asynchronous data manages class unit and cancels the thread obtaining view subelement in upper timing cycle establishment.
8. the Adapter view asynchronous data loading method of Android device as claimed in claim 1 is it is characterised in that described obtain
When taking the call number of view subelement to reach predetermined number threshold value, execution described triggering asynchronous data manages the behaviour of class unit
Make.
9. the Adapter view asynchronous data loading method of Android device as claimed in claim 1 is it is characterised in that also wrap
Include:Data holding unit, the asynchronous data that described loading is completed is preserved.
10. the Adapter view asynchronous data loading method of Android device as claimed in claim 9 is it is characterised in that to institute
The called number of times stating the asynchronous data of preservation is judged, if called number of times is 0, corresponding data is abandoned;If quilt
Call number is not 0, then continue to preserve.
The Adapter view asynchronous data loading method of 11. Android device as claimed in claim 1 is it is characterised in that described
The Adapter view of Android device includes following at least one:List View, grid view and gallery.
A kind of Adapter view asynchronous data charger of 12. Android device is it is characterised in that include:
Adapter view unit, for when receiving operational order, sending out to the acquisition view subelement of universal adapter unit
Send call request;
Universal adapter unit, including obtaining view subelement, described acquisition view subelement is used for according to calling of receiving
Request, creates the thread loading asynchronous data, triggering asynchronous data management class unit;
Asynchronous data manages class unit, and including push task subelement, described push task subelement is used for will be different for described loading
The thread of step data is pushed in thread pool, when the number of threads in described thread pool reaches default threshold value, obtains described
The new thread creating of view subelement is taken to be ranked up waiting;
Execution TU task unit, for calling asynchronous data to execute the execution function in class unit, to call the thread in thread pool
Asynchronous data is loaded.
The Adapter view asynchronous data charger of 13. Android device as claimed in claim 12 is it is characterised in that described
Adapter view unit is used for receiving slip view adapter or the operational order of slip focal point control view adapter.
The Adapter view asynchronous data charger of 14. Android device as claimed in claim 12 is it is characterised in that described
Push task subelement, for adopting tree graph, is ranked up to the thread of the loading asynchronous data creating.
The Adapter view asynchronous data charger of 15. Android device as claimed in claim 14 is it is characterised in that described
Execution TU task unit, for first transferring the thread entering into afterwards in thread pool.
The Adapter view asynchronous data charger of 16. Android device as claimed in claim 12 is it is characterised in that described
Obtain view subelement, manage class unit for clocked flip asynchronous data.
The Adapter view asynchronous data charger of 17. Android device as claimed in claim 16 is it is characterised in that described
The timing cycle obtaining view subelement clocked flip asynchronous data management class unit is 200 milliseconds to 2 seconds.
The Adapter view asynchronous data charger of 18. Android device as described in claim 16 or 17 it is characterised in that
Described asynchronous data manages class unit, is additionally operable to obtain view subelement when receiving call request in current timing cycle, takes
The thread that the described acquisition view subelement that disappears creates in a upper timing cycle.
The Adapter view asynchronous data charger of 19. Android device as claimed in claim 12 is it is characterised in that also wrap
Include:Data holding unit, the asynchronous data for completing described loading is preserved.
The Adapter view asynchronous data charger of 20. Android device as claimed in claim 19 is it is characterised in that data
Holding unit, for preserving the asynchronous data that called number of times is not 0.
The Adapter view asynchronous data charger of 21. Android device as claimed in claim 12 is it is characterised in that described
The Adapter view of Android device includes following at least one:List View, grid view and gallery.
A kind of 22. Android device are it is characterised in that include the asynchronous number of Adapter view described in any one of claim 12 to 21
According to charger.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310401857.XA CN103455355B (en) | 2013-09-05 | 2013-09-05 | Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310401857.XA CN103455355B (en) | 2013-09-05 | 2013-09-05 | Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103455355A CN103455355A (en) | 2013-12-18 |
CN103455355B true CN103455355B (en) | 2017-02-22 |
Family
ID=49737762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310401857.XA Expired - Fee Related CN103455355B (en) | 2013-09-05 | 2013-09-05 | Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103455355B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104035668A (en) * | 2014-06-24 | 2014-09-10 | 广州金山网络科技有限公司 | Method and system for optimization of sliding performance of asynchronously loaded data and mobile terminal |
CN104219231A (en) * | 2014-08-25 | 2014-12-17 | 华中科技大学 | Multi-protocol communication framework and communication method based on Android system |
CN105893006A (en) * | 2015-07-13 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Resource recovery method and device |
CN106775699B (en) * | 2016-12-09 | 2021-07-23 | 武汉斗鱼网络科技有限公司 | Method and system for updating UI in asynchronous thread |
WO2019071616A1 (en) * | 2017-10-09 | 2019-04-18 | 华为技术有限公司 | Processing method and device |
CN110659140B (en) * | 2018-06-30 | 2022-01-04 | 武汉斗鱼网络科技有限公司 | Instruction execution method and related equipment |
CN109359111B (en) * | 2018-09-30 | 2021-01-01 | 武汉斗鱼网络科技有限公司 | Android view access method and device |
CN111352555A (en) * | 2018-12-24 | 2020-06-30 | 中移(杭州)信息技术有限公司 | List sliding performance optimization method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110016624A (en) * | 2009-08-12 | 2011-02-18 | 삼성전자주식회사 | Electronic apparatus and method of controlling the same |
CN102520918A (en) * | 2011-09-27 | 2012-06-27 | 深圳市五巨科技有限公司 | Method and device for increasing list refreshing frequency |
-
2013
- 2013-09-05 CN CN201310401857.XA patent/CN103455355B/en not_active Expired - Fee Related
Non-Patent Citations (1)
Title |
---|
[Android实例] Handler+ExecutorService(线程池)+MessageQueue模式+缓存模式;zxciop 110;《http://www.eoeandroid.com/thread-210082-1-1.html?_dsign=1b202888》;20121025;正文第1页第1段-第6页第1段 * |
Also Published As
Publication number | Publication date |
---|---|
CN103455355A (en) | 2013-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455355B (en) | Android equipment, and asynchronous data uploading method and device for AdapterView of Android equipment | |
US8438572B2 (en) | Task scheduling method and apparatus | |
CN107450971B (en) | Task processing method and device | |
CN106775977B (en) | Task scheduling method, device and system | |
JP5214537B2 (en) | Multiprocessor system | |
RU2011122658A (en) | ISOLATION OF ACCEPTED INFORMATION ON A LOCKED DEVICE | |
US8516492B2 (en) | Soft partitions and load balancing | |
TW201303613A (en) | Distributed computing framework | |
US20190188030A1 (en) | Terminal background application management method and apparatus | |
JP2002269023A5 (en) | ||
JP2004032687A (en) | Intelligent mixing of incoming and outgoing communication | |
CN104202261A (en) | Service request processing method and device | |
US20170047069A1 (en) | Voice processing method and device | |
CN104199739A (en) | Speculation type Hadoop scheduling method based on load balancing | |
CN104837187B (en) | The power-economizing method and device of radio reception device | |
CN105245372A (en) | Optimization method for loading network resources based on cache and asynchronous mechanism | |
CN105630583A (en) | Data processing method and device | |
CN111143063B (en) | Task resource reservation method and device | |
JP6403976B2 (en) | Computer program, information processing apparatus, and process execution method | |
CN103488506B (en) | A kind of method and device for managing application program unloading | |
CN105847531A (en) | Picture displaying method and device for mobile terminal | |
CN112052077A (en) | Method, device, equipment and medium for software task management | |
CN113014659B (en) | Microservice migration method and device, storage medium and electronic equipment | |
US10374832B2 (en) | Optimized resource management in core network elements | |
JP2005115620A (en) | Task management method and electronic apparatus having task management means |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170222 Termination date: 20200905 |
|
CF01 | Termination of patent right due to non-payment of annual fee |