CN107526675A - Record method, apparatus, storage medium and the electronic equipment of application message - Google Patents

Record method, apparatus, storage medium and the electronic equipment of application message Download PDF

Info

Publication number
CN107526675A
CN107526675A CN201710939524.0A CN201710939524A CN107526675A CN 107526675 A CN107526675 A CN 107526675A CN 201710939524 A CN201710939524 A CN 201710939524A CN 107526675 A CN107526675 A CN 107526675A
Authority
CN
China
Prior art keywords
linear list
application
foreground
operation information
terminal
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
CN201710939524.0A
Other languages
Chinese (zh)
Other versions
CN107526675B (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.)
Shanghai Jinsheng Communication Technology Co ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710939524.0A priority Critical patent/CN107526675B/en
Publication of CN107526675A publication Critical patent/CN107526675A/en
Priority to PCT/CN2018/102231 priority patent/WO2019062412A1/en
Application granted granted Critical
Publication of CN107526675B publication Critical patent/CN107526675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Telephone Function (AREA)

Abstract

Present embodiment discloses a kind of method for recording application message, including:The first linear list is obtained, each element of first linear list is used for the operation information for recording an application, and the element of first linear list is arranged according to the last time order and function order positioned at foreground of application;Record the operation information applied in the first linear list corresponding to each element in different time sections;The operation information for each application that recorded according to each period, update the information that the element in the first linear list includes, each element of first linear list includes one second linear list, the each element of every one second linear list is respectively used to record the operation information applied in different time sections, and corresponding time interval is less than or equal to prefixed time interval to the element of every one second linear list between any two;When the application change on foreground, element corresponding with foreground application is set in the first linear list, triggering performs the operation information step applied in the linear list of record first corresponding to each element in different time sections.

Description

Record method, apparatus, storage medium and the electronic equipment of application message
Technical field
The application belongs to communication technical field, more particularly to a kind of method, apparatus for recording application message, storage medium and Electronic equipment.
Background technology
Usually, it is fitted with much applying on intelligent terminal.Wherein, some applications can be often used by a user, and be had A little applications then may be seldom used by a user.Terminal can be recorded to user using the situation of application, and learn accordingly User is accustomed to the usage behavior of application.
However, in correlation technique, for terminal when the service condition to application records, used recording mode is often The newest usage behavior custom of user can not be reflected exactly.
The content of the invention
The embodiment of the present application provides a kind of method, apparatus, storage medium and electronic equipment for recording application message, can be right The operation information of application is recorded, and reflects that user is newest using behavioural habits exactly.
The embodiment of the present application provides a kind of method for recording application message, including:
The first linear list is obtained, each element of first linear list is used for the operation information for recording an application, described The element of first linear list is arranged according to the last time order and function order positioned at foreground of application;
Record the operation information applied corresponding to each element in the first linear list and increased newly in different time sections;
The operation information that each application that recorded according to each period increases newly, updates corresponding element in the first linear list Comprising information, each element of the first linear list includes one second linear list, and each element of every one second linear list is used respectively The operation information in different time sections is applied in record, corresponding time interval is small between any two for the element of every one second linear list In or equal to prefixed time interval;
When the application change on foreground, element corresponding with foreground application is set in the first linear list, and triggers execution In the first linear list of the record operation information step increased newly in different time sections is applied corresponding to each element.
The embodiment of the present application provides a kind of device for recording application message, including:
Acquisition module, for obtaining the first linear list, each element of first linear list is used to record an application Operation information, the element of first linear list are arranged according to the last time order and function order positioned at foreground of application;
Logging modle, the operation letter increased newly in different time sections is applied in the first linear list corresponding to each element for recording Breath;
Update module, the operation information that each application for recorded according to each period increases newly, renewal first are linear The information that corresponding element includes in table, each element of the first linear list include one second linear list, every one second linear list Each element be respectively used to record and apply operation information in different time sections, the element of every one second linear list is right between any two The time interval answered is less than or equal to prefixed time interval;
Setup module, for when the application change on foreground, member corresponding with foreground application to be set in the first linear list Element, and trigger the operation information step for performing and applying corresponding to each element in the first linear list of the record and being increased newly in different time sections Suddenly.
The embodiment of the present application provides a kind of storage medium, computer program is stored thereon with, when the computer program exists When being performed on computer so that the method that the computer performs the record application message provided such as the embodiment of the present application.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling The computer program stored in memory is stated, the method for performing the record application message provided such as the embodiment of the present application.
In the embodiment of the present application, the first linear list can record the operation for a period of time being recently located at the application on terminal foreground Information, i.e., the operation information of the nearest used application of a period of time user.Also, each element in the first linear list wraps Containing one second linear list, and the element in the second linear list then describes corresponding apply in nearest multiple different time sections Concrete operations information.Therefore, the embodiment of the present application can record to the operation information of application, and reflect use exactly Family is newest using behavioural habits.
Brief description of the drawings
Below in conjunction with the accompanying drawings, by the way that the embodiment of the application is described in detail, the technical scheme of the application will be made And its advantage is apparent.
Fig. 1 is the schematic flow sheet of the method for the record application message that the embodiment of the present application provides.
Fig. 2 is the first schematic diagram of the first linear list that the embodiment of the present application provides and the second linear list.
Fig. 3 is another schematic flow sheet of the method for the record application message that the embodiment of the present application provides.
Fig. 4 is second of schematic diagram of the first linear list that the embodiment of the present application provides and the second linear list
Fig. 5 is the change procedure schematic diagram for the first linear list that the embodiment of the present application provides.
Fig. 6 A to Fig. 6 F are the scene process schematics of the method for the record application message that the embodiment of the present application provides.
Fig. 7 is the structural representation of the device for the record application message that the embodiment of the present application provides.
Fig. 8 is another structural representation of the device for the record application message that the embodiment of the present application provides.
Fig. 9 is the structural representation for the mobile terminal that the embodiment of the present application provides.
Figure 10 is another structural representation for the mobile terminal that the embodiment of the present application provides.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and the principle of the application is to implement one Illustrated in appropriate computing environment.The following description is based on illustrated the application specific embodiment, and it should not be by It is considered as limitation the application other specific embodiments not detailed herein.
It will be detailed below.
It is understood that the executive agent of the embodiment of the present application can be the end of smart mobile phone or tablet personal computer etc. End equipment.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of the method for the record application message that the embodiment of the present application provides, flow It can include:
In step S101, the first linear list is obtained, each element of first linear list is used for the behaviour for recording an application Make information, the element of first linear list is arranged according to the last time order and function order positioned at foreground of application.
In correlation technique, when being recorded to user using the situation of application, usually simply counting user is corresponding Access times and use duration.However, this mode can not reflect newest usage behavior of the user to application exactly Custom.
In the step S101 of the embodiment of the present application, terminal can first obtain the first linear list, first linear list it is every One element is used for the operation information for recording an application.That is, the element and application in the first linear list close to be one-to-one System.
Meanwhile the first element in linear list is according to the last time order and function order positioned at foreground of application corresponding to it Arranged.That is, the first linear list first element record be the application for being located at foreground at the nearest moment operation information, and What second element of the first linear list was recorded is upper one application for being located at foreground (before being applied corresponding to first element) Operation information, the like.
For example, the current time application that is located at terminal foreground is using A, before A on one positioned at terminal foreground should With for using B, before B on an application positioned at terminal foreground be using C, i.e., the application positioned at terminal foreground is before this by should It is switched to C using B, then by being switched to using B using A.So, what first element recorded in the first linear list is to apply A Operation information, what second element being arranged in order was recorded is the operation information using B, and what the 3rd element was recorded is application C operation information.
If it is understood that at some moment, the foreground application of terminal is switched to backstage so that terminal foreground Do not apply and running, then what the first element in the first linear list was recorded is exactly the application for being located at terminal foreground at the nearest moment Operation information (operation information of last application crossed in terminal front stage operation up to now).If current time some Using just in terminal front stage operation, then what the first element in the first linear list was recorded is exactly the operation information of the application.
In step s 102, the operation letter applied corresponding to each element in the first linear list and increased newly in different time sections is recorded Breath.
In step s 103, the operation information that each application that recorded according to each period increases newly, renewal first are linear The information that corresponding element includes in table, each element of the first linear list include one second linear list, every one second linear list Each element be respectively used to record and apply operation information in different time sections, the element of every one second linear list is right between any two The time interval answered is less than or equal to prefixed time interval.
For example after the first linear list is got, terminal can be recorded corresponding to each element in the first linear list Apply the operation information increased newly in different time sections.Then, terminal can be each according to recorded in each different time sections Using newly-increased operation information, the information that corresponding element includes in the first linear list is updated.
Each element of first linear list includes second linear list, each element of each the second linear list It is respectively used to apply the operation information in different time sections corresponding to recording.Also, the element two in each second linear list Corresponding time interval is less than or equal to prefixed time interval between two.
For example, as shown in Fig. 2 be longitudinally formed the first linear list using elements such as Y using A, using B, using C ..., And each element in the first linear list includes one second linear list.For example, the first element of the first linear list records Using A operation information, it is included by A1, A2 ... the second linear list (transverse direction) that the element such as Ax formed.Second linear list Each element be used for record using A different time sections operation information.Also, the element in second linear list two-by-two it Between corresponding time interval be less than or equal to prefixed time interval.For example, that the record of elements A 1 is the behaviour for applying A in period T1 Make information, and what elements A x was recorded is the operation information for applying A in period Tx, then T1 and Tx time interval is less than or waited In prefixed time interval.
For example, in one embodiment, prefixed time interval can be 168 hours (duration of one week), then every The operation information described in element that one second linear list includes applies the operation information in nearest one week corresponding to being exactly.
So that prefixed time interval is 168 hours as an example, it is to be understood that the letter described in the element of the second linear list Breath is the corresponding operation information applied in nearest week age all the time.That is, the element in the second linear list is Dynamic change.For example, with each period when a length of 6 hours, and exemplified by terminal is never shut down, then the second linear list 28 elements can at most be included.When the element of the second linear list is not up to 28, every 6 hour records a to period Operation information, then just increase an element newly in the second linear list, the newly-increased element is recorded just in past 6 hours The operation information of the application.And when the element of the second linear list has reached 28, if recorded 6 hours new planted agents Operation information, then, can be linear by second before the operation information within by the newly-increased period is added to the second linear list Period earliest element is deleted in table, an element is then increased newly in the second linear list again, so that the second linear list In element time interval between any two be less than or equal to prefixed time interval, i.e. described in the second linear list can be all the time Apply the operation information in nearest week age.
In step S104, when the application change on foreground, member corresponding with foreground application is set in the first linear list Element, and trigger to perform in the first linear list of record and apply the operation information step increased newly in different time sections corresponding to each element.
For example the operation information increased newly in different time sections is applied corresponding to each element in the first linear list is recorded, with And during the information included to each element in the first linear list is updated, if detecting that the application on terminal foreground occurs Change, then terminal can set element corresponding with current foreground application in the first linear list.
For example, the application on T1 moment terminals foreground is switched to using A by application B, then terminal can be linear first Element corresponding with application A is set in table.For example, the first element in the first linear list corresponded to using B originally, work as foreground Using by being switched to using B using after A, the first linear list can insert an element before element corresponding to application B, use In recording the operation information using A, be i.e. increase an element in the first linear list newly and be used to record the operation information using A, and should Element turns into the first element of the first linear list, and originally corresponds to then be changed into second element using B element.Afterwards, eventually End can trigger the operation letter for performing and being recorded in S102 and applying corresponding to each element in the first linear list and increased newly in different time sections The step of breath.
In one embodiment, the embodiment of the present application can not be done to step S102, S103 and S104 execution sequence Limit.For example step S104 can be before being located at step S102, either between step S102 and S103 or be located at After step S103, etc..
It is understood that in the embodiment of the present application, the first linear list can record nearest a period of time before terminal The operation information of the application of platform, i.e., the operation information of the nearest used application of a period of time user.Also, in the first linear list Each element include one second linear list, and the element in the second linear list then describe corresponding to apply nearest more Concrete operations information in individual different time sections.Therefore, the embodiment of the present application can record to the operation information of application, and Reflect that user is newest using behavioural habits exactly.
Referring to Fig. 3, Fig. 3 is another schematic flow sheet of the method for the record application message that the embodiment of the present application provides, Flow can include:
In step s 201, terminal obtains the first linear list, and each element of first linear list is used to record an application Operation information, the element of first linear list arranged according to the last time order and function order positioned at foreground of application, The first element of first linear list is used for the operation information for recording the application that the nearest moment is located at foreground.
For example terminal can first obtain the first linear list, each element of first linear list is used to record an application Operation information.That is, the element and application in the first linear list are one-to-one relation.
Meanwhile the first element in linear list is according to the last time order and function order positioned at foreground of application corresponding to it Arranged, the first element of the first linear list is used for the operation information for recording the application that the nearest moment is located at foreground.That is, the What the first element of one linear list was recorded is the operation information for the application for being located at foreground at the nearest moment, and the second of the first linear list What individual element was recorded is upper one operation information positioned at the application on foreground (before being applied corresponding to first element).
For example, the current time application that is located at terminal foreground is using A, before A on one positioned at terminal foreground should With for using B, before B on an application positioned at terminal foreground be using C, i.e., the application positioned at terminal foreground is before this by should It is switched to C using B, then by being switched to using B using A.So, what first element recorded in the first linear list is to apply A Operation information, what second element being arranged in order was recorded is the operation information using B, and what the 3rd element was recorded is application C operation information.
If it is understood that at some moment, the foreground application of terminal is switched to backstage so that terminal foreground Do not apply and running, then what the first element in the first linear list was recorded is exactly the application for being located at terminal foreground at the nearest moment Operation information (operation information of last application crossed in terminal front stage operation up to now).If current time some Using just in terminal front stage operation, then what the first element in the first linear list was recorded is exactly the operation information of the application.That is, In the first linear list, from first element to a last element, the historical record for the application that user actually used correspond to.
In some described modes, the linear list in the embodiment of the present application can be in array, chained list, and chained list Stack, queue etc..
In one embodiment, the step of terminal obtains the first linear list in S201, can include:
When detecting start, terminal obtains the first linear list.
For example, during being used by a user, terminal can be shut down and start shooting.During off-mode, apply It will not be operated, would not also have operation information.And after powering, the application in terminal is just probably made by user immediately With.Therefore, terminal can just obtain the first linear list when detecting start.
It is understood that by the way that when detecting start, terminal just obtains the mode of the first linear list, Ke Yishi immediately When the operation information of application is recorded, effectively avoid omitting the operation information of record application.
In step S202, terminal records the behaviour for applying corresponding to each element in the first linear list and being increased newly in different time sections Make information.
In step S203, it recorded according to each period each using newly-increased operation information, terminal renewal first The information that corresponding element includes in linear list, each element of the first linear list include one second linear list, every one second line Property table each element be respectively used to record and apply operation information in different time sections, the element of every one second linear list two-by-two it Between corresponding time interval be less than or equal to prefixed time interval.
For example after the first linear list is got, terminal can be recorded corresponding to each element in the first linear list Apply the operation information increased newly in different time sections.Then, terminal can be each according to recorded in each different time sections Using newly-increased operation information, the information that corresponding element includes in the first linear list is updated.
Each element of first linear list includes second linear list, each element of each the second linear list It is respectively used to apply the operation information in different time sections corresponding to recording.Also, the element two in each second linear list Corresponding time interval is less than or equal to prefixed time interval between two.
For example, as shown in Fig. 2 be longitudinally formed the first linear list using elements such as Y using A, using B, using C ..., And each element in the first linear list includes one second linear list.For example, the first element of the first linear list records Using A operation information, it is included by A1, A2 ... the second linear list (transverse direction) that the element such as Ax formed.Second linear list Each element be used for record using A different time sections operation information.Also, the element in second linear list two-by-two it Between corresponding time interval be less than or equal to prefixed time interval.For example, that the record of elements A 1 is the behaviour for applying A in period T1 Make information, and what elements A x was recorded is the operation information for applying A in period Tx, then T1 and Tx time interval is less than or waited In prefixed time interval.
For example, in one embodiment, prefixed time interval can be 168 hours (duration of one week), then every The operation information described in element that one second linear list includes applies the operation information in nearest one week corresponding to being exactly.
So that prefixed time interval is 168 hours as an example, it is to be understood that the letter described in the element of the second linear list Breath is the corresponding operation information applied in nearest week age all the time.That is, the element in the second linear list can To be dynamic change.For example, with each period when a length of 6 hours, and exemplified by terminal is never shut down, then the second line Property table can at most include 28 elements.When the element of the second linear list is not up to 28, when every 6 hour records are to one Between section operation information, then just increase an element newly in the second linear list, the newly-increased element records just past 6 small When the interior application operation information.And when the element of the second linear list has reached 28, if recorded one new 6 hours The operation information of interior application, then, can be by second before the operation information within by the newly-increased period is added to the second linear list Period earliest element is deleted in linear list, an element is then increased newly in the second linear list again, so that the second line Time interval of the element between 2 years in property table is less than or equal to prefixed time interval, i.e. all the time can described in the second linear list It is the operation information in nearest week age.
With the element in every one second linear list be used to recording corresponding to apply when period of a length of 6 hours in behaviour Make information, and every one second linear list at most only allows comprising exemplified by 28 elements.As shown in figure 4, with the first linear list In first element record using A operation information exemplified by.For example, on the day of morning 06:00 starting up of terminal, then terminal can With to applying A 06:00~12:The operation information of 00 this period is recorded (with 06:00~12:00 this period terminal Never shut down, and the element of application A the second linear list is 26, and not yet reach exemplified by 28), then 12 on the day of: After 00, terminal can update to the operation information included using element corresponding to A in the first linear list.For example, terminal can It is used to record using A 06 to increase an element newly in the second linear list corresponding to application A:00~12:In 00 this period Operation information.For example, the A2 elements in Fig. 4 are used to record using A 06:00~12:Operation information in 00 this period.
Afterwards, if terminal on the day of 18:Also open state is constantly in before 00, then A1 elements in Fig. 4 can be with For recording using A 12:00~18:Operation information in 00 this period.
If terminal on the day of 18:Shut down before 00, such as terminal is 17:00 shutdown, then terminal can basis Its time started shooting again determines the period corresponding to A1 elements.
For example, if terminal is until more than 18:Just started shooting again after 00, then A1 elements can be recorded only using A 12: 00~17:Operation information in 00 this period.That is, within some period, if because shutdown cause terminal can not recorded from Application operating information in the starting point of the period count 6 hours, then when the element of the second linear list can only record this Between application operating information during terminal is in open state in section.
If the time that terminal is started shooting again is not less than 18:00, such as terminal is 17:After 00 shutdown, 17:30 start shooting again , then terminal can record 17:30~18:Application A operation information in 00 this period.Then, terminal can be by 12:00 ~17:00 and 17:30~18:Operation information in 00 the two periods merges, and records 12 by elements A 1:00~ 17:00 and 17:30~18:Operation information after the merging of 00 the two periods.
It is understood that the operation by the above-mentioned two small time intervals that will belong to the same big period Information merges the mode of record, it is possible to prevente effectively from corresponding to applied caused by terminal frequently switches on machine the second linear list member The problem of plain frequently change.For example, the second linear list at most only allows to include 28 elements, then if terminal is closed for every 5 minutes Machine once, is then started shooting again, then the second linear list be at most only capable of recording corresponding to apply the behaviour in nearest 140 minutes Make information.Because 140 minutes too short, it can not comprehensively reflect user most the operation information for causing to record in the second linear list It is near using behavioural habits.
In one embodiment, terminal can be in each start, the timer of a length of 6 hours when starting setting up.When When first timer of 6 hours is triggered, application operating information that terminal can will recorded in this 6 hours is recorded In the element of second linear list of corresponding application.When one 6 it is small when timers trigger when, terminal can set next immediately The timer of a length of 6 hours when individual, applied so as to continue to record in second operation information in 6 hours.
In one embodiment, if terminal is shut down at some in the period of a length of 6 hours, then terminal can The terminal time of period corresponding to element in the second linear list is determined with the time started shooting again according to it.
For example, the A1 elements in Fig. 4 were to be used to record using A 12 originally:00~18:Operation letter in 00 this period Breath.
If terminal on the day of 18:Shut down before 00, such as terminal is 17:00 shutdown, then terminal can basis Its time started shooting again determines the terminal time of period corresponding to A1 elements.
For example, if terminal is until more than 18:Just start (such as 18 again after 00:30 just start shooting), then A1 elements can be with Only record using A 12:00~17:Operation information in 00 this period.That is, within some period, if because shutdown causes Terminal can not recorded the application operating information out of the starting point of the period is counted 6 hours, then the member of the second linear list Element can only record terminal in the period and be in the application operating information during open state.
If the time that terminal is started shooting again is not less than 18:00, such as terminal is 17:After 00 shutdown, 17:30 start shooting again , then terminal can record 17:30~18:Application A operation information in 00 this period.Then, terminal can be by 12:00 ~17:00 and 17:30~18:Operation information in 00 the two periods merges, and records 12 by elements A 1:00~ 17:00 and 17:30~18:Operation information after the merging of 00 the two periods.
In step S204, when the application change on foreground, whether terminal detects to include in the first linear list and is answered with foreground With corresponding element.
Such as the operation information applied in the first linear list is recorded corresponding to each element, and in the first linear list During the information that each element includes is updated, if detecting that the application on terminal foreground is changed, then terminal It can detect and whether include element corresponding with current foreground application in the first linear list.
For example, the application on terminal foreground is switched to using A by application B, then terminal can be detected in the first linear list Whether with apply A corresponding element is included.
In step S205, if detecting to include element corresponding with foreground application in the first linear list, terminal is by before Element corresponding to platform application is adjusted to the first element of the first linear list.
Such as terminal detect to include in the first linear list with using the corresponding elements of A, then terminal can will with should The element corresponding to A is adjusted to the first element of the first linear list.For example, the foreground application of original terminal is to apply B, First Line Property table first element correspond to element using B, and second element of the first linear list corresponds to the member using A Element.Afterwards, the foreground application of terminal is by being switched to using A using B, then include in terminal detects the first linear list with In the case of element corresponding to A, element corresponding to the original application A positioned at the second place can be adjusted to first by terminal The first element of linear list, and it was located at second that is then changed into the first linear list using element corresponding to B of first position originally Element.Said process can be as shown in Figure 5.
In step S206, if detecting not including element corresponding with foreground application in the first linear list, terminal inspection Whether the element number for surveying the first linear list reaches default value.
In step S207, if detecting, the element number of the first linear list reaches default value, terminal deletion first Last element in linear list, and the element corresponding to foreground application is created, and by corresponding to the element of foreground application Being added in the first linear list turns into first element.
In step S208, if detecting, the element number of the first linear list is not up to default value, terminal establishment pair Should be in the element of foreground application, and the element corresponding to foreground application is added in the first linear list turns into first element.
For example step S206, S207 and S208 can include:
When the application on foreground changes, terminal, which is detected in the first linear list, not to be included and the current foreground after change Using corresponding element.So, terminal can detect the element number of the first linear list and whether reach default value.
In one embodiment, terminal can set a maximum on element number to the first linear list.Example Such as, terminal, which is set, allows the first linear list to be up to 50 elements, then the element in the first linear list represents quilt recently 50 applications that user uses.
If detect that the number of element included in the first linear list reaches default value, then terminal can be first Delete last element in the first linear list, and create the element corresponding to foreground application, and will correspond to it is current before The element of platform application, which is added in the first linear list, turns into first element.
If detect that the number of element included in the first linear list not yet reaches default value, then terminal can Directly to create the element for corresponding to current foreground application, and it is linear by being added to first corresponding to the element that current foreground is applied Turn into first element in table.
For example, the application on terminal foreground is switched to using Z, and terminal detect not including in the first linear list have with Using element corresponding to Z, then whether the number that terminal can detect the element included in the first linear list reaches default value. For example, default value is 30.
If the number for the element for detecting to include in the first linear list has reached 30, then terminal can be first by Last element in one linear list is deleted.For example, the corresponding application of last element in the first linear list is application Y.After element corresponding to Y will be applied to delete, terminal can be created corresponding to the element using Z, and by corresponding to application Z's Element is inserted into the first element position of the first linear list.
If the number for the element for detecting to include in the first linear list not yet reaches 30, then terminal can be straight The element for creating and corresponding to using Z is connect, and the element corresponding to application Z is inserted into the first element position of the first linear list.
In step S209, terminal triggering is performed in the first linear list of record and applied corresponding to each element in different time sections The step of newly-increased operation information.
For example element corresponding to the foreground application after by change is adjusted to the first element of the first linear list, Huo Zhe Element corresponding to the foreground application after change is created in first linear list and inserts it into the first element position of the first linear list Postpone, terminal can be triggered itself to perform to record in the first linear list in step S202 and applied corresponding to each element in different time The step of Duan Xinzeng operation information.That is, terminal may proceed to being applied corresponding to each element in the first linear list when different Between the operation information of section recorded, and the operation information for each application that recorded according to each period, terminal renewal first The information that corresponding element includes in linear list.When the application for detecting terminal foreground again changes, terminal can weigh The step in S204 to S209 is performed again.
In one embodiment, the embodiment of the present application can also comprise the following steps:
When detecting terminal closedown, data corresponding to the first linear list are carried out with serializing operation, and sequence will be passed through The data Cun Chudao of change presets storage address.
For example when detecting shutdown, terminal can carry out data corresponding to the first linear list serializing operation, and will Data Cun Chudao by serializing operation is preset in storage address.For example, terminal can be by the data storage by serializing Into the disk or memory of terminal.
Serializing refers to the mistake that data structure or object are converted to the form (such as binary string) that can be stored or transmit Journey.The first linear list is a data structure in the embodiment of the present application, therefore when detecting shutdown, the first linear list can be entered Row serializing operation, and by the data Cun Chudao terminal memories by serializing.
In one embodiment, the embodiment of the present application can also comprise the following steps:
When detecting starting up of terminal, unserializing operation is carried out to the data in the default storage address of the terminal, Obtain the data by unserializing;
By in the data Cun Chudao internal memories by unserializing, and it is defined as the first linear list.
For example when detecting start, terminal is stored in the data in default storage address when can be shut down to the last time Unserializing operation is carried out, and obtains the data by unserializing.Then, terminal can deposit the data for entering unserializing Store up in internal memory, and be defined as the first linear list.
The binary string that unserializing refers to the process of to generate in serialization process is converted to data structure or object.
Fig. 6 A to Fig. 6 F are referred to, Fig. 6 A to Fig. 6 F are the field of the method for the record application message that the embodiment of the present application provides Scape process schematic.
For example when detecting start every time, terminal can obtain first queue, each element of the first queue is used In the operation information for recording an application.That is, the element and application in the first linear list are one-to-one relation.
Element in first queue can enter according to the last time order and function order positioned at foreground of application corresponding to it Row arrangement, the first element of first queue are used for the operation information for recording the application that the nearest moment is located at foreground.That is, first team What the first element of row was recorded is the operation information for the application for being located at foreground at the nearest moment, and second element of the first linear list What is recorded is upper one operation information positioned at the application on foreground (before being applied corresponding to first element), the like.Also, First queue at most allows the element for including default first quantity.For example, default first quantity is 50, i.e., first queue is most Allow to include 50 elements.
Each element of first queue includes a second queue.The each element of each second queue is respectively used to record application In the operation information of different time sections, the element of each second queue between any two corresponding time interval be less than or equal to it is default Time interval.For example, corresponding time interval is less than or equal to (one week 168 hours the element of each second queue between any two Duration).
In addition, when starting shooting every time, terminal can open the timer of a preset duration, and record start time as start Time, end time are the interior operation information applied this period at time point of preset duration after the available machine time.
For example, terminal on the day of morning 06:00 start, now terminal can obtain first queue, and start one 6 small When timer.Then, terminal can be to 06:00~12:In 00 this period, application corresponding to each element in first queue Operation information is recorded.
When the application for detecting terminal foreground changes (such as the application that the foreground of terminal is never currently running becomes Change to the application being currently running, or the foreground application of terminal and be switched to another application from an application), terminal can be first Detect whether included with the corresponding element of current foreground application in first queue.
For example, when just starting shooting, application corresponding to first three element for the first queue that terminal is got be followed successively by using B, Using C and using D.
06 after the completion of start:05, user is first by C is applied, as shown in Figure 6A.The application on terminal foreground from without to Have, i.e., terminal detects that foreground application changes.So, whether terminal can first detect in first queue and include and application Element corresponding to C.Because second element in first queue applies C, therefore terminal can will apply member corresponding to C Element is adjusted to head of the queue element, correspondingly, becomes using element corresponding to B for second bit element.The arrangement of element in first queue Change can be as shown in Figure 6B.
If start after the completion of, user first by application be apply B, then due to apply B be first queue First element, therefore in this case first queue head of the queue element keep it is constant.
Afterwards 06:30, user, which has used, applies A, as shown in Figure 6 C.That is, the application on foreground using C by being switched to application A.Now, terminal still can detect in first queue whether included element corresponding with application A.For example, now terminal Detect and do not include element corresponding with application A in first queue.So, terminal can detect the element number of first queue again Whether default first quantity 50 has been reached.For example, now terminal detects that the element number of first queue not yet reaches 50. In this case, terminal can be created directly corresponding to the element using A, and the element corresponded to using A that will newly create Being inserted into first queue turns into head of the queue element.Now, the arrangement change of element can be as shown in Figure 6 D in first queue.
If when foreground application using C by being switched to using A, terminal detects that the element number of first queue has reached To 50, then terminal can first delete last element of first queue, then create again corresponding to the element using A, And being inserted into corresponding to the element using A in first queue for newly creating is turned into head of the queue element.
Set upon power-up when the timers trigger of a length of 6 hours when, terminal can be by 06:00~12:At 00 this section The operation information of the interior application that recorded is updated into first queue.For example, it is used to remember using the elements A 2 of A second queue Carry using A 06:00~12:Operation information in 00 this period, because application A is 06:30 start what is used, therefore For A2 elements, its start time recorded and terminal are respectively 06:30 and 12:00.As illustrated in fig. 6e.
12:00 when reaching, the timer of a length of 6 hours when terminal can set second, and start recording first team Applied corresponding to element in row 12:00~18:The operation information of 00 this period.
For example, 12:00~17:00 this period, it was user-operably for several times using A, and was not grasped using C by user then Made, and cleared up from terminal backstage.Terminal is 17:00 is once shut down, then 17:30 start shooting again, open After machine terminal backstage is in using A.So, for application A, the elements A 1 of its second queue, which can be used for recording, applies A 12:00~17:00 and 17:30~18:Operation information in 00 this twice, namely terminal can will apply A 12: 00~17:00 and 17:30~18:Operation information in 00 this twice merges, and writes in elements A 1.Further, since 12:00~18:In 00 this period, it was not user-operably using C, and not also in terminal backstage.Therefore, exist using C There is no any operation information in this period.In this case, terminal can not be to be used to record operation information using C is newly-built Element.Said process can be as fig 6 f illustrates.
Further, since start terminal timer of a length of 6 hours when can all start one, therefore to existing using A every time 12:00~17:00 and 17:30~18:In the case that operation information in 00 this twice merges, using A 18: 00~23:30 this time interval (belong to 17:30~23:30 this period) operation information can write the next of A1 In elements A 0.As fig 6 f illustrates.
If terminal is 17:After 00 shutdown, until 18:Just started shooting again after 00, then elements A 1 can only record 12: 00~17:The operation information using A of 00 this period.
In one embodiment, due to each second queue element between any two time interval be less than or equal to it is default Time interval (such as 168 hours), then when having increased an element in second queue newly, terminal can be traveled through in whole queue Element, the time interval wherein with newly-increased element is deleted more than the element of 168 hours.
In one embodiment, it in each second queue can be newly-increased element is placed on queue first element. That is, element is arranged according to the sequencing of generation time in second queue.
In one embodiment, the element of each second queue can at least record corresponding apply in a period Interior following operation information:The starting and ending time point of the period;Apply the number for adding up to open within the period;Should The duration on foreground is accumulated within the period;Period planted agent is used in the maximum duration that backstage stops;In the period Apply the minimum duration stopped on backstage;Period planted agent is used in average duration that backstage stops, etc., not structure of illustrating herein The restriction of paired the application.
In one embodiment, each element in first queue is in addition to comprising a second queue, first queue Each element can also record corresponding to application following operation information:The bag name of application;Using being switched to for the last time The time on foreground;Using the time for being switched to backstage for the last time;Using the number for adding up to open in one week;Using in one week It is accumulated at duration of foreground stop, etc., the restriction not formed to the application of illustrating herein.
Referring to Fig. 7, Fig. 7 is the structural representation of the device for the record application message that the embodiment of the present application provides.Record The device 300 of application message can include:Acquisition module 301, logging modle 302, update module 303, and setup module 304。
Acquisition module 301, for obtaining the first linear list, each element of first linear list is used to record an application Operation information, the element of first linear list arranged according to the last time order and function order positioned at foreground of application Row.
For example the acquisition module 301 of terminal can first obtain the first linear list, each element of first linear list is used In the operation information for recording an application.That is, the element and application in the first linear list are one-to-one relation.
Meanwhile the first element in linear list is according to the last time order and function order positioned at foreground of application corresponding to it Arranged.That is, the first linear list first element record be the application for being located at foreground at the nearest moment operation information, and What second element of the first linear list was recorded is upper one application for being located at foreground (before being applied corresponding to first element) Operation information, the like.
For example, the current time application that is located at terminal foreground is using A, before A on one positioned at terminal foreground should With for using B, before B on an application positioned at terminal foreground be using C, i.e., the application positioned at terminal foreground is before this by should It is switched to C using B, then by being switched to using B using A.So, what first element recorded in the first linear list is to apply A Operation information, what second element being arranged in order was recorded is the operation information using B, and what the 3rd element was recorded is application C operation information.
If it is understood that at some moment, the foreground application of terminal is switched to backstage so that terminal foreground Do not apply and running, then what the first element in the first linear list was recorded is exactly the application for being located at terminal foreground at the nearest moment Operation information (operation information of last application crossed in terminal front stage operation up to now).If current time some Using just in terminal front stage operation, then what the first element in the first linear list was recorded is exactly the operation information of the application.
Logging modle 302, the behaviour increased newly in different time sections is applied in the first linear list corresponding to each element for recording Make information.
Update module 303, the operation information that each application for recorded according to each period increases newly, updates First Line The information that corresponding element includes in property table, each element of the first linear list include one second linear list, and every one second is linear The each element of table is respectively used to record the operation information applied in different time sections, and the element of every one second linear list is between any two Corresponding time interval is less than or equal to prefixed time interval.
For example after the first linear list is got, logging modle 302 can record each element in the first linear list It is corresponding to apply the operation information increased newly in different time sections.Then, update module 303 can be according in each different time sections The operation information that each application that recorded increases newly, updates the information that corresponding element includes in the first linear list.
Each element of first linear list includes second linear list, each element of each the second linear list It is respectively used to apply the operation information in different time sections corresponding to recording.Also, the element two in each second linear list Corresponding time interval is less than or equal to prefixed time interval between two.
For example, as shown in Fig. 2 be longitudinally formed the first linear list using elements such as Y using A, using B, using C ..., And each element in the first linear list includes one second linear list.For example, the first element of the first linear list records Using A operation information, it is included by A1, A2 ... the second linear list (transverse direction) that the element such as Ax formed.Second linear list Each element be used for record using A different time sections operation information.Also, the element in second linear list two-by-two it Between corresponding time interval be less than or equal to prefixed time interval.For example, that the record of elements A 1 is the behaviour for applying A in period T1 Make information, and what elements A x was recorded is the operation information for applying A in period Tx, then T1 and Tx time interval is less than or waited In prefixed time interval.
For example, in one embodiment, prefixed time interval can be 168 hours (duration of one week), then every The operation information described in element that one second linear list includes applies the operation information in nearest one week corresponding to being exactly.
So that prefixed time interval is 168 hours as an example, it is to be understood that the letter described in the element of the second linear list Breath is the corresponding operation information applied in nearest week age all the time.That is, the element in the second linear list is Dynamic change.For example, with each period when a length of 6 hours, and exemplified by terminal is never shut down, then the second linear list 28 elements can at most be included.When the element of the second linear list is not up to 28, every 6 hour records a to period Operation information, then just increase an element newly in the second linear list, the newly-increased element is recorded just in past 6 hours The operation information of the application.And when the element of the second linear list has reached 28, if recorded 6 hours new planted agents Operation information, then, can be linear by second before the operation information within by the newly-increased period is added to the second linear list Period earliest element is deleted in table, an element is then increased newly in the second linear list again, so that the second linear list In element time interval between any two be less than or equal to prefixed time interval, i.e. described in the second linear list can be all the time Apply the operation information in nearest week age.
Setup module 304, for when the application change on foreground, being set in the first linear list corresponding with foreground application Element, and trigger to perform in the first linear list of the record and apply the operation information increased newly in different time sections corresponding to each element Step.
For example newly-increased operation information is applied corresponding to each element in logging modle 302 records the first linear list, and During the information that update module 303 includes to each element in the first linear list is updated, if detecting terminal foreground Application changed, then setup module 304 can set corresponding with current foreground application in the first linear list Element.
For example, T1 moment terminals foreground application by being switched to using A using B, then setup module 304 can be the Element corresponding with application A is set in one linear list.For example, the first element in the first linear list corresponds to apply B originally , after foreground application using B by being switched to using A, the first linear list can insert one before element corresponding to application B Individual element, for recording the operation information using A, be i.e. increase an element in the first linear list newly and believe for the operation recorded using A Breath, and the element turns into the first element of the first linear list, and originally correspond to then be changed into second member using B element Element.Afterwards, terminal can be performed in the first linear list of record with trigger recording module 302 and applied corresponding to each element in different time The step of Duan Xinzeng operation information.
In one embodiment, setup module 304 can be used for:
Detect in the first linear list and whether include element corresponding with foreground application.
If detecting to include element corresponding with foreground application in the first linear list, element corresponding to foreground application is adjusted Whole is the first element of the first linear list.
If detecting not including element corresponding with foreground application in the first linear list, create corresponding to foreground application Element, and the element corresponding to foreground application is added in the first linear list turns into first element.
Such as the operation information applied in logging modle 302 records the first linear list corresponding to each element, and renewal During the information that module 304 includes to each element in the first linear list is updated, if detecting answering for terminal foreground With being changed, then whether setup module 304 can be detected first in the first linear list includes and current foreground application Corresponding element.
If terminal detect to include in the first linear list with using the corresponding elements of A, then setup module 304 can be with Element corresponding with application A is adjusted to the first element of the first linear list.For example, the foreground application of original terminal is to apply B, The first element of first linear list corresponds to the element using B, and second element of the first linear list corresponds to apply A Element.Afterwards, the foreground application of terminal is by being switched to using A using B, then include in the first linear list is detected with In the case of element corresponding to A, setup module 304 can adjust element corresponding to the original application A positioned at the second place Whole is the first element of the first linear list, and element corresponding to the application B positioned at first position was then changed into the first linear list originally Second element.
If terminal detect not contain in the first linear list with using the corresponding elements of A, then setup module 304 can be with The element corresponding to foreground application is created, and the element corresponding to foreground application is added in the first linear list turns into first member Element.
In one embodiment, setup module 304 can be used for:
If detecting not including element corresponding with foreground application in the first linear list, the element of the first linear list is detected Whether number reaches default value.
If detecting, the element number of the first linear list reaches default value, deletes last in the first linear list Element, and the element corresponding to foreground application is created, and the element corresponding to foreground application is added in the first linear list As first element.
If detecting, the element number of the first linear list is not up to default value, creates the member corresponding to foreground application Element, and the element corresponding to foreground application is added in the first linear list turns into first element.
Such as in the case where not containing element corresponding with applying A during terminal detects the first linear list, setup module 304 are performing element of the establishment corresponding to foreground application, and the element corresponding to foreground application is added in the first linear list As first element step when, whether the element number that can first detect the first linear list reaches default value.
If detect that the number of element included in the first linear list reaches default value, then setup module 304 can first delete last element in the first linear list, and create the element corresponding to foreground application, and will be corresponding Being added in the element of current foreground application in the first linear list turns into first element.
If detect that the number of element included in the first linear list not yet reaches default value, then mould is set Block 304 can directly create the element corresponding to current foreground application, and will be added to corresponding to the element that current foreground is applied Turn into first element in first linear list.
Also referring to Fig. 8, Fig. 8 is another structural representation of the device for the record application message that the embodiment of the present application provides Figure.In one embodiment, recording the device 300 of application message can also include:Memory module 305 and extraction module 306.
Memory module 305, for when detecting terminal closedown, serializing behaviour to be carried out to data corresponding to the first linear list Make, and the data Cun Chudao by serializing is preset into storage address.
For example when detecting shutdown, data corresponding to the first linear list can be carried out serializing behaviour by memory module 305 Make, and will be preset by the data Cun Chudao for serializing operation in storage address.For example, memory module 305 can will pass through sequence In the disk or memory of the data Cun Chudao terminals of rowization.
Serializing refers to the mistake that data structure or object are converted to the form (such as binary string) that can be stored or transmit Journey.The first linear list is a data structure in the embodiment of the present application, therefore when detecting shutdown, the first linear list can be entered Row serializing operation, and by the data Cun Chudao terminal memories by serializing.
Extraction module 306, for when detecting starting up of terminal, entering to the data in the default storage address of the terminal Row unserializing operates, and obtains the data by unserializing;By in the data Cun Chudao internal memories by unserializing, and It is defined as the first linear list.
For example when detecting start, extraction module 306 is stored in default storage address when can be shut down to the last time Data carry out unserializing operation, and obtain the data by unserializing.Then, extraction module 306 will can enter anti- In the data Cun Chudao internal memories of serializing, and it is defined as the first linear list.
The binary string that unserializing refers to the process of to generate in serialization process is converted to data structure or object.
The embodiment of the present application provides a kind of computer-readable storage medium, computer program is stored thereon with, when described When computer program performs on computers so that the computer performs the record application message provided such as the embodiment of the present application Method.
The embodiment of the present application also provides a kind of electronic equipment, including memory, and processor, the processor is by calling The computer program stored in memory is stated, the method for performing the record application message provided such as the embodiment of the present application.
For example, above-mentioned electronic equipment can be the mobile terminals such as tablet personal computer or smart mobile phone.Referring to Fig. 9, Fig. 9 is the structural representation for the mobile terminal that the embodiment of the present application provides.
The mobile terminal 500 can include the parts such as communication unit 501, memory 502, processor 503.Art technology Personnel are appreciated that the mobile terminal structure shown in Fig. 9 does not form the restriction to mobile terminal, can include than illustrating more More or less parts, either combine some parts or different parts arrangement.
Communication unit 501 can be used for receiving and sending messages, or in communication process signal reception and transmission, for example, by descending letter After breath receives, transfer to one or more than one processor 503 is handled;In addition, sent up data are related to.
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line code.Application program can form various functions module.Processor 503 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.
Processor 503 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the application program being stored in memory 502, and call and be stored in memory 502 Data, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.
In the present embodiment, the processor 503 in mobile terminal can be according to following instruction, will be one or more Executable code corresponding to the process of application program is loaded into memory 502, and is stored in storage by processor 503 to run Application program in device 502, so as to realize step:
The first linear list is obtained, each element of first linear list is used for the operation information for recording an application, described The element of first linear list is arranged according to the last time order and function order positioned at foreground of application.
Record the operation information applied corresponding to each element in the first linear list and increased newly in different time sections.
The operation information that each application that recorded according to each period increases newly, updates corresponding element in the first linear list Comprising information, each element of the first linear list includes one second linear list, and each element of every one second linear list is used respectively The operation information in different time sections is applied in record, corresponding time interval is small between any two for the element of every one second linear list In or equal to prefixed time interval.
When the application change on foreground, element corresponding with foreground application is set in the first linear list, and triggers execution In the first linear list of the record operation information step increased newly in different time sections is applied corresponding to each element.
In addition, referring to Fig. 10, mobile terminal 600 can include communication unit 601, memory 602, processor 603, defeated Enter unit 604 and output unit 605.
Communication unit 601 can be used for receiving and sending messages, or in communication process signal reception and transmission, for example, by descending letter After breath receives, transfer to one or more than one processor 603 is handled;In addition, sent up data are related to.
Memory 602 can be used for storage application program and data.Include and can hold in the application program that memory 602 stores Line code.Application program can form various functions module.Processor 603 is stored in the application journey of memory 602 by operation Sequence, so as to perform various function application and data processing.
Processor 603 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the application program being stored in memory 602, and call and be stored in memory 602 Data, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.
Input block 604 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.One In embodiment, input block 604 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen Or Trackpad.
Output unit 605 can be used for display by the information of user's input or be supplied to the information and mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Output unit may include display panel.
In the present embodiment, the processor 603 in mobile terminal can be according to following instruction, will be one or more Executable code corresponding to the process of application program is loaded into memory 602, and is stored in storage by processor 603 to run Application program in device 602, so as to realize step:
The first linear list is obtained, each element of first linear list is used for the operation information for recording an application, described The element of first linear list is arranged according to the last time order and function order positioned at foreground of application.
Record the operation information applied corresponding to each element in the first linear list and increased newly in different time sections.
The operation information that each application that recorded according to each period increases newly, updates corresponding element in the first linear list Comprising information, each element of the first linear list includes one second linear list, and each element of every one second linear list is used respectively The operation information in different time sections is applied in record, corresponding time interval is small between any two for the element of every one second linear list In or equal to prefixed time interval.
When the application change on foreground, element corresponding with foreground application is set in the first linear list, and triggers execution In the first linear list of the record operation information step increased newly in different time sections is applied corresponding to each element.
In one embodiment, it is corresponding with foreground application to perform the setting in the first linear list for processor 603 During the step of element, it can perform:Detect in the first linear list and whether include element corresponding with foreground application.If detect Element corresponding with foreground application is included in one linear list, then element corresponding to foreground application is adjusted to the head of the first linear list Individual element.If detecting not including element corresponding with foreground application in the first linear list, create corresponding to foreground application Element, and the element corresponding to foreground application is added in the first linear list turns into first element.
In one embodiment, if processor 603 performs, described detect not include in the first linear list should with foreground With corresponding element, then the element corresponding to foreground application is created, and the element corresponding to foreground application is added to First Line Property table in turn into first element step when, can perform:If detect in the first linear list not comprising corresponding with foreground application Element, then whether the element number for detecting the first linear list reach default value.If detect the element of the first linear list Number reaches default value, then deletes last element in the first linear list, and creates the element corresponding to foreground application, with And the element corresponding to foreground application is added in the first linear list turns into first element.If detect the member of the first linear list Plain number is not up to default value, then creates the element corresponding to foreground application, and will be added corresponding to the element of foreground application Turn into first element into the first linear list.
In one embodiment, processor 603 can also carry out following steps:When detecting terminal closedown, to Data corresponding to one linear list carry out serializing operation, and the data Cun Chudao by serializing is preset into storage address.
In one embodiment, processor 603 can also carry out following steps:When detecting starting up of terminal, to institute The data stated in the default storage address of terminal carry out unserializing operation, obtain the data by unserializing.By the warp Cross in the data Cun Chudao internal memories of unserializing, and be defined as the first linear list.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, the detailed description of the method above with respect to record application message is may refer to, here is omitted.
Record application message in the device and foregoing embodiments of the record application message that the embodiment of the present application provides Method belong to same design, the method that the record application message can be run on the device of the record application message is real The either method provided in example is applied, its specific implementation process refers to the embodiment of the method for the record application message, herein no longer Repeat.
It should be noted that for the method for application message is recorded described in the embodiment of the present application, ordinary skill Personnel are appreciated that to realize all or part of flow for the method that application message is recorded described in the embodiment of the present application, are to pass through Computer program controls the hardware of correlation to complete, and the computer program can be stored in a computer read/write memory medium In, such as storage in memory, and by least one computing device, may include the record application letter such as in the process of implementation The flow of the embodiment of the method for breath.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the device of the record application message of the embodiment of the present application, its each functional module can be integrated in one In process chip or modules are individually physically present, can also two or more modules be integrated in a mould In block.Above-mentioned integrated module can both be realized in the form of hardware, can also be realized in the form of software function module. If the integrated module is realized in the form of software function module and is used as independent production marketing or in use, can also It is stored in a computer read/write memory medium, the storage medium is for example read-only storage, disk or CD etc..
Method, apparatus, storage medium and the electricity of a kind of record application message provided above the embodiment of the present application Sub- equipment is described in detail, and specific case used herein is set forth to the principle and embodiment of the application, The explanation of above example is only intended to help and understands the present processes and its core concept;Meanwhile for the skill of this area Art personnel, according to the thought of the application, there will be changes in specific embodiments and applications, in summary, this Description should not be construed as the limitation to the application.

Claims (12)

  1. A kind of 1. method for recording application message, it is characterised in that including:
    Obtaining the first linear list, each element of first linear list is used for the operation information for recording an application, and described first The element of linear list is arranged according to the last time order and function order positioned at foreground of application;
    Record the operation information applied corresponding to each element in the first linear list and increased newly in different time sections;
    The operation information that each application that recorded according to each period increases newly, update corresponding element in the first linear list and include Information, each element of the first linear list includes one second linear list, and each element of every one second linear list is respectively used to remember Carry and apply operation information in different time sections, the element of every one second linear list between any two corresponding time interval be less than or Equal to prefixed time interval;
    When the application change on foreground, element corresponding with foreground application is set in the first linear list, and triggers described in execution Record the operation information step applied corresponding to each element in the first linear list and increased newly in different time sections.
  2. 2. the method for record application message according to claim 1, it is characterised in that described to be set in the first linear list Element corresponding with foreground application, including:
    Detect in the first linear list and whether include element corresponding with foreground application;
    If detecting to include element corresponding with foreground application in the first linear list, element corresponding to foreground application is adjusted to The first element of first linear list;
    If detecting not including element corresponding with foreground application in the first linear list, the member corresponding to foreground application is created Element, and the element corresponding to foreground application is added in the first linear list turns into first element.
  3. 3. the method for record application message according to claim 2, it is characterised in that if described detect the first linear list In do not include element corresponding with foreground application, then the element corresponding to foreground application is created, and by corresponding to foreground application Element, which is added in the first linear list, turns into first element, including:
    If detecting not including element corresponding with foreground application in the first linear list, the element number of the first linear list is detected Whether default value is reached;
    If detecting, the element number of the first linear list reaches default value, deletes last member in the first linear list Element, and create corresponding to foreground application element, and by the element corresponding to foreground application be added in the first linear list into For first element;
    If detecting, the element number of the first linear list is not up to default value, creates the element corresponding to foreground application, and Element corresponding to foreground application, which is added in the first linear list, turns into first element.
  4. 4. the method for record application message according to claim 1, it is characterised in that methods described also includes:
    When detecting terminal closedown, data corresponding to the first linear list are carried out with serializing operation, and by by serializing Data Cun Chudao presets storage address.
  5. 5. the method for record application message according to claim 4, it is characterised in that methods described also includes:
    When detecting starting up of terminal, unserializing operation is carried out to the data in the default storage address of the terminal, obtained By the data of unserializing;
    By in the data Cun Chudao internal memories by unserializing, and it is defined as the first linear list.
  6. A kind of 6. device for recording application message, it is characterised in that including:
    Acquisition module, for obtaining the first linear list, each element of first linear list is used for the operation for recording an application Information, the element of first linear list are arranged according to the last time order and function order positioned at foreground of application;
    Logging modle, the operation information increased newly in different time sections is applied in the first linear list corresponding to each element for recording;
    Update module, the operation information that each application for recorded according to each period increases newly, updates in the first linear list The information that corresponding element includes, each element of the first linear list include one second linear list, every one second linear list it is each Element is respectively used to record the operation information applied in different time sections, and the element of every one second linear list is corresponding between any two Time interval is less than or equal to prefixed time interval;
    Setup module, for when the application change on foreground, element corresponding with foreground application to be set in the first linear list, and Triggering performs in the first linear list of the record and applies the operation information step increased newly in different time sections corresponding to each element.
  7. 7. the device of record application message according to claim 6, it is characterised in that the setup module is used for:
    Detect in the first linear list and whether include element corresponding with foreground application;
    If detecting to include element corresponding with foreground application in the first linear list, element corresponding to foreground application is adjusted to The first element of first linear list;
    If detecting not including element corresponding with foreground application in the first linear list, the member corresponding to foreground application is created Element, and the element corresponding to foreground application is added in the first linear list turns into first element.
  8. 8. the device of record application message according to claim 7, it is characterised in that the setup module is used for:
    If detecting not including element corresponding with foreground application in the first linear list, the element number of the first linear list is detected Whether default value is reached;
    If detecting, the element number of the first linear list reaches default value, deletes last member in the first linear list Element, and create corresponding to foreground application element, and by the element corresponding to foreground application be added in the first linear list into For first element;
    If detecting, the element number of the first linear list is not up to default value, creates the element corresponding to foreground application, and Element corresponding to foreground application, which is added in the first linear list, turns into first element.
  9. 9. the device of record application message according to claim 6, it is characterised in that described device also includes:
    Memory module, for when detecting terminal closedown, data corresponding to the first linear list to be carried out with serializing operation, and will Data Cun Chudao by serializing presets storage address.
  10. 10. the device of record application message according to claim 9, it is characterised in that described device also includes:Extract mould Block, it is used for
    When detecting starting up of terminal, unserializing operation is carried out to the data in the default storage address of the terminal, obtained By the data of unserializing;
    By in the data Cun Chudao internal memories by unserializing, and it is defined as the first linear list.
  11. 11. a kind of storage medium, is stored thereon with computer program, it is characterised in that when the computer program is in computer During upper execution so that the computer performs the method as any one of claim 1 to 5.
  12. 12. a kind of electronic equipment, including memory, processor, it is characterised in that the processor is by calling the memory The computer program of middle storage, for performing the method as any one of claim 1 to 5.
CN201710939524.0A 2017-09-30 2017-09-30 Method and device for recording application information, storage medium and electronic equipment Active CN107526675B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710939524.0A CN107526675B (en) 2017-09-30 2017-09-30 Method and device for recording application information, storage medium and electronic equipment
PCT/CN2018/102231 WO2019062412A1 (en) 2017-09-30 2018-08-24 Method and apparatus for recording application information, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710939524.0A CN107526675B (en) 2017-09-30 2017-09-30 Method and device for recording application information, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107526675A true CN107526675A (en) 2017-12-29
CN107526675B CN107526675B (en) 2019-12-31

Family

ID=60684821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710939524.0A Active CN107526675B (en) 2017-09-30 2017-09-30 Method and device for recording application information, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN107526675B (en)
WO (1) WO2019062412A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019062412A1 (en) * 2017-09-30 2019-04-04 Oppo广东移动通信有限公司 Method and apparatus for recording application information, storage medium, and electronic device
CN110032429A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065182A (en) * 2010-12-28 2011-05-18 上海华勤通讯技术有限公司 Method for quickly starting mobile phone application
CN103077356A (en) * 2013-01-11 2013-05-01 中国地质大学(武汉) Protecting and tracking method for primary information of mobile terminal based on user behavior pattern
CN105677548A (en) * 2015-12-28 2016-06-15 小米科技有限责任公司 Application management method and apparatus, and terminal
WO2017120964A1 (en) * 2016-01-17 2017-07-20 段春燕 Method for information insertion when controlling gaming time and time control system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060116983A1 (en) * 2004-11-30 2006-06-01 International Business Machines Corporation System and method for ordering query results
CN101158976A (en) * 2007-11-21 2008-04-09 金蝶软件(中国)有限公司 Method and system for data-base recording enquire preprocess
CN105279431B (en) * 2014-05-29 2020-07-07 阿里巴巴集团控股有限公司 Method, device and system for recording operation information in mobile equipment
CN107180185A (en) * 2017-05-15 2017-09-19 上海与德科技有限公司 A kind of recording method, device and the terminal of terminal operation process
CN107526675B (en) * 2017-09-30 2019-12-31 上海瑾盛通信科技有限公司 Method and device for recording application information, storage medium and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065182A (en) * 2010-12-28 2011-05-18 上海华勤通讯技术有限公司 Method for quickly starting mobile phone application
CN103077356A (en) * 2013-01-11 2013-05-01 中国地质大学(武汉) Protecting and tracking method for primary information of mobile terminal based on user behavior pattern
CN105677548A (en) * 2015-12-28 2016-06-15 小米科技有限责任公司 Application management method and apparatus, and terminal
WO2017120964A1 (en) * 2016-01-17 2017-07-20 段春燕 Method for information insertion when controlling gaming time and time control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019062412A1 (en) * 2017-09-30 2019-04-04 Oppo广东移动通信有限公司 Method and apparatus for recording application information, storage medium, and electronic device
CN110032429A (en) * 2018-01-10 2019-07-19 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN110032429B (en) * 2018-01-10 2022-03-18 Oppo广东移动通信有限公司 Information processing method and device, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
WO2019062412A1 (en) 2019-04-04
CN107526675B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN109857737B (en) Cold and hot data storage method and device and electronic equipment
CN102096625B (en) Monitor and track application service condition
CN103077356B (en) Protecting and tracking method for primary information of mobile terminal based on user behavior pattern
CN107786623B (en) Message asynchronous processing method and device
CN109377173A (en) A kind of flow path processing method, electronic equipment and storage medium
CN104636240A (en) Method for acquiring information report and terminal
CN107491300A (en) The reminding method and its terminal of a kind of intelligent function
CN106886422A (en) Method for upgrading software and device, electronic equipment
CN110019024A (en) A kind of directory method, system and electronic equipment and storage medium
CN103491259A (en) Method and device for storing and controlling communication information of temporary communication numbers
CN109842621A (en) A kind of method and terminal reducing token storage quantity
CN107894945A (en) Bury an adding method, mobile terminal and computer-readable recording medium
CN107526675A (en) Record method, apparatus, storage medium and the electronic equipment of application message
US20150020167A1 (en) System and method for managing files
CN105893471A (en) Data processing method and electronic equipment
CN109597707A (en) Clone volume data copying method, device and computer readable storage medium
CN108984339A (en) Data reconstruction method and Related product
CN108228168A (en) A kind of revocation, the abstract method of recovery operation
CN102937923B (en) A kind of method of automatic preservation user interface state
CN107402908A (en) Document content update method, device and equipment, computer-readable recording medium
CN107203417A (en) A kind of data clearing method, relevant apparatus and electronic equipment
CN111880701B (en) Page switching method and device and electronic equipment
CN108009426A (en) Acquisition methods, device, medium and the electronic equipment of trusted area log information
CN106484691A (en) The date storage method of mobile terminal and device
EP1583336A3 (en) Mobile terminal and key operation method capable of restoring operation environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190109

Address after: Room 2101, 600 Longhuazhong Road, Xuhui District, Shanghai 200030

Applicant after: SHANGHAI JINSHENG COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant