CN106528247A - Data refreshing method and device - Google Patents

Data refreshing method and device Download PDF

Info

Publication number
CN106528247A
CN106528247A CN201611077953.3A CN201611077953A CN106528247A CN 106528247 A CN106528247 A CN 106528247A CN 201611077953 A CN201611077953 A CN 201611077953A CN 106528247 A CN106528247 A CN 106528247A
Authority
CN
China
Prior art keywords
data
data item
refresh
refreshing
item
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.)
Granted
Application number
CN201611077953.3A
Other languages
Chinese (zh)
Other versions
CN106528247B (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611077953.3A priority Critical patent/CN106528247B/en
Publication of CN106528247A publication Critical patent/CN106528247A/en
Application granted granted Critical
Publication of CN106528247B publication Critical patent/CN106528247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a data refreshing method and device, and belongs to the technical field of terminals. The method comprises the following steps: when a checking command of a target data item is detected, displaying data content of the target data item; judging whether an identifier of the target data item is a specified identifier or not; when the identifier of the target data item is the specified identifier, judging whether a data refreshing event is triggered or not; and when the data refreshing event is triggered, refreshing data based on a stored first refreshing identifier. The device comprises a display module, a first judgement module, a second judgement module and a refreshing module. Through adoption of the data refreshing method and device, in a process of displaying the data content of the target data item, the data are refreshed through the identifier of the target data item and the data refreshing event without manual refreshing of a user, so that the data refreshing efficiency is increased.

Description

Method for refreshing data and device
Technical field
It relates to field of terminal technology, more particularly to a kind of method for refreshing data and device.
Background technology
With the fast development of terminal technology, the application program that can be installed in terminal is more and more, such as, social networking application Program, browser, news application program etc..In the running of application program, generally require to obtain from application server Fetch data, such as, when the application program is news application program, news data can be obtained from NEWS SERVER, and is led to Cross the news application program to be shown.In order to ensure the real-time of data, generally require to carry out data brush to the data for obtaining Newly.
In correlation technique, during terminal passes through application program display data, as the refreshing behaviour for detecting user's triggering When making, newest data can be obtained from application server, to realize Refresh Data, be that is to say, Refresh Data is typically logical Cross user manually to realize.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of method for refreshing data and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of method for refreshing data, methods described include:
When checking instruction of target data item is detected, the data content of the target data item, the target are shown Data item is any data item in currently displaying list of data items;
Judge identifying whether as designated identification for the target data item;
When the target data item is when being designated designated identification, judge whether Refresh Data event is triggered, the number It is used to indicate to refresh currently displayed data item according to refresh events;
When the Refresh Data event is triggered, Refresh Data is carried out based on the first refreshing identification of storage, described the One refreshing identification the last data item for being refreshed before being used to identify current time.
Alternatively, it is described judge the identifying whether as designated identification of the target data item before, also include:
At least one data item is selected from the list of data items;
The mark of at least one data item is set to into the designated identification.
Alternatively, it is described judge whether Refresh Data event is triggered before, also include:
Determine the displaying ratio of the data content of the target data item, the displaying ratio is the target data item The shared ratio in all data contents of the data item of display data content;
When the displaying ratio is more than or equal to default displaying ratio, the Refresh Data event is triggered.
Alternatively, it is described judge whether Refresh Data event is triggered before, also include:
Determine the display duration of the data content of the target data item;
When the display duration is more than or equal to default display duration, the Refresh Data event is triggered.
Alternatively, first refreshing identification based on storage carries out Refresh Data, including:
Refresh Data request is sent to the application server, the Refresh Data request carries described first and refreshes mark Know, the Refresh Data is asked for indicating that the application server returns the second refreshing identification and the second refreshing identification institute The data item of mark;
Receive the number identified by second refreshing identification and second refreshing identification of the application server transmission According to item;
Based on the data item identified by second refreshing identification, the list of data items is refreshed.
Alternatively, the data item identified based on second refreshing identification, is brushed to the list of data items Newly, including:
When instruction is checked in the end for detecting the target data item, the data identified by second refreshing identification Item is displayed in the specified location in the list of data items, to realize the refreshing of the list of data items.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of Refresh Data device, described device include:
Display module, for when when checking instruction of target data item is detected, showing the data of the target data item Content, the target data item are any data item in currently displaying list of data items;
First judge module, for judging the identifying whether as designated identification of the target data item;
Second judge module, for when the target data item is when being designated designated identification, judging Refresh Data event Whether it is triggered, the Refresh Data event is used to indicate to refresh currently displayed data item;
Refresh module, for when the Refresh Data event is triggered, entering line number based on the first refreshing identification of storage According to refreshing, first refreshing identification the last data item for being refreshed before being used to identify current time.
Alternatively, described device also includes:
Selecting module, at least one data item is selected from the list of data items;
Setup module, for the mark of at least one data item is set to the designated identification.
Alternatively, described device also includes:
First determining module, for determining the displaying ratio of the data content of the target data item, the displaying ratio For the shared ratio in all data contents of the data item of the display data content of the target data item;
First trigger module, for when the displaying ratio is more than or equal to default displaying ratio, triggering the data Refresh events.
Alternatively, described device also includes:
Second determining module, for determining the display duration of the data content of the target data item;
Second trigger module, for when the display duration is more than or equal to default display duration, triggering the data Refresh events.
Alternatively, the refresh module includes:
Sending submodule, for sending Refresh Data request to the application server, the Refresh Data request is carried First refreshing identification, the Refresh Data are asked for indicating that the application server returns the second refreshing identification and described The data item identified by second refreshing identification;
Receiving submodule, refreshes for receiving second refreshing identification and described second that the application server sends The identified data item of mark;
Refresh submodule, for the data item identified based on second refreshing identification, the list of data items is entered Row refreshes.
Alternatively, refresh submodule, specifically for:
When instruction is checked in the end for detecting the target data item, the data identified by second refreshing identification Item is displayed in the specified location in the list of data items, to realize the refreshing of the list of data items.
The technical scheme that embodiment of the disclosure is provided can include following beneficial effect:
In the disclosed embodiments, due to during the display of the data content of target data item, by judging target The identifying whether of data item is whether designated identification and Refresh Data event are triggered, and determines the need in target data The data content of item carries out Refresh Data during showing, that is to say, the embodiment of the present disclosure is in the data of target data item Automatically Refresh Data is carried out during the display of appearance, it is therefore not necessary to user's manual refreshing, and compared to user's manual refreshing, The embodiment of the present disclosure need not exit and be currently used in the interface of display data content and enter line number with the display interface in list of data items According to refreshing, and then without the need for the time of the waiting for server response in the display interface of list of data items, so as to improve data brush New efficiency.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
During accompanying drawing herein is merged in specification and the part of this specification is constituted, show the enforcement for meeting the disclosure Example, and be used for explaining the principle of the disclosure together with specification.
Fig. 1 is a kind of flow chart of the method for refreshing data according to an exemplary embodiment.
Fig. 2A is the flow chart of another kind of method for refreshing data according to an exemplary embodiment.
Fig. 2 B are a kind of schematic diagrames of the list of data items according to an exemplary embodiment.
Fig. 3 is the block diagram of the first the Refresh Data device according to an exemplary embodiment.
Fig. 4 is the block diagram of second Refresh Data device according to an exemplary embodiment.
Fig. 5 is the block diagram of the third Refresh Data device according to an exemplary embodiment.
Fig. 6 is the block diagram of the 4th kind of Refresh Data device according to an exemplary embodiment.
Fig. 7 is a kind of block diagram of the refresh module according to an exemplary embodiment.
Fig. 8 is the block diagram of the 5th kind of Refresh Data device according to an exemplary embodiment.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some described in detail in claims, the disclosure.
Before detailed explanation is carried out to the embodiment of the present disclosure, first the application scenarios of the embodiment of the present disclosure are given Introduce.Due in correlation technique, during terminal passes through application program display data, as the refreshing behaviour for detecting user's triggering When making, newest data can be obtained from application server, to realize Refresh Data, be that is to say, Refresh Data is typically logical Cross user manually to realize, during manual refreshing, needs exit the interface for being currently used in display data content to arrange in data item The display interface of table carries out Refresh Data, i.e. need the time of the waiting for server response in the display interface of list of data items, Affect the efficiency of Refresh Data.Therefore, the embodiment of the present disclosure provides a kind of method for refreshing data, by display target data During the data content of item, Refresh Data is carried out by the mark and data refresh events of target data item, need not be passed through User's manual refreshing, improves the efficiency of Refresh Data.
Fig. 1 is a kind of flow chart of the method for refreshing data according to an exemplary embodiment, as shown in figure 1, data Method for refreshing is used in terminal, comprises the following steps.
In a step 101, when detecting when checking instruction of target data item, the data content of display target data item, Target data item is any data item in currently displaying list of data items.
In a step 102, judge identifying whether as designated identification for target data item.
In step 103, when target data item is when being designated designated identification, judge whether Refresh Data event is touched Send out, Refresh Data event is used to indicate to refresh currently displayed data item.
At step 104, when Refresh Data event is triggered, data brush is carried out based on the first refreshing identification of storage Newly, before the first refreshing identification is used to the identify current time data item refreshed by the last time.
In the disclosed embodiments, due to during the display of the data content of target data item, by judging target The identifying whether of data item is whether designated identification and Refresh Data event are triggered, and determines the need in target data The data content of item carries out Refresh Data during showing, that is to say, the embodiment of the present disclosure is in the data of target data item Automatically Refresh Data is carried out during the display of appearance, it is therefore not necessary to user's manual refreshing, and compared to user's manual refreshing, The embodiment of the present disclosure need not exit and be currently used in the interface of display data content and enter line number with the display interface in list of data items According to refreshing, and then without the need for the time of the waiting for server response in the display interface of list of data items, so as to improve data brush New efficiency.
Alternatively, before judging the identifying whether as designated identification of target data item, also include:
At least one data item is selected from list of data items;
The mark of at least one data item is set to into designated identification.
Alternatively, before judging whether Refresh Data event is triggered, also include:
Determine the displaying ratio of the data content of target data item, display data of the displaying ratio for target data item The shared ratio in all data contents of data item of content;
When displaying ratio is more than or equal to default displaying ratio, trigger data refresh events.
Alternatively, before judging whether Refresh Data event is triggered, also include:
Determine the display duration of the data content of target data item;
When length is more than or equal to default display duration when displayed, trigger data refresh events.
Alternatively, Refresh Data is carried out based on the first refreshing identification of storage, including:
Refresh Data request is sent to application server, Refresh Data request carries the first refreshing identification, and Refresh Data please Ask for indicating that application server returns the data item identified by the second refreshing identification and the second refreshing identification;
Receive the data item identified by second refreshing identification and the second refreshing identification of application server transmission;
Based on the data item identified by the second refreshing identification, list of data items is refreshed.
Alternatively, the data item for being identified based on the second refreshing identification, is refreshed to list of data items, including:
When instruction is checked in the end for detecting target data item, the data item identified by the second refreshing identification is included Specified location in list of data items, to realize the refreshing of list of data items.
Above-mentioned all optional technical schemes, can be according to the alternative embodiment for arbitrarily combining to form the disclosure, disclosure reality Apply example no longer to repeat this one by one.
Fig. 2A is the flow chart of another kind of method for refreshing data according to an exemplary embodiment, as shown in Figure 2 A, The method includes:
In step 201, when terminal detects when checking instruction of target data item, in the data of display target data item Hold, target data item is any data item in currently displaying list of data items.
Wherein, the data item row obtained during the last refreshing before currently displaying list of data items is current time Table, the list of data items include multinomial data item, such as, have five kinds of data item, data in currently displaying list of data items Item list can be as shown in Figure 2 B.
In the disclosed embodiments, data item refers to the breviary information of data content, for characterize data content, such as, When list of data items is used to show news information, the data item that the list of data items includes can be the mark of a plurality of news information Topic, by the title for clicking on a plurality of news information, can show detailed news content.
It should be noted that checking for target data item instructs the data content for being used to indicating display target data item, with It is easy to user to be checked, and target data item checks that instruction can be triggered by user, that is to say, in practical application In, when terminal detects I/O (Input/Output, input/output) equipment behaviour to target data item of the user by terminal When making, that triggers target data item checks instruction, such as, when the terminal for being used is computer, when computer detection to user leads to Mouse or keyboard are crossed to, during the operation of target data item, that triggers target data item checks instruction.
In step 202., terminal judges target data item is identified whether as designated identification.
Wherein, before the identifying whether as designated identification of target data item is judged, in order to determine whether in display target Refresh Data is carried out during the data content of data item, the designated identification first can be set, arrange the designated identification include it is following Step (1)-(2):
(1) at least one data item is selected from list of data items.
The arrangement of data item in list of data items when at least one data item is selected from list of data items, can be passed through Rule is selected, example, when the queueing discipline of list of data items is from top to bottom to arrange according to the priority of time, can be with At least one data item positioned at bottom is selected from the list of data items, when the queueing discipline of list of data items is according to important Degree from the bottom to top when, at least one data item etc. positioned at top can be selected from the list of data items.Such as, as schemed Shown in 2B, there is the arrangement according to time order and function order from top to bottom of five kinds of data item in current data item list, number can be selected According to one or more data item of item list bottom.
Certainly, in practical application, it is also possible to by user from list of data items at least one data item of option, i.e. terminal Display data item list, in list of data items is often detected during the selection operation of an item data item, can be by the selection operation The data item for being acted on is defined as the data item from selected in list of data items.
(2) mark of at least one data item is set to into designated identification.
After terminal gets list of data items, in order to ensure the data content one of each data item and the item data item One correspondence, therefore, each item data item in list of data items all carries the mark of the data item, and the mark of the data item is used for The unique mark data item, and then the mark of at least one data item for selecting can be set to designated identification, wherein, it is intended that It is designated the mark of prior setting.
Such as, as shown in Figure 2 B, there is five kinds of data in the list of current data item, the corresponding mark of each of which is such as 1 institute of table Show, if the 4th data item and the 5th data item are two data item of bottommost in list of data items, the 4th number can be selected According to item and the 5th data item, it is ID4 and ID5 with their corresponding data item identifiers of difference, by the 4th data item and the 5th data Mark ID4 and ID5 of item is respectively set to designated identification.
Table 1
Data item Data item identifier
A A A A A A A A A A A A ID1
B B B B B B B B B ID2
C C C C C C C C C C C C C ID3
D D D D D D D D D D D D D D D D ID4
E E E E E E E E E E E E E E E E E ID5
In the disclosed embodiments, by taking the corresponding relation between data item and data item identifier shown in above-mentioned table 1 as an example Illustrate, above-mentioned table 1 is not constituted to the embodiment of the present disclosure and limited.
In step 203, when target data item is when being designated designated identification, terminal judges Refresh Data event whether by Triggering, Refresh Data event are used to indicate to refresh currently displayed data item.
Due in correlation technique Refresh Data typically by user manually come what is realized, during manual refreshing, need to exit The interface for being currently used in display data content carries out Refresh Data with the display interface in list of data items, that is, need in data item In the display interface of list, the time of waiting for server response, affects the efficiency of Refresh Data.Therefore, in the embodiment of the present disclosure, When the designated identification that is designated for determining target data item, and when Refresh Data event is triggered, data can be carried out automatically Refresh, without the need for user's manual refreshing, improve the efficiency of Refresh Data.
Wherein, when target data item is when being designated designated identification, can be touched by the possible implementation of the following two kinds Send out Refresh Data event:
In the first possible implementation, the displaying ratio of the data content of target data item is determined, the display ratio Example is the shared ratio in all data contents of data item of the display data content of target data item;When the displaying ratio During more than or equal to default displaying ratio, trigger data refresh events.
Wherein, when the data content of target data item starts to show, determine the display of the data content of target data item Ratio, the displaying ratio and default displaying ratio are compared, when the displaying ratio is more than or equal to default displaying ratio, triggering Refresh Data event, when target data item data content displaying ratio less than default displaying ratio when, not trigger data brush New events.Such as, it is 50% to preset displaying ratio, when displaying ratio is more than or equal to 50%, trigger data refresh events, when When displaying ratio is less than 50%, not trigger data refresh events.
In the disclosed embodiments, terminal can determine the displaying ratio of the data content of target data item in real time, and In real time the displaying ratio is compared with default displaying ratio, certainly, terminal can also periodically determine target data The displaying ratio of the data content of item, and periodically the displaying ratio is compared with default displaying ratio.
It should be noted that when default displaying ratio is arranged, after ensureing that Refresh Data event is triggered, can be in mesh Refresh Data is completed during the display of the data content of mark data item, needs to arrange default displaying ratio as little as possible, i.e. The time as much as possible is reserved carrying out Refresh Data, but, check that instruction is by user misoperation institute when target data item Triggering, now, user would generally select the interface that the list of returned data item is located, and need not carry out Refresh Data, if in advance If displaying ratio is too small, maloperation when the checking instruction of target data item of triggering due to user can be caused, although need not enter Row Refresh Data, and reality has carried out Refresh Data, in order to avoid there is such case, needs default displaying ratio more than finger Certainty ratio threshold value, the designated ratio threshold value are arranged in advance and more than zero, and when displaying ratio is more than the designated ratio threshold Target data item is can determine during value checks that instruction is triggered by the maloperation of user.
In second possible implementation, the display duration of the data content of target data item is determined;When the display When duration is more than or equal to default display duration, trigger data refresh events.
Wherein, when the data content of target data item starts to show, determine the display of the data content of target data item Duration, by the display duration and default display time length ratio compared with, when the display duration more than or equal to it is default show duration when, triggering Refresh Data event, when the display duration less than it is default show duration when, not trigger data refresh events.Such as, preset and show Duration can be 30s, when length is more than or equal to 30s when displayed, trigger data refresh events, and when length is less than 30s when displayed, Not trigger data refresh events.
In the disclosed embodiments, terminal can determine the display duration of the data content of target data item in real time, and In real time the display duration is compared with default display duration, certainly, terminal can also periodically determine target data The display duration of the data content of item, and periodically the display duration is compared with default display duration.
It should be noted that when default display duration is arranged, after ensureing that Refresh Data event is triggered, can be in mesh Refresh Data is completed during the display of the data content of mark data item, needs to arrange default display duration as little as possible, i.e. The time as much as possible is reserved carrying out Refresh Data, but, check that instruction is by user misoperation institute when target data item Triggering, now, user would generally select the interface that the list of returned data item is located, and need not carry out Refresh Data, if in advance If showing that duration is too small, maloperation when the checking instruction of target data item of triggering due to user can be caused, although need not enter Row Refresh Data, and reality has carried out Refresh Data, in order to avoid there is such case, needs default display duration more than finger Regularly long threshold value, the specified duration threshold value can be arranged in advance and more than zero, and long more than the specified duration threshold when displayed Target data item is can determine during value checks that instruction is triggered by the maloperation of user.
In step 204, when Refresh Data event is triggered, terminal sends Refresh Data request to application server, The Refresh Data request carries the first refreshing identification.
Wherein, it is in order that application server sends newest brush to terminal to send Refresh Data request to application server New logo and corresponding data item, the first refreshing identification are the last when refreshing before being current time, application server To the refreshing identification sent by terminal, for the data item obtained during the last refreshing before identifying current time, with area Point this refresh and last refresh the data item returned by application server, it is ensured that when refreshing every time, received data item is all It is new data item.
In step 205, when application server receives Refresh Data asks, second is determined based on the first refreshing identification The data item identified by refreshing identification and the second refreshing identification, and the number identified by the second refreshing identification and the second refreshing identification Terminal is sent to according to item.
Wherein, the data item identified by the second refreshing identification is can be to update in refresh interval time interior application server All data item, the refresh interval time be current time before the last time flush to interval time of current time, but It is, as in actual applications, the data item that terminal can be received in once refreshing is limited, i.e. in once refreshing eventually The data item that end can receive is less than specified quantity threshold value, when all numbers updated in refresh interval time interior application server When being more than the specified quantity threshold value according to the quantity of item, all numbers that terminal is updated in receiving refresh interval time interior application server According to the partial data item in item, the partial data item can be all data updated in refresh interval time interior application server Xiang Zhong, updates the nearest specified quantity threshold number of time interval current time according to item.
It should be noted that what when refreshing every time, application server sent is all this refreshing identification for refreshing and refreshing The identified data item of mark, the time that application server can send Refresh Data request by terminal distribute refreshing identification, As a Refresh Data request can only be sent in one terminal of a time point, therefore, sending Refresh Data by terminal please The time distribution refreshing identification asked, it is ensured that refreshing identification can be identified to each data for refreshing, i.e. when refreshing every time The refreshing identification obtained by terminal is all different.Certainly, application server can be with Refresh Data, minute book secondary data The refreshing identification sent during refreshing, in next Refresh Data, distributes the refreshing marks different from the refreshing identification for being recorded before Know, and the data item identified by the refreshing identification of the refreshing identification of this sub-distribution and this sub-distribution is sent to into terminal, it is ensured that be every The during secondary refreshing refreshing identification obtained by terminal is all different.
In step 206, when terminal receives the second refreshing identification of application server transmission and the second refreshing identification institute During the data item of mark, based on the data item identified by the second refreshing identification, list of data items is refreshed.
Wherein, terminal receives the data item identified by second refreshing identification and the second refreshing identification of application server transmission Afterwards, the data item for the second refreshing identification being identified carries out local cache, and the mode of caching can be stored in certain text of terminal Part, internal memory, database are medium.
When instruction is checked in the end for detecting target data item, i.e. the data content of target data item checked, Now, terminating to check newest data item after current target data item is checked to ensure user, by the second of caching The data item identified by refreshing identification is displayed in the specified location in list of data items.When the data identified by the second refreshing identification After item is displayed in the specified location in list of data items, local cache is deleted.
The end of target data item checks instruction for indicating to terminate the data content for checking target data item, and returns number According to the interface that item list is located, and the end of target data item checks that instruction can be triggered by user, that is to say, in reality Using in, operation is checked when terminal detects end of the user by the I/O equipment of terminal to the data content of target data item When, instruction is checked in the end for triggering target data item, such as, when the terminal for being used is computer, when computer detection is to user When checking operation by the end of mouse or keyboard to the data content of target data item, the end for triggering target data item is checked Instruction.
It should be noted that when due to factors such as network or application servers, terminal is not received by application server During the data item identified by the second refreshing identification and the second refreshing identification for sending, terminal starts execution and retries flush mechanism, should The step of flush mechanism is retried to repeat above-mentioned 201-206, certainly, unlimited number of can not perform in actual applications and retry refreshing Mechanism, therefore, terminal is provided with terminal and performs the max-thresholds for retrying flush mechanism number of times, flush mechanism is retried when terminal is performed Number of times be more than the threshold value when, stop execution retrying flush mechanism.
Example, in the case where terminal includes data control block, data load-on module and data refresh module, data Control module judges the identifying whether as designated identification of target data item;When target data item is when being designated designated identification, number Judge whether Refresh Data event is triggered according to control module, Refresh Data event is used to indicate to currently displayed data item Refreshed.When data control block determines Refresh Data event is triggered when, can to data load-on module send data add Carry instruction, when data load-on module receive data control block transmission data load instruction when, data load-on module to should Refresh Data request is sent with server.When data load-on module receives second refreshing identification and the of application server transmission During the data item identified by two refreshing identifications, by the data load-on module number identified by the second refreshing identification and the second refreshing identification Refresh Data module is sent to according to item, the data item identified based on the second refreshing identification by Refresh Data module, to data item List is refreshed.
In the disclosed embodiments, due to during the display of the data content of target data item, by judging target The identifying whether of data item is whether designated identification and Refresh Data event are triggered, and determines the need in target data The data content of item carries out Refresh Data during showing, that is to say, the embodiment of the present disclosure is in the data of target data item Automatically Refresh Data is carried out during the display of appearance, it is therefore not necessary to user's manual refreshing, and compared to user's manual refreshing, The embodiment of the present disclosure need not exit and be currently used in the interface of display data content and enter line number with the display interface in list of data items According to refreshing, and then without the need for the time of the waiting for server response in the display interface of list of data items, so as to improve data brush New efficiency.
Fig. 3 is a kind of Refresh Data device block diagram according to an exemplary embodiment.As shown in figure 3, the device bag Include:
Display module 301, for when detecting when checking instruction of target data item, in the data of display target data item Hold, target data item is any data item in currently displaying list of data items;
First judge module 302, for judging the identifying whether as designated identification of target data item;
Second judge module 303, for when target data item is when being designated designated identification, judging that Refresh Data event is No to be triggered, Refresh Data event is used to indicate to refresh currently displayed data item;
Refresh module 304, for when Refresh Data event is triggered, carrying out data based on the first refreshing identification of storage Refresh, the first refreshing identification the last data item for being refreshed before being used to identify current time.
Alternatively, as shown in figure 4, Refresh Data device also includes:
Selecting module 305, at least one data item is selected from list of data items;
Setup module 306, for the mark of at least one data item is set to designated identification.
Alternatively, as shown in figure 5, Refresh Data device also includes:
First determining module 307, for determining the displaying ratio of the data content of target data item, displaying ratio is target The shared ratio in all data contents of data item of the display data content of data item;
First trigger module 308, for when displaying ratio is more than or equal to default displaying ratio, trigger data refreshes thing Part.
Alternatively, as shown in fig. 6, Refresh Data device also includes:
Second determining module 309, for determining the display duration of the data content of target data item;
Second trigger module 310, during for length when displayed more than or equal to default display duration, trigger data refreshes thing Part.
Alternatively, as shown in fig. 7, refresh module 304 includes:
Sending submodule 3041, for sending Refresh Data request to application server, Refresh Data request carries first Refreshing identification, Refresh Data are asked for indicating what application server the second refreshing identification of return and the second refreshing identification were identified Data item;
Receiving submodule 3042, the second refreshing identification and the second refreshing identification for receiving application server transmission are marked The data item of knowledge;
Refresh submodule 3043, for the data item identified based on the second refreshing identification, list of data items is brushed Newly.
Alternatively, refresh submodule 3043, specifically for:
When instruction is checked in the end for detecting target data item, the data item identified by the second refreshing identification is included Specified location in list of data items, to realize the refreshing of list of data items.
With regard to the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
In the disclosed embodiments, due to during the display of the data content of target data item, by judging target The identifying whether of data item is whether designated identification and Refresh Data event are triggered, and determines the need in target data The data content of item carries out Refresh Data during showing, that is to say, the embodiment of the present disclosure is in the data of target data item Automatically Refresh Data is carried out during the display of appearance, it is therefore not necessary to user's manual refreshing, and compared to user's manual refreshing, The embodiment of the present disclosure need not exit and be currently used in the interface of display data content and enter line number with the display interface in list of data items According to refreshing, and then without the need for the time of the waiting for server response in the display interface of list of data items, so as to improve data brush New efficiency.
Fig. 8 is a kind of block diagram of the device 800 for Refresh Data according to an exemplary embodiment.For example, fill It can be mobile phone to put 800, and computer, digital broadcast terminal, messaging devices, game console, tablet device are medical Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 8, device 800 can include following one or more assemblies:Process assembly 802, memory 804, power supply Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and Communication component 816.
The integrated operation of 802 usual control device 800 of process assembly, such as with display, call, data communication, phase Machine operates and records the associated operation of operation.Process assembly 802 can refer to perform including one or more processors 820 Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more modules, just Interaction between process assembly 802 and other assemblies.For example, process assembly 802 can include multi-media module, many to facilitate Interaction between media component 808 and process assembly 802.
Memory 804 is configured to store various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application program or method for operating on device 800, and contact data, telephone book data disappear Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) is erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides power supply for the various assemblies of device 800.Power supply module 806 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that power supply is associated with for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and the touch or slide related duration and pressure.In certain embodiments, many matchmakers Body component 808 includes a front-facing camera and/or post-positioned pick-up head.When device 800 be in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memory 804 or via communication set Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a loudspeaker, for exports audio signal.
, for interface is provided between process assembly 802 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 812 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, and the state for various aspects are provided for device 800 is commented Estimate.For example, sensor cluster 814 can detect the opening/closed mode of device 800, and the relative positioning of component is for example described Display and keypad of the component for device 800, sensor cluster 814 can be with 800 1 components of detection means 800 or device Position change, user is presence or absence of with what device 800 was contacted, 800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect when not having any physical contact The presence of object nearby.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into As used in application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement In example, communication component 816 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realizations, for performing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided Such as include the memory 804 of instruction, above-mentioned instruction can be performed to complete said method by the processor 820 of device 800.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the process of mobile terminal When device is performed so that mobile terminal is able to carry out a kind of method for refreshing data, and methods described includes:
When detecting when checking instruction of target data item, the data content of display target data item, target data item is Any data item in currently displaying list of data items;
Judge identifying whether as designated identification for target data item;
When target data item is when being designated designated identification, judge whether Refresh Data event is triggered, Refresh Data thing Part is used to indicate to refresh currently displayed data item;
When Refresh Data event is triggered, Refresh Data is carried out based on the first refreshing identification of storage, first refreshes mark Know for the last data item for being refreshed before identifying current time.
Alternatively, before judging the identifying whether as designated identification of target data item, also include:
At least one data item is selected from list of data items;
The mark of at least one data item is set to into designated identification.
Alternatively, before judging whether Refresh Data event is triggered, also include:
Determine the displaying ratio of the data content of target data item, display data of the displaying ratio for target data item The shared ratio in all data contents of data item of content;
When displaying ratio is more than or equal to default displaying ratio, trigger data refresh events.
Alternatively, before judging whether Refresh Data event is triggered, also include:
Determine the display duration of the data content of target data item;
When length is more than or equal to default display duration when displayed, trigger data refresh events.
Alternatively, Refresh Data is carried out based on the first refreshing identification of storage, including:
Refresh Data request is sent to application server, Refresh Data request carries the first refreshing identification, and Refresh Data please Ask for indicating that application server returns the data item identified by the second refreshing identification and the second refreshing identification;
Receive the data item identified by second refreshing identification and the second refreshing identification of application server transmission;
Based on the data item identified by the second refreshing identification, list of data items is refreshed.
Alternatively, the data item for being identified based on the second refreshing identification, is refreshed to list of data items, including:
When instruction is checked in the end for detecting target data item, the data item identified by the second refreshing identification is included Specified location in list of data items, to realize the refreshing of list of data items.
In the disclosed embodiments, due to during the display of the data content of target data item, by judging target The identifying whether of data item is whether designated identification and Refresh Data event are triggered, and determines the need in target data The data content of item carries out Refresh Data during showing, that is to say, the embodiment of the present disclosure is in the data of target data item Automatically Refresh Data is carried out during the display of appearance, it is therefore not necessary to user's manual refreshing, and compared to user's manual refreshing, The embodiment of the present disclosure need not exit and be currently used in the interface of display data content and enter line number with the display interface in list of data items According to refreshing, and then without the need for the time of the waiting for server response in the display interface of list of data items, so as to improve data brush New efficiency.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is limited only by appended claim.

Claims (13)

1. a kind of method for refreshing data, it is characterised in that methods described includes:
When checking instruction of target data item is detected, the data content of the target data item, the target data are shown Item is any data item in currently displaying list of data items;
Judge identifying whether as designated identification for the target data item;
When the target data item is when being designated designated identification, judge whether Refresh Data event is triggered, the data brush New events are used to indicate to refresh currently displayed data item;
When the Refresh Data event is triggered, Refresh Data, first brush are carried out based on the first refreshing identification of storage New logo the last data item for being refreshed before being used to identify current time.
2. the method for claim 1, it is characterised in that it is described judge the target data item identify whether to be specified Before mark, also include:
At least one data item is selected from the list of data items;
The mark of at least one data item is set to into the designated identification.
3. the method for claim 1, it is characterised in that it is described judge whether Refresh Data event is triggered before, also Including:
Determine the displaying ratio of the data content of the target data item, the displaying ratio is showing for the target data item Show the shared ratio in all data contents of the data item of data content;
When the displaying ratio is more than or equal to default displaying ratio, the Refresh Data event is triggered.
4. the method for claim 1, it is characterised in that it is described judge whether Refresh Data event is triggered before, also Including:
Determine the display duration of the data content of the target data item;
When the display duration is more than or equal to default display duration, the Refresh Data event is triggered.
5. the method as described in claim 1-4 is arbitrary, it is characterised in that first refreshing identification based on storage enters line number According to refreshing, including:
Refresh Data request is sent to the application server, the Refresh Data request carries first refreshing identification, institute State Refresh Data to ask for indicating that the application server returns the second refreshing identification and second refreshing identification is identified Data item;
Receive the data item identified by second refreshing identification and second refreshing identification of the application server transmission;
Based on the data item identified by second refreshing identification, the list of data items is refreshed.
6. method as claimed in claim 5, it is characterised in that the data identified based on second refreshing identification , the list of data items is refreshed, including:
When instruction is checked in the end for detecting the target data item, the data item identified by second refreshing identification is shown Show the specified location in the list of data items, to realize the refreshing of the list of data items.
7. a kind of Refresh Data device, it is characterised in that described device includes:
Display module, for when when checking instruction of target data item is detected, showing the data content of the target data item, The target data item is any data item in currently displaying list of data items;
First judge module, for judging the identifying whether as designated identification of the target data item;
Second judge module, for when the target data item is when being designated designated identification, whether judging Refresh Data event It is triggered, the Refresh Data event is used to indicate to refresh currently displayed data item;
Refresh module, for when the Refresh Data event is triggered, carrying out data brush based on the first refreshing identification of storage Newly, before first refreshing identification is used to the identify current time data item refreshed by the last time.
8. device as claimed in claim 7, it is characterised in that described device also includes:
Selecting module, at least one data item is selected from the list of data items;
Setup module, for the mark of at least one data item is set to the designated identification.
9. device as claimed in claim 7, it is characterised in that described device also includes:
First determining module, for determining the displaying ratio of the data content of the target data item, the displaying ratio is institute State the shared ratio in all data contents of the data item of the display data content of target data item;
First trigger module, for when the displaying ratio is more than or equal to default displaying ratio, triggering the Refresh Data Event.
10. device as claimed in claim 7, it is characterised in that described device also includes:
Second determining module, for determining the display duration of the data content of the target data item;
Second trigger module, for when the display duration is more than or equal to default display duration, triggering the Refresh Data Event.
11. devices as described in claim 7-10 is arbitrary, it is characterised in that the refresh module includes:
Sending submodule, for sending Refresh Data request to the application server, the Refresh Data request carries described First refreshing identification, the Refresh Data are asked for indicating that the application server returns the second refreshing identification and described second The data item identified by refreshing identification;
Receiving submodule, for receiving second refreshing identification and second refreshing identification that the application server sends The data item for being identified;
Refresh submodule, for the data item identified based on second refreshing identification, the list of data items is brushed Newly.
12. devices as claimed in claim 11, it is characterised in that
The refreshing submodule, specifically for:
When instruction is checked in the end for detecting the target data item, the data item identified by second refreshing identification is shown Show the specified location in the list of data items, to realize the refreshing of the list of data items.
13. a kind of Refresh Data devices, it is characterised in that described device includes:
Processor;
For storing the memory of processor executable;
Wherein, the processor is configured to:
When checking instruction of target data item is detected, the data content of the target data item, the target data are shown Item is any data item in currently displaying list of data items;
Judge identifying whether as designated identification for the target data item;
When the target data item is when being designated designated identification, judge whether Refresh Data event is triggered, the data brush New events are used to indicate to refresh currently displayed data item;
When the Refresh Data event is triggered, Refresh Data, first brush are carried out based on the first refreshing identification of storage New logo the last data item for being refreshed before being used to identify current time.
CN201611077953.3A 2016-11-30 2016-11-30 Data refreshing method and device Active CN106528247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611077953.3A CN106528247B (en) 2016-11-30 2016-11-30 Data refreshing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611077953.3A CN106528247B (en) 2016-11-30 2016-11-30 Data refreshing method and device

Publications (2)

Publication Number Publication Date
CN106528247A true CN106528247A (en) 2017-03-22
CN106528247B CN106528247B (en) 2020-01-07

Family

ID=58353507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611077953.3A Active CN106528247B (en) 2016-11-30 2016-11-30 Data refreshing method and device

Country Status (1)

Country Link
CN (1) CN106528247B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391075A (en) * 2018-02-27 2018-08-10 北京酷我科技有限公司 A kind of method that video playing Cell refreshes without interval
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN112632432A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Page refreshing method and device based on terminal, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447874A (en) * 2008-12-25 2009-06-03 深圳华为通信技术有限公司 Data synchronization method, client and server
CN103428264A (en) * 2013-06-27 2013-12-04 华为软件技术有限公司 Data synchronization method, device and system
CN104111961A (en) * 2013-04-22 2014-10-22 北京壹人壹本信息科技有限公司 Data item display refreshing method and device
CN105893607A (en) * 2016-04-25 2016-08-24 青岛海信传媒网络技术有限公司 Page data management method, device and data server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447874A (en) * 2008-12-25 2009-06-03 深圳华为通信技术有限公司 Data synchronization method, client and server
CN104111961A (en) * 2013-04-22 2014-10-22 北京壹人壹本信息科技有限公司 Data item display refreshing method and device
CN103428264A (en) * 2013-06-27 2013-12-04 华为软件技术有限公司 Data synchronization method, device and system
CN105893607A (en) * 2016-04-25 2016-08-24 青岛海信传媒网络技术有限公司 Page data management method, device and data server

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391075A (en) * 2018-02-27 2018-08-10 北京酷我科技有限公司 A kind of method that video playing Cell refreshes without interval
CN108391075B (en) * 2018-02-27 2020-10-30 北京酷我科技有限公司 Method for refreshing video playing Cell without interval
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN112632432A (en) * 2020-12-30 2021-04-09 平安证券股份有限公司 Page refreshing method and device based on terminal, computer equipment and storage medium
CN112632432B (en) * 2020-12-30 2023-07-18 平安证券股份有限公司 Terminal-based page refreshing method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN106528247B (en) 2020-01-07

Similar Documents

Publication Publication Date Title
CN106020784A (en) Method and device for displaying application message, and terminal
CN106489126A (en) The method and device that a kind of content is shared
CN104020924B (en) Label creation method, device and terminal
CN104915290B (en) Application testing method and device
CN104735243B (en) Contact list displaying method and device
CN107122135A (en) Data processing method and device
CN103995838B (en) A kind of processing method of data record, device and electronic equipment
CN106775248A (en) Push the methods of exhibiting and device of content
CN107193606A (en) Using distribution method and device
CN106896991A (en) A kind of method and device of fresh information
CN107203398A (en) Using distribution method and device
CN106020634A (en) Screen capture method and device
CN107562268A (en) Operation performs method, apparatus and storage medium
CN105912258A (en) Method and device for operation processing
CN106126018A (en) Desktop icons sort method and device
CN106528617A (en) Webpage picture display method and apparatus
CN105635254A (en) Method and device for downloading multimedia resource
CN107193441A (en) Desktop suspension member method for previewing and device
CN106886357A (en) A kind of information deletion method and device
CN103970841A (en) Label management method and device
CN106648730A (en) Processing method and device of abnormal application
CN106528247A (en) Data refreshing method and device
CN107239351A (en) Method of attaching and device
CN106990989A (en) The method and device for controlling application program to install
CN107450950A (en) Enabled instruction processing method and processing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant