CN106326065B - Terminal use duration management method and device - Google Patents
Terminal use duration management method and device Download PDFInfo
- Publication number
- CN106326065B CN106326065B CN201510387620.XA CN201510387620A CN106326065B CN 106326065 B CN106326065 B CN 106326065B CN 201510387620 A CN201510387620 A CN 201510387620A CN 106326065 B CN106326065 B CN 106326065B
- Authority
- CN
- China
- Prior art keywords
- screen
- time
- timing
- duration
- 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.)
- Active
Links
Images
Landscapes
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a method for managing the service time of a terminal, which comprises the following steps: judging whether a screen operation behavior record exists in the current monitoring period; if the screen operation behavior record exists, the sum of the pre-recorded total screen use duration of the current monitoring period and the starting duration of the current screen is used as a timing starting point, and the screen use timing is started; displaying the screen use timing according to a preset refreshing period; stopping the screen use timing when the screen closing behavior is detected, and recording the total screen use duration of the current monitoring period according to the screen use timing result; and sending a terminal use duration prompt message according to the total screen use duration in the current monitoring period. The embodiment of the invention also discloses a device for managing the service time of the terminal. By adopting the method and the device, the service time of the terminal is effectively and accurately prompted to the user.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for managing the service time of a terminal.
Background
With the technical development of mobile terminals, people can not leave the mobile terminals in daily life more and more, and long-time use of the mobile terminals can bring great influence and damage to the eyes of users, and how to monitor the time length of the users using the mobile terminals to realize the purpose of sending eye health prompts to the users becomes a practical requirement in the technical field of computers.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and a device for managing a terminal use duration, which can effectively and accurately prompt a user about the use duration of the terminal.
In order to solve the above technical problem, an embodiment of the present invention provides a method for managing a duration of a terminal, where the method includes:
judging whether a screen operation behavior record exists in the current monitoring period;
if the screen operation behavior record exists, the sum of the pre-recorded total screen use duration of the current monitoring period and the starting duration of the current screen is used as a timing starting point, and the screen use timing is started;
refreshing and displaying the screen use timing in a second level;
and when the screen closing behavior is detected, stopping the screen use timing, and recording the total screen use duration of the current monitoring period according to the screen use timing result.
Correspondingly, the embodiment of the invention also provides a device for managing the service time of the terminal, which comprises:
the screen record judging module is used for judging whether a screen operation behavior record exists in the current monitoring period;
the screen use timing module is used for adding the sum of the pre-recorded total screen use duration of the current monitoring period and the starting duration of the current screen to be used as a timing starting point and starting the screen use timing if the screen operation behavior record exists;
the timing display module is used for refreshing and displaying the screen use timing in a second level;
and the screen use timing module is also used for stopping the screen use timing when the screen closing behavior is detected, and recording the total screen use duration of the current monitoring period according to the screen use timing result.
In the embodiment, the screen operation behavior of the terminal screen is monitored, the screen use timing is performed according to the sum of the pre-recorded total screen use duration of the current monitoring period and the current screen starting duration as the starting point of the timing, and the total screen use duration of the terminal screen in the current monitoring period is fed back to the user in real time, so that the user is effectively and accurately prompted about the terminal use duration.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for managing a duration of use of a terminal according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for managing a duration of use of a terminal according to another embodiment of the present invention;
FIG. 3 is a diagram illustrating a total duration of screen usage of a terminal screen in a current monitoring period according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal use duration management apparatus in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The method and the device for managing the use duration of the terminal can be used in electronic terminals such as personal computers, smart phones, tablet computers and intelligent portable equipment, and record the use duration of the terminal used by a user by monitoring the use duration of the electronic screen, so that the use duration of the terminal used by the user is effectively and accurately prompted to the user.
Fig. 1 is a schematic flow chart of a method for managing a duration of use of a terminal in an embodiment of the present invention, where as shown in the drawing, the flow of the method for managing a duration of use of a terminal in the embodiment may include:
s101, judging whether a screen operation behavior record exists in the current monitoring period.
Specifically, the monitoring period may be 1 hour, 1 day, 1 week or other monitoring periods that can be set by a user. The terminal use duration management device may monitor whether the screen operation behavior occurs on the terminal screen in real time during the operation of the monitoring service, for example, in an optional embodiment, when the terminal screen is turned on or turned off, the terminal operation system may send a corresponding screen operation behavior notification to the terminal use duration management device, so that the terminal use duration management device may record the screen operation behavior of the terminal screen. If no screen operation behavior record exists in the current monitoring period, it indicates that the monitoring service is operated for the first time in the current monitoring period, the operation time of the monitoring service can be used as the timing starting point of the current monitoring period, and the screen use timing is started, otherwise, S102 is executed. The screen operation behaviors may include a screen opening behavior and a screen closing behavior, the screen closing behavior may include screen locking, shutdown or other operations causing the screen to be powered off, and the screen opening behavior may include screen unlocking, power on or other operations triggering the screen to be powered on.
It should be noted that triggering implementation of the terminal use duration management method flow in this embodiment may be triggered by an instruction to start running the monitoring service, or by detecting a screen start operation, or by detecting when a user opens the screen use duration display interface or inputs an instruction to display the screen use duration.
And S102, if the screen operation behavior record exists, the sum of the pre-recorded total screen use duration of the current monitoring period and the current screen starting duration is used as a timing starting point, and the screen use timing is started.
Specifically, the terminal use duration management device may obtain the occurrence time of the latest screen opening behavior in the screen operation behavior record, and further calculate the duration from the latest screen opening behavior to the current time as the screen opening duration of this time. The total screen use duration of the current monitoring period may be obtained by the terminal use duration management device by pre-recording and storing the total screen use duration in a local preset path, for example, in a preset database or a data file, the terminal use duration management device may read the total screen use duration of the current monitoring period obtained by pre-recording when needed, and then the sum of the pre-recorded total screen use duration of the current monitoring period and the current screen opening duration is used as a timing starting point to start the screen use timing. For example, if the pre-recorded total screen usage time of the current monitoring period is 40 minutes, and the current screen opening time is 2 minutes and 55 seconds, the starting point of the timing may be 42: 55.
In an alternative embodiment, the screen usage timing may be timed by a Chronometer control built into the terminal.
And S103, displaying the screen use timing according to a preset refresh period.
The preset refresh period may be 1 second, 5 seconds, 30 seconds, or the like. For example, as shown in fig. 3, the screen usage timing is displayed in a refresh manner every second, so that the total screen usage duration of the terminal screen in the current monitoring period can be fed back to the user in real time.
And S104, stopping the screen use timing when the screen closing behavior is detected, and recording the total screen use duration of the current monitoring period according to the screen use timing result.
In specific implementation, a terminal operating system can send a corresponding screen operation behavior notification to a terminal use duration management device, so that the terminal use duration management device can detect that a screen closing behavior occurs on a terminal screen, further stop screen use timing, record a screen use timing result as the total screen use duration of a current monitoring period, and use the screen use duration of the following start monitoring screen use duration.
And S105, sending a terminal use duration prompt message according to the total screen use duration in the current monitoring period.
In specific implementation, a threshold value may be preset, and if the total screen use time in the current monitoring period is greater than the preset threshold value, a terminal use time prompt message is sent. In other optional embodiments, after the total screen use time in the current monitoring period is greater than the preset threshold, when the screen is opened or used for more than 5 minutes each time, the terminal use time prompt message may be sent to the user.
In the embodiment, the screen operation behavior of the terminal screen is monitored, the screen use timing is performed according to the sum of the pre-recorded total screen use time of the current monitoring period and the current screen starting time as the starting point of the timing, and the total screen use time of the terminal screen in the current monitoring period is fed back to the user in real time, so that the terminal use time is effectively and accurately prompted to the user.
Fig. 2 is a schematic flow chart of a terminal use duration management method in another embodiment of the present invention, and as shown in the drawing, the flow of the terminal use duration management method in the embodiment includes the following steps:
s201, judging whether a screen operation behavior record exists in the current monitoring period.
Specifically, the monitoring period may be 1 hour, 1 day, 1 week or other monitoring periods that can be set by a user. The terminal use duration management device may monitor whether the screen operation behavior occurs on the terminal screen in real time during the operation of the monitoring service, for example, in an optional embodiment, when the terminal screen is turned on or turned off, the terminal operation system may send a corresponding screen operation behavior notification to the terminal use duration management device, so that the terminal use duration management device may record the screen operation behavior of the terminal screen. If no screen operation behavior record exists in the current monitoring period, it indicates that the monitoring service is operated for the first time in the current monitoring period, and S202 is executed, otherwise, S203 is executed.
And S202, taking the running time of the monitoring service as the timing starting point of the current monitoring period.
Specifically, the terminal use duration management device may record the operation time of the monitoring service, and if the monitoring server is operated for the first time in the monitoring period, the operation time of the monitoring service may be directly used as the timing starting point of the current monitoring period.
S203, judging whether the current time is the first time after the terminal operating system is started.
In the specific implementation, the terminal operating system can send a notification message to the terminal use duration management device after being started, the terminal use duration management device confirms that the current time is the first time after the terminal operating system is started according to the message, and then deletes the notification message, so that the terminal operating system cannot be considered to be the first time after the terminal operating system is started again. And if the current time is the first time after the terminal operating system is started, executing S206, otherwise executing S204.
And S204, judging whether the current time is the first time after the monitoring service is started.
If the current time is the first time after the monitoring service is started, executing S206, otherwise executing S205.
S205, judging that the screen operation behavior which occurs last time is a screen opening behavior or a screen closing behavior.
That is, the screen operation behavior record in the current monitoring period is checked, if the last screen operation behavior is a screen opening behavior, S207 is executed, and if the screen opening behavior is a screen closing behavior, S206 is executed.
And S206, taking the total screen use time of the current monitoring period recorded in advance as a timing starting point.
Specifically, if the terminal operating system is started for the first time at present, it indicates that the terminal operating system is restarted, and then the recorded monitoring time after the last screen starting action may have dirty data to affect the accuracy of the monitoring time, so that the time of the part may not be considered, and the total screen use time of the current monitoring period recorded in advance is directly used as a timing starting point; similarly, if the current time is the first time after the monitoring service is started, it indicates that the monitoring service may be restarted, and the recorded monitoring time after the last screen opening behavior may have dirty data, so that the time length of the part may not be considered, and the total screen use time length of the current monitoring period which is recorded in advance is directly used as the starting point of the time counting; if the last screen operation behavior is a screen closing behavior, which indicates that a data write delay may occur, the previous screen opening duration may not be considered, and the total screen use duration of the current monitoring period, which is recorded in advance, is directly used as the starting point of timing.
It should be noted that there is no necessary logical sequence or conditional relationship between the three steps S203-S205, that is, in other alternative embodiments, only one or two of the three steps S203-S205 may be executed, and the execution sequence may be arbitrarily changed without departing from the spirit of the present invention and without affecting the technical purpose and effect of the present invention.
And S207, taking the sum of the total screen use duration of the current monitoring period and the starting duration of the current screen as a timing starting point.
Specifically, the terminal use duration management device may obtain the occurrence time of the latest screen opening behavior in the screen operation behavior record, and further calculate the duration from the latest screen opening behavior to the current time as the screen opening duration of this time. The total screen use duration of the current monitoring period may be obtained by the terminal use duration management device by pre-recording and storing the total screen use duration in a local preset path, for example, in a preset database or a data file, the terminal use duration management device may read the total screen use duration of the current monitoring period obtained by pre-recording when needed, and then the sum of the pre-recorded total screen use duration of the current monitoring period and the current screen opening duration is used as a timing starting point to start the screen use timing. For example, if the pre-recorded total screen usage time of the current monitoring period is 40 minutes, and the current screen opening time is 2 minutes and 55 seconds, the starting point of the timing may be 42: 55.
S208, start the screen usage timing.
Specifically, the screen usage timing may be performed by a Chronometer control built in the terminal.
And S209, displaying the screen use timing according to a preset refresh period.
The preset refresh period may be 1 second, 5 seconds, 30 seconds, or the like. For example, as shown in fig. 3, the screen usage timing is displayed in a refresh manner every second, so that the total screen usage duration of the terminal screen in the current monitoring period can be fed back to the user in real time.
And S210, stopping the screen use timing when the screen closing behavior is detected, and recording the total screen use duration of the current monitoring period according to the screen use timing result.
In specific implementation, a terminal operating system can send a corresponding screen operation behavior notification to a terminal use duration management device, so that the terminal use duration management device can detect that a screen closing behavior occurs on a terminal screen, further stop screen use timing, record a screen use timing result as the total screen use duration of a current monitoring period, and use the screen use duration of the following start monitoring screen use duration.
And S211, sending a terminal use duration prompt message according to the total screen use duration in the current monitoring period.
In specific implementation, a threshold value may be preset, and if the total screen use time in the current monitoring period is greater than the preset threshold value, a terminal use time prompt message is sent. In other optional embodiments, after the total screen use time in the current monitoring period is greater than the preset threshold, when the screen is opened or used for more than 5 minutes each time, the terminal use time prompt message may be sent to the user.
In the embodiment, the screen operation behavior of the terminal screen is monitored, and then different timing starting points are adopted to perform screen use timing according to different scenes, so that the problem that dirty data caused by various scenes influences the accuracy of timing can be effectively avoided, and the total screen use duration of the terminal screen in the current monitoring period is fed back to a user in real time, so that the effective and accurate prompt of the user on the use duration of the terminal is realized.
Fig. 4 is a schematic structural diagram of a terminal use duration management device in an embodiment of the present invention, where the terminal use duration management device of the present invention may be implemented in an electronic terminal such as a personal computer, a smart phone, a tablet computer, and an intelligent portable device, and as shown in the figure, the terminal use duration management device in an embodiment of the present invention may at least include a screen recording determination module 410, a screen use timing module 420, a timing display module 430, and a use duration prompt module 480:
and a screen record judging module 410, configured to judge whether a screen operation behavior record exists in the current monitoring period.
Specifically, the monitoring period may be 1 hour, 1 day, 1 week or other monitoring periods that can be set by a user. The terminal use duration management device may monitor whether the screen operation behavior occurs on the terminal screen in real time during the operation of the monitoring service, for example, in an optional embodiment, when the terminal screen is turned on or turned off, the terminal operation system may send a corresponding screen operation behavior notification to the terminal use duration management device, so that the terminal use duration management device may record the screen operation behavior of the terminal screen. The screen operation behaviors may include a screen opening behavior and a screen closing behavior, the screen closing behavior may include screen locking, shutdown or other operations causing the screen to be powered off, and the screen opening behavior may include screen unlocking, power on or other operations triggering the screen to be powered on.
It should be noted that the manner of determining whether the screen operation behavior record exists in the current monitoring period by the trigger screen record determining module 410 may be triggered by an instruction to start running the monitoring service, or by detecting a screen start operation, or when detecting that a user opens the screen use duration display interface or inputs an instruction to display the screen use duration.
And the screen use timing module 420 is configured to, when there is a screen operation behavior record, use the sum of the total screen use duration of the current monitoring period and the current screen start duration, which are recorded in advance, as a timing starting point, and start screen use timing.
Specifically, the screen usage timing module 420 may obtain the occurrence time of the latest screen opening behavior in the screen operation behavior record, and further calculate the time length from the latest screen opening behavior to the current time length as the current screen opening time length. The total screen usage duration of the current monitoring period may be obtained by the terminal usage duration management device by pre-recording and storing the total screen usage duration in a local preset path, for example, in a preset database or a data file, and the screen usage timing module 420 may read the total screen usage duration of the current monitoring period obtained by pre-recording when needed, and then use the sum of the pre-recorded total screen usage duration of the current monitoring period and the current screen opening duration as a timing starting point to start the screen usage timing. For example, if the pre-recorded total screen usage time of the current monitoring period is 40 minutes, and the current screen opening time is 2 minutes and 55 seconds, the starting point of the timing may be 42: 55.
In an alternative embodiment, the screen usage timing module 420 may time through a Chronometer control built into the terminal.
And a timing display module 430, configured to display the screen usage timing according to a preset refresh cycle.
The preset refresh period may be 1 second, 5 seconds, 30 seconds, or the like. For example, as shown in fig. 3, the total screen usage duration of the terminal screen in the current monitoring period can be fed back to the user in real time by refreshing and displaying the screen usage timing every second
The screen usage timing module 420 is further configured to stop the screen usage timing when the screen closing behavior is detected, and record the total screen usage duration of the current monitoring period according to the result of the screen usage timing.
In specific implementation, a terminal operating system may send a corresponding screen operation behavior notification to the terminal usage duration management device, so that the screen usage timing module 420 may detect that a screen closing behavior occurs on the terminal screen, and then stop the screen usage timing, and record a result of the screen usage timing as a total screen usage duration of a current monitoring period, and use the screen usage time of the next time to start monitoring the screen usage duration.
And the using duration prompting module 480 is configured to send a terminal using duration prompting message according to the total screen using duration in the current monitoring period.
In a specific implementation, the using duration prompting module 480 may preset a threshold, and send a terminal using duration prompting message if the total screen using duration in the current monitoring period is greater than the preset threshold. In other optional embodiments, the usage duration prompting module 480 may further send a terminal usage duration prompting message to the user every time the screen is turned on or the usage screen exceeds 5 minutes after the total screen usage duration in the current monitoring period is greater than the preset threshold.
Further optionally, the terminal usage duration management apparatus in an optional embodiment may further include:
the screen behavior determining module 440 is configured to determine that the last screen operation behavior in the screen operation behavior record is a screen opening behavior or a screen closing behavior.
The screen usage timing module 420 is configured to, when the screen behavior determining module 440 determines that the last occurring screen operation behavior is a screen opening behavior, start screen usage timing by taking a sum of a pre-recorded total screen usage duration of the current monitoring period and a current screen opening duration as a timing starting point; when the screen behavior determining module 440 determines that the last screen operation behavior is a screen closing behavior, the screen use timing is started by using the pre-recorded total screen use duration of the current monitoring period as a timing starting point.
In another optional embodiment, the terminal usage duration management apparatus may further include:
the service restart judging module 450 is configured to judge whether the current time is the first time after the current start of the monitoring service;
the screen use timing module 420 is configured to start screen use timing by using a pre-recorded total screen use duration of the current monitoring period as a timing starting point when the service restart judgment module 450 judges that the current monitoring service is the first time after the current start of the monitoring service; when the service restart judgment module 450 judges that the current time is not the first time of the monitoring service after the current start, the sum of the pre-recorded total screen use time of the current monitoring period and the current screen start time is used as a timing starting point, and the screen use timing is started.
In another optional embodiment, the terminal usage duration management apparatus may further include:
the system restart judging module 460 is configured to judge whether the current time is the first time after the terminal operating system is started;
the screen usage timing module 420 is configured to, when the system restart determining module 460 determines that the current time is the first time counted after the terminal operating system is started this time, start the screen usage timing by using the total screen usage duration of the current monitoring period, which is recorded in advance, as a timing starting point; when the system restart judging module 460 judges that the current time is not the first time of the terminal operating system after the current start, the sum of the pre-recorded total screen usage duration of the current monitoring period and the current screen start duration is used as a timing starting point, and the screen usage timing is started.
Further in an optional embodiment, the terminal usage duration management apparatus may further include:
the starting duration obtaining module 470 is configured to obtain occurrence time of a latest screen starting behavior in the screen operation behavior record, and calculate a duration from the latest screen starting behavior to a current time as the current screen starting duration.
The terminal use duration management device in the embodiment of the present invention may perform the monitoring of the use duration of the terminal screen through the above modules, and the specific implementation manner may refer to the method flows in fig. 1 and fig. 2 for detailed description, which is not described again in this embodiment.
The terminal use duration management device in the embodiment performs screen use timing by monitoring the screen operation behavior of the terminal screen according to the sum of the pre-recorded screen use total duration of the current monitoring period and the screen opening duration of this time as a timing starting point, and then feeds back the screen use total duration of the terminal screen in the current monitoring period to the user in real time, so that the terminal use duration is effectively and accurately prompted to the user. And then the terminal use duration management device can adopt different timing starting points to perform screen use timing according to different scenes, and can effectively avoid the influence of dirty data caused by various scenes on the accuracy of timing.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (17)
1. A method for managing the service time of a terminal is characterized by comprising the following steps:
if the screen operation behavior record exists in the current monitoring period, judging whether the current time is the first time after the terminal operation system is abnormally closed and restarted;
if not, the sum of the pre-recorded total screen use duration of the current monitoring period and the starting duration of the screen is taken as a timing starting point, and the screen use timing is started;
if so, taking the total screen use duration of the current monitoring period recorded in advance as a timing starting point, and starting screen use timing;
displaying the screen use timing according to a preset refresh period, wherein the preset refresh period is a second-level refresh period;
stopping the screen use timing when the screen closing behavior is detected, and recording the total screen use duration of the current monitoring period according to the screen use timing result;
and sending a terminal use duration prompt message according to the total screen use duration in the current monitoring period.
2. The terminal usage duration management method of claim 1, wherein the method further comprises:
and if no screen operation behavior record exists in the current monitoring period, taking the running time of the monitoring service as the timing starting point of the current monitoring period, and starting the screen use timing.
3. The method for managing the usage duration of a terminal according to claim 1, wherein the sum of the total usage duration of the screen of the current monitoring period and the opening duration of the screen of this time, which is recorded in advance, is used as the starting point of the timing, and before the start of the timing of the usage of the screen, the method further comprises:
judging whether the screen operation behavior which occurs last time in the screen operation behavior record is a screen opening behavior or a screen closing behavior;
if the screen is started, executing the sum of the pre-recorded total screen use duration of the current monitoring period and the screen starting duration of the current time as a timing starting point, and starting the screen use timing;
and if the screen is closed, taking the total screen use time length of the current monitoring period recorded in advance as a timing starting point, and starting screen use timing.
4. The terminal usage duration management method according to claim 1, wherein the reading of the sum of the total screen usage duration of the current monitoring period and the current screen on duration recorded in advance is taken as a timing start point, and before starting the screen usage timing, the method further comprises:
judging whether the current time is the first time after the monitoring service is started;
if the monitoring service is started for the first time after the current starting, the total screen use duration of the current monitoring period is recorded in advance and serves as a timing starting point, and screen use timing is started;
and if the time is not the first time after the monitoring service is started, executing the sum of the pre-recorded total screen use time length of the current monitoring period and the screen starting time length of the current time as a time starting point, and starting the screen use time.
5. The terminal usage duration management method according to any one of claims 3 to 4, wherein the method further comprises:
acquiring the occurrence time of the latest screen opening behavior in the screen operation behavior record;
and calculating the time length from the last screen opening action to the current time as the screen opening time length of this time.
6. The terminal use duration management method according to any one of claims 1 to 4, wherein the sending out the terminal use duration prompt message according to the total screen use duration in the current monitoring period comprises:
and if the total screen use time in the current monitoring period is greater than a preset threshold, sending a terminal use time prompt message.
7. The terminal usage duration management method according to any one of claims 1 to 4, wherein the screen usage timing is timing by a control built in the terminal.
8. The terminal lifetime management method of claim 6, wherein said method further comprises:
and after the total screen use time in the current monitoring period is greater than the preset threshold, sending terminal use time prompt information to a user when the screen starting behavior is detected or the screen use time exceeds 5 minutes.
9. A terminal use duration management apparatus, comprising:
the system restarting judging module is used for judging whether the current time is the first time after the terminal operating system is abnormally closed and restarted under the condition that the screen operating behavior record exists in the current monitoring period;
the screen use timing module is used for starting screen use timing by taking the total screen use time length of the current monitoring period recorded in advance as a timing starting point when the judgment result of the system restart judgment module is negative; when the judgment result of the system restart judgment module is yes, the sum of the pre-recorded total screen use duration of the current monitoring period and the screen starting duration of the current time is used as a timing starting point, and screen use timing is started;
the timing display module is used for displaying the screen use timing according to a preset refreshing period, wherein the preset refreshing period is a second-level refreshing period;
the screen use timing module is also used for stopping the screen use timing when the screen closing behavior is detected, and recording the total screen use duration of the current monitoring period according to the result of the screen use timing;
and the service duration prompting module is used for sending terminal service duration prompting information according to the total screen service duration in the current monitoring period.
10. The terminal usage duration management device of claim 9, wherein the screen usage timing module is further configured to: and if no screen operation behavior record exists in the current monitoring period, taking the running time of the monitoring service as the timing starting point of the current monitoring period, and starting the screen use timing.
11. The terminal use duration management apparatus of claim 9, further comprising:
the screen behavior judging module is used for judging whether the screen operation behavior which occurs last time in the screen operation behavior record is a screen opening behavior or a screen closing behavior;
the screen use timing module is used for taking the sum of the pre-recorded total screen use time length of the current monitoring period and the screen start time length as a timing starting point when the screen behavior judging module judges that the latest screen operation behavior is the screen start behavior, and starting the screen use timing; and when the screen behavior judging module judges that the last screen operation behavior is the screen closing behavior, the screen use timing is started by taking the total screen use duration of the current monitoring period recorded in advance as a timing starting point.
12. The terminal use duration management apparatus of claim 9, further comprising:
the service restart judging module is used for judging whether the current time is the first time after the monitoring service is started;
the screen use timing module is used for starting screen use timing by taking the total screen use time of the current monitoring period recorded in advance as a timing starting point when the service restart judging module judges that the current time is the first time after the monitoring service is started at this time; and when the service restart judging module judges that the current time is not the first time of the monitoring service after the current start, the sum of the pre-recorded total screen use time of the current monitoring period and the current screen start time is used as a timing starting point, and the screen use timing is started.
13. The terminal usage duration management device according to any one of claims 11 to 12, further comprising:
and the starting time length obtaining module is used for obtaining the occurrence time of the latest screen starting behavior in the screen operation behavior record, and calculating the time length from the latest screen starting behavior to the current time length as the screen starting time length of the time.
14. The terminal usage duration management device according to any one of claims 9 to 12, wherein the usage duration prompting module is configured to:
and if the total screen use time in the current monitoring period is greater than a preset threshold, sending a terminal use time prompt message.
15. The terminal usage duration management device according to any one of claims 9 to 12, wherein the screen usage timing module is configured to time through a control built in the terminal.
16. The terminal usage duration management device of claim 14, wherein the usage duration prompting module is further configured to:
and after the total screen use time in the current monitoring period is greater than the preset threshold, sending terminal use time prompt information to a user when the screen starting behavior is detected or the screen use time exceeds 5 minutes.
17. A storage medium, characterized in that a computer program is stored in the storage medium, the computer program being configured to execute the terminal usage duration management method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510387620.XA CN106326065B (en) | 2015-06-30 | 2015-06-30 | Terminal use duration management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510387620.XA CN106326065B (en) | 2015-06-30 | 2015-06-30 | Terminal use duration management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106326065A CN106326065A (en) | 2017-01-11 |
CN106326065B true CN106326065B (en) | 2020-02-18 |
Family
ID=57726444
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510387620.XA Active CN106326065B (en) | 2015-06-30 | 2015-06-30 | Terminal use duration management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106326065B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106803858A (en) * | 2017-01-17 | 2017-06-06 | 河南工业大学 | The method and system of the overall time of Single Electron equipment are used in the range of limitation certain hour |
CN107317932A (en) * | 2017-06-28 | 2017-11-03 | 努比亚技术有限公司 | Use method for limiting, mobile terminal and the computer-readable recording medium of terminal |
CN109903081A (en) * | 2019-01-24 | 2019-06-18 | 浙江吉利汽车研究院有限公司 | A kind of automobile function control method, device and terminal |
CN110830660A (en) * | 2019-12-05 | 2020-02-21 | 四川长虹网络科技有限责任公司 | Mobile phone overuse reminding method based on mobile phone screen-off state |
CN112084101A (en) * | 2020-09-17 | 2020-12-15 | 中电科仪器仪表有限公司 | Statistical system suitable for usage rate of electronic measuring instrument |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1940885A (en) * | 2005-09-30 | 2007-04-04 | 联想(北京)有限公司 | System and method for counting use time |
CN101350112A (en) * | 2008-09-11 | 2009-01-21 | 南京Lg新港显示有限公司 | Automatic prompting apparatus and method under the situation of display long time continuous working |
CN101924831A (en) * | 2010-08-03 | 2010-12-22 | 惠州Tcl移动通信有限公司 | Method for recording use time of mobile phone |
CN103413407A (en) * | 2013-08-01 | 2013-11-27 | 上海摩普网络技术有限公司 | Eyesight protection method and system based on time |
CN103744576A (en) * | 2013-11-08 | 2014-04-23 | 艾酷电子科技有限公司 | Method and system for achieving operation interfaces of mobile terminal |
CN104298551A (en) * | 2013-07-15 | 2015-01-21 | 鸿富锦精密工业(武汉)有限公司 | Application program calling system and method |
CN104333658A (en) * | 2014-10-24 | 2015-02-04 | 安易讯科技(大连)有限公司 | Eyesight protection system of smart mobile phones |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5737748A (en) * | 1995-03-15 | 1998-04-07 | Texas Instruments Incorporated | Microprocessor unit having a first level write-through cache memory and a smaller second-level write-back cache memory |
US7539853B2 (en) * | 2002-11-18 | 2009-05-26 | Arm Limited | Handling interrupts in data processing of data in which only a portion of a function has been processed |
-
2015
- 2015-06-30 CN CN201510387620.XA patent/CN106326065B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1940885A (en) * | 2005-09-30 | 2007-04-04 | 联想(北京)有限公司 | System and method for counting use time |
CN101350112A (en) * | 2008-09-11 | 2009-01-21 | 南京Lg新港显示有限公司 | Automatic prompting apparatus and method under the situation of display long time continuous working |
CN101924831A (en) * | 2010-08-03 | 2010-12-22 | 惠州Tcl移动通信有限公司 | Method for recording use time of mobile phone |
CN104298551A (en) * | 2013-07-15 | 2015-01-21 | 鸿富锦精密工业(武汉)有限公司 | Application program calling system and method |
CN103413407A (en) * | 2013-08-01 | 2013-11-27 | 上海摩普网络技术有限公司 | Eyesight protection method and system based on time |
CN103744576A (en) * | 2013-11-08 | 2014-04-23 | 艾酷电子科技有限公司 | Method and system for achieving operation interfaces of mobile terminal |
CN104333658A (en) * | 2014-10-24 | 2015-02-04 | 安易讯科技(大连)有限公司 | Eyesight protection system of smart mobile phones |
Also Published As
Publication number | Publication date |
---|---|
CN106326065A (en) | 2017-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106326065B (en) | Terminal use duration management method and device | |
CN108345524B (en) | Application program monitoring method and application program monitoring device | |
CN108875837B (en) | Apparatus and method for testing target recognition device | |
CN110324793B (en) | Information reminding method and device and electronic terminal | |
RU2628485C2 (en) | Prompting method and device to remove the application | |
CN104794016A (en) | Mobile terminal crash testing and processing method and system | |
CN111479016B (en) | Terminal use duration reminding method and device, terminal and storage medium | |
CN111078446A (en) | Fault information acquisition method and device, electronic equipment and storage medium | |
CN107222619B (en) | Application program display method and device, computer device and readable storage medium | |
CN112153216A (en) | Electric quantity early warning method and device, terminal equipment and storage medium | |
WO2019140739A1 (en) | Method for determining return visits to client, and electronic apparatus and computer-readable storage medium | |
CN106708616A (en) | Process control method and process control device | |
CN104850318A (en) | Method and apparatus for transient message display control | |
CN109117191A (en) | Method, device and equipment for restarting electric appliance and storage medium | |
US10015307B2 (en) | Electronic device and usage control method | |
CN111552635A (en) | Data detection method, equipment, server and readable storage medium | |
CN112714368B (en) | Method and device for prompting abnormal electricity consumption, computer equipment and storage medium | |
CN110245046B (en) | Data statistics method and device for Android App without buried points | |
CN104348140B (en) | The method and electronic equipment that a kind of low battery is reminded | |
CN116860552A (en) | Application program operation monitoring method and device, electronic equipment and storage medium | |
TWI656441B (en) | Standby abnormal power consumption detecting system and method | |
CN104915286A (en) | Identifying power state changes | |
CN105183176B (en) | A kind for the treatment of method and apparatus of application program | |
CN111722695B (en) | Terminal equipment power consumption optimization method and device | |
CN106407098B (en) | Application program state monitoring method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |