CN104424333A - Method and system for loading table data - Google Patents

Method and system for loading table data Download PDF

Info

Publication number
CN104424333A
CN104424333A CN201310412367.XA CN201310412367A CN104424333A CN 104424333 A CN104424333 A CN 104424333A CN 201310412367 A CN201310412367 A CN 201310412367A CN 104424333 A CN104424333 A CN 104424333A
Authority
CN
China
Prior art keywords
image data
data
loading
download
thread
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.)
Pending
Application number
CN201310412367.XA
Other languages
Chinese (zh)
Inventor
杜兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Founder Information Industry Holdings Co Ltd
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Founder Information Industry Holdings Co Ltd, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Founder Information Industry Holdings Co Ltd
Priority to CN201310412367.XA priority Critical patent/CN104424333A/en
Publication of CN104424333A publication Critical patent/CN104424333A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and system for loading table data. The method comprises the steps: during the loading of the table data, determining picture data in a current screen in a data list; if the picture data have been downloaded to a local cache, loading the picture data in the local cache, so as to display pictures; if the picture data are not downloaded to the local cache, displaying set information on the current screen, and starting a thread to asynchronously download the picture data; after the downloading of the picture data is completed, storing the picture data in the local cache, and loading the picture data, so as to update the set information to the pictures corresponding to the picture data. By using the method and the system, the picture display speed can be increased, interface blockage is avoided, and the waste of mobile phone traffics of users is lowered.

Description

List data loading method and system
Technical field
The present invention relates to Data import technical field, be specifically related to a kind of list data loading method and system.
Background technology
At present, the method for data that mobile phone Loads Image mainly obtains data by main thread from server, shows after having obtained all data on interface again, even and if each data do not change and again obtain from server yet.The main process of the data that Load Image is as follows:
(1) data list is obtained: in main thread, obtain all data lists.
(2) download pictures: all image datas once downloading the current list, when picture has not been downloaded, Pictures location is blank.
(3) picture presentation: after picture has all been downloaded, interface is once shown.
(4) more new data: again obtain all data from server.
This Data import mode has following shortcoming:
(1) in main thread, obtain data, interface is blocked for a long time, can not carry out other operations, such as can not exit current page.
(2) once load all pictures on form, even if also all do not download at the picture of current interface display, not only waste user mobile phone flow, and likely cause mobile phone EMS memory exhaust and cause program crashing.
(3), when picture has not loaded, Pictures location is blank, poor user experience.
(4) when the picture downloaded needs again to obtain, even if server does not upgrade, also need again to download, waste a large amount of mobile phone flow of user, and the stand-by period is long.
Summary of the invention
The invention provides a kind of list data loading method and system, to solve the problem that when list data loads in prior art, interface is blocked, waste user mobile phone flow, Data import are slow.
For this reason, the invention provides following technical scheme:
A kind of list data loading method, comprising:
When carrying out list data and loading, determine the image data in data list in current screen;
If described image data downloads to local cache, then load the image data in described local cache, to Show Picture;
If described image data does not download to local cache, then display setting information on current screen, and open the described image data of the asynchronous download of thread;
After described image data has been downloaded, described image data is stored in described local cache, and loads described image data, so that described set information is updated to picture corresponding to described image data.
Preferably, described set information comprises: setting picture and/or setting word.
Preferably, described setting picture is LOGO mark.
Preferably, described method also comprises: set the Thread Count simultaneously carried out in thread pool and described thread pool;
The described image data of the asynchronous download of described unlatching thread comprises:
After receiving an image data download request, open a thread process described request in described thread pool, to complete the download of described image data;
After download completes, discharge described thread.
Preferably, described method also comprises:
During screen scroll, show described set information;
After screen scroll stops, loading the image data in current screen in data list.
Preferably, described method also comprises:
In described image data downloading process, monitoring current network state;
If current network changes, then send information to user.
A kind of list data loading system, comprising:
Determining unit, for when carrying out list data and loading, determines the image data in data list in current screen;
Inspection unit, for checking whether described image data downloads to local cache;
Loading unit, for when described image data has downloaded to local cache, has loaded the image data in described local cache; When described image data does not download to local cache, open the described image data of the asynchronous download of thread; After described image data has been downloaded, described image data is stored in described local cache, and loads described image data;
Display unit, for the picture that the image data showing the loading of described loading unit on current screen is corresponding, and when described loading unit downloads described image data, display setting information on current screen, download at described loading unit and load after described image data completes, described set information being updated to picture corresponding to described image data.
Preferably, described system also comprises:
Thread pool setting unit, for setting the Thread Count carried out in thread pool and described thread pool simultaneously;
After described loading unit receives an image data download request, open a thread process described request in described thread pool, to complete the download of described image data; And after the download is complete, discharge described thread.
Preferably, described display unit, also for when screen scroll, shows described set information;
Correspondingly, described loading unit, also for after screen scroll stops, loading the image data in current screen in data list.
Preferably, described system also comprises:
Network monitoring unit, in described image data downloading process, monitoring current network state; If current network changes, then send information to user.
The list data loading method that the embodiment of the present invention provides and system, when carrying out list data and loading, not all image datas as prior art in a downloading data list, and the image data only downloaded in the data list that current screen sees, do not download at the image data of current screen, download the picture that current screen is not downloaded when slip form again.And, if described image data downloads to local cache, then directly to load from local cache; If described image data does not download to local cache, then display setting information on current screen, and open the described image data of the asynchronous download of thread, after described image data has been downloaded, load described image data, so that described set information is updated to picture corresponding to described image data.So both add the display speed of picture, effectively prevent interface and block, and adopt the image data of local cache and only loading current screen display, greatly reduce the waste of user mobile phone flow
Further, by the situation that real-time supervisory user cell phone network changes, and when monitoring current network and changing, information is sent to user, such as, when user mobile phone network changes to 3G from WIFI, whether prompting user stops data downloading in time, efficiently avoid the waste of user mobile phone flow.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the present invention, for those of ordinary skill in the art, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of embodiment of the present invention list data loading method;
Fig. 2 is a kind of structural representation of embodiment of the present invention list data loading system;
Fig. 3 is the another kind of structural representation of embodiment of the present invention list data loading system.
Embodiment
In order to the scheme making those skilled in the art person understand the embodiment of the present invention better, below in conjunction with drawings and embodiments, the embodiment of the present invention is described in further detail.
Because mobile phone screen is smaller, and form generally can be long, one screen cannot not show completely, need display of sliding, check other data, therefore, Problems existing is loaded for list data in prior art, the embodiment of the present invention provides a kind of list data loading method and system, when carrying out list data and loading, not all image datas as prior art in a downloading data list, and the image data only downloaded in the data list that current screen sees, do not download at the image data of current screen, the picture that current screen is not downloaded is downloaded again when slip form, thus effectively prevent interface obstruction, add the display speed of picture.And when download pictures data, on current screen, display setting information, improves Consumer's Experience.
As shown in Figure 1, be the process flow diagram of embodiment of the present invention list data loading method, comprise the following steps:
Step 101, when carrying out list data and loading, determines the image data in data list in current screen;
Step 102, checks whether described image data downloads to local cache.If so, then step 103 is performed; Otherwise, perform step 104.
Step 103, loads the image data in described local cache, to Show Picture.
Step 104, display setting information on current screen, and open the described image data of the asynchronous download of thread.
Wherein, described set information can be: setting picture and/or setting word, and such as setting picture is LOGO mark etc.
It should be noted that, in actual applications, the Thread Count (such as 3 to 5) simultaneously carried out in thread pool and described thread pool can be set, to avoid opening too much thread, cause system resource exhaustion.
Correspondingly, when carrying out image data and downloading, after an image data download request can be received, a thread process described request in described thread pool is opened, to complete the download of described image data; After download completes, release its respective thread.
In addition, for the list data not needing to show (such as user does not also wait until that picture has been downloaded, and just slided out current cell screen, becomes invisible), it can be cancelled from thread pool, namely discharge its respective thread.
Step 105, after described image data has been downloaded, is stored in described local cache by described image data, and loads described image data, so that described set information is updated to picture corresponding to described image data.
In addition, it should be noted that, in embodiments of the present invention, during screen scroll, show described set information; After screen scroll stops, loading the image data in current screen in data list, so that described set information is updated to picture corresponding to described image data.
As can be seen here, the list data loading method utilizing the embodiment of the present invention to provide, can effectively prevent interface and block, improve the display speed of picture.And when download pictures data, on current screen, display setting information, substantially improves Consumer's Experience.
Further, in an alternative embodiment of the invention, can also in described image data downloading process, Real-Time Monitoring current network state, if current network changes, then sends information to user.Such as, when user mobile phone network changes to 3G from WIFI, whether prompting user stops data downloading in time, thus efficiently avoid the waste of user mobile phone flow.
Correspondingly, the embodiment of the present invention also provides a kind of list data loading system, as shown in Figure 2, is a kind of structural representation of this system.
In this embodiment, described system comprises:
Determining unit 201, for when carrying out list data and loading, determines the image data in data list in current screen;
Inspection unit 202, for checking whether described image data downloads to local cache;
Loading unit 203, for when described image data has downloaded to local cache, has loaded the image data in described local cache; When described image data does not download to local cache, open the described image data of the asynchronous download of thread; After described image data has been downloaded, described image data is stored in described local cache, and loads described image data;
Display unit 204, for the picture that the image data showing the loading of described loading unit 203 on current screen is corresponding, and when described loading unit 203 downloads described image data, display setting information on current screen, download at described loading unit 203 and load after described image data completes, described set information being updated to picture corresponding to described image data.
It should be noted that, above-mentioned set information can be: setting picture and/or setting word, and such as setting picture is LOGO mark etc.
In actual applications, described system also comprises: thread pool setting unit (not shown), for setting the Thread Count carried out in thread pool and described thread pool simultaneously.
Correspondingly, after loading unit 203 receives an image data download request, open a thread process described request in described thread pool, to complete the download of described image data; And after the download is complete, discharge described thread.
In addition, in embodiments of the present invention, when display unit 204 is also used in screen scroll, described set information is shown.Correspondingly, loading unit 203, also for after screen scroll stops, loading the image data in current screen in data list.
The list data loading system that the embodiment of the present invention provides, when carrying out list data and loading, not all image datas as prior art in a downloading data list, and the image data only downloaded in the data list that current screen sees, do not download at the image data of current screen, download the picture that current screen is not downloaded when slip form again.And, if described image data downloads to local cache, then directly to load from local cache; If described image data does not download to local cache, then display setting information on current screen, and open the described image data of the asynchronous download of thread, after described image data has been downloaded, load described image data, so that described set information is updated to picture corresponding to described image data.So both add the display speed of picture, effectively prevent interface and block, and adopt the image data of local cache and only loading current screen display, greatly reduce the waste of user mobile phone flow.
As shown in Figure 3, be the another kind of structural representation of embodiment of the present invention list data loading system.
With embodiment illustrated in fig. 2 unlike, in this embodiment, described system also comprises:
Network monitoring unit 205, for carrying out in image data downloading process at download unit 203, monitoring current network state; If current network changes, then send information to user.Such as, when user mobile phone network changes to 3G from WIFI, whether prompting user stops data downloading in time.
Visible, the list data loading system utilizing the embodiment of the present invention to provide, not only can improve picture display speed, prevents interface from blocking, and can efficiently avoid the waste of user mobile phone flow.
It should be noted that the list data loading method that the embodiment of the present invention provides and system can be applied on multiple subscriber terminal equipment, such as mobile phone, IPAD etc.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Being described in detail the embodiment of the present invention above, applying embodiment herein to invention has been elaboration, the explanation of above embodiment just understands method and apparatus of the present invention for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a list data loading method, is characterized in that, comprising:
When carrying out list data and loading, determine the image data in data list in current screen;
If described image data downloads to local cache, then load the image data in described local cache, to Show Picture;
If described image data does not download to local cache, then display setting information on current screen, and open the described image data of the asynchronous download of thread;
After described image data has been downloaded, described image data is stored in described local cache, and loads described image data, so that described set information is updated to picture corresponding to described image data.
2. method according to claim 1, is characterized in that, described set information comprises: setting picture and/or setting word.
3. method according to claim 2, is characterized in that, described setting picture is LOGO mark.
4. method according to claim 1, is characterized in that, described method also comprises: set the Thread Count simultaneously carried out in thread pool and described thread pool;
The described image data of the asynchronous download of described unlatching thread comprises:
After receiving an image data download request, open a thread process described request in described thread pool, to complete the download of described image data;
After download completes, discharge described thread.
5. method according to claim 4, is characterized in that, described method also comprises:
During screen scroll, show described set information;
After screen scroll stops, loading the image data in current screen in data list.
6. the method according to any one of claim 1 to 5, is characterized in that, described method also comprises:
In described image data downloading process, monitoring current network state;
If current network changes, then send information to user.
7. a list data loading system, is characterized in that, comprising:
Determining unit, for when carrying out list data and loading, determines the image data in data list in current screen;
Inspection unit, for checking whether described image data downloads to local cache;
Loading unit, for when described image data has downloaded to local cache, has loaded the image data in described local cache; When described image data does not download to local cache, open the described image data of the asynchronous download of thread; After described image data has been downloaded, described image data is stored in described local cache, and loads described image data;
Display unit, for the picture that the image data showing the loading of described loading unit on current screen is corresponding, and when described loading unit downloads described image data, display setting information on current screen, download at described loading unit and load after described image data completes, described set information being updated to picture corresponding to described image data.
8. system according to claim 7, is characterized in that, described system also comprises:
Thread pool setting unit, for setting the Thread Count carried out in thread pool and described thread pool simultaneously;
After described loading unit receives an image data download request, open a thread process described request in described thread pool, to complete the download of described image data; And after the download is complete, discharge described thread.
9. system according to claim 8, is characterized in that,
Described display unit, also for when screen scroll, shows described set information;
Described loading unit, also for after screen scroll stops, loading the image data in current screen in data list.
10. the system according to any one of claim 7 to 9, is characterized in that, described system also comprises:
Network monitoring unit, in described image data downloading process, monitoring current network state; If current network changes, then send information to user.
CN201310412367.XA 2013-09-11 2013-09-11 Method and system for loading table data Pending CN104424333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310412367.XA CN104424333A (en) 2013-09-11 2013-09-11 Method and system for loading table data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310412367.XA CN104424333A (en) 2013-09-11 2013-09-11 Method and system for loading table data

Publications (1)

Publication Number Publication Date
CN104424333A true CN104424333A (en) 2015-03-18

Family

ID=52973307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310412367.XA Pending CN104424333A (en) 2013-09-11 2013-09-11 Method and system for loading table data

Country Status (1)

Country Link
CN (1) CN104424333A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547624A (en) * 2016-11-04 2017-03-29 武汉斗鱼网络科技有限公司 Picture loading method and device based on Android
CN106648513A (en) * 2016-12-28 2017-05-10 广州周立功单片机科技有限公司 Image display control method and device, microcontroller and electronic cigarette
CN107040584A (en) * 2017-02-22 2017-08-11 阿里巴巴集团控股有限公司 The method and device of client downloads picture
CN107331014A (en) * 2017-07-07 2017-11-07 北京广隆方略技术有限公司 A kind of easily scenic spot enters garden method and system
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN109388317A (en) * 2018-09-30 2019-02-26 武汉斗鱼网络科技有限公司 A kind of picture loading method, terminal device and storage medium
CN109391487A (en) * 2017-08-07 2019-02-26 贵州白山云科技股份有限公司 A kind of configuration update method and system
CN109684573A (en) * 2017-10-18 2019-04-26 北京京东尚科信息技术有限公司 Target Photo display methods and device, storage medium, electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794567A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and terminal for loading pictures
CN102346782A (en) * 2011-10-25 2012-02-08 中兴通讯股份有限公司 Method and device for displaying pictures on browser of user terminal as required
CN102541538A (en) * 2011-12-06 2012-07-04 Tcl集团股份有限公司 Picture displaying method and device based on mobile terminal
CN102789470A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Method and device for uploading pictures in webpage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794567A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and terminal for loading pictures
US20130024869A1 (en) * 2010-02-10 2013-01-24 Zte Corporation Picture loading method and terminal
CN102789470A (en) * 2011-05-20 2012-11-21 腾讯科技(深圳)有限公司 Method and device for uploading pictures in webpage
CN102346782A (en) * 2011-10-25 2012-02-08 中兴通讯股份有限公司 Method and device for displaying pictures on browser of user terminal as required
CN102541538A (en) * 2011-12-06 2012-07-04 Tcl集团股份有限公司 Picture displaying method and device based on mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547624A (en) * 2016-11-04 2017-03-29 武汉斗鱼网络科技有限公司 Picture loading method and device based on Android
CN106648513A (en) * 2016-12-28 2017-05-10 广州周立功单片机科技有限公司 Image display control method and device, microcontroller and electronic cigarette
CN107040584A (en) * 2017-02-22 2017-08-11 阿里巴巴集团控股有限公司 The method and device of client downloads picture
CN107040584B (en) * 2017-02-22 2020-04-17 阿里巴巴集团控股有限公司 Method and device for downloading picture by client
CN107331014A (en) * 2017-07-07 2017-11-07 北京广隆方略技术有限公司 A kind of easily scenic spot enters garden method and system
CN109391487A (en) * 2017-08-07 2019-02-26 贵州白山云科技股份有限公司 A kind of configuration update method and system
CN109684573A (en) * 2017-10-18 2019-04-26 北京京东尚科信息技术有限公司 Target Photo display methods and device, storage medium, electronic equipment
CN109684573B (en) * 2017-10-18 2021-10-15 北京京东尚科信息技术有限公司 Target picture display method and device, storage medium and electronic equipment
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN109388317A (en) * 2018-09-30 2019-02-26 武汉斗鱼网络科技有限公司 A kind of picture loading method, terminal device and storage medium
CN109388317B (en) * 2018-09-30 2022-04-12 武汉斗鱼网络科技有限公司 Picture loading method, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN104424333A (en) Method and system for loading table data
CN104750550B (en) Mobile terminal application management system, method and access times record generation method
US20150339261A1 (en) System and method for data transfer among the devices
CN108205411A (en) Display changeover method and device, terminal
CN109213462B (en) Android horizontal and vertical screen data synchronization method and device, terminal and readable medium
AU2021229220B2 (en) Image processing method and device
CN105868420A (en) Network resource loading mode configuration method and device
CN104951329A (en) Configuration and startup method of application templates and mobile terminal
CN108228293A (en) Interface skin switching method and device
CN103810010A (en) Information processing method and first electronic device terminal
CN105683917A (en) Communication device, communication system, communication method and communication program
US8812293B2 (en) Apparatus and method for changing language in mobile communication terminal
CN105912420A (en) Data backup method and device
US20150356112A1 (en) Method and electronic device for processing data
CN105490852B (en) A kind of upgrade detection method and device
CN108415732A (en) Screen protection display control method and micro-control unit MCU
CN107665142B (en) Method, terminal and computer readable storage medium for detecting interruption of application program business process
JP5860170B2 (en) Method and apparatus for implementing mobile broadband device service
CN113721936A (en) Application management method, intelligent terminal, device and storage medium
CN110032402A (en) Method for refreshing, refreshing apparatus, refreshing a device and storage medium
CN111930391B (en) Application data processing method and device, server and user terminal
US20100112995A1 (en) Method of providing mobile application
JP6257858B2 (en) Display control device, display device, display system, and program
CN102801605B (en) Method and device for displaying information
CN111803939B (en) Image rendering method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150318

RJ01 Rejection of invention patent application after publication