[go: up one dir, main page]

CN106201816B - Reminding method and device - Google Patents

Reminding method and device Download PDF

Info

Publication number
CN106201816B
CN106201816B CN201510226583.4A CN201510226583A CN106201816B CN 106201816 B CN106201816 B CN 106201816B CN 201510226583 A CN201510226583 A CN 201510226583A CN 106201816 B CN106201816 B CN 106201816B
Authority
CN
China
Prior art keywords
reminding information
terminal
time
continuous use
reminding
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
Application number
CN201510226583.4A
Other languages
Chinese (zh)
Other versions
CN106201816A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510226583.4A priority Critical patent/CN106201816B/en
Publication of CN106201816A publication Critical patent/CN106201816A/en
Application granted granted Critical
Publication of CN106201816B publication Critical patent/CN106201816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a reminding method and a reminding device, and belongs to the field of computers. The method comprises the following steps: when the screen of the terminal is monitored to be lightened, starting timing on the continuous use time of the terminal; when the continuous use time reaches a first designated time, acquiring first reminding information; displaying the first reminding information; after the first reminding information is displayed, when the continuous use time length is increased by a second designated time length, acquiring a piece of second reminding information from a first preset information base, wherein the first preset information base comprises a plurality of pieces of second reminding information; and displaying the second reminding information, wherein the first reminding information is different from the plurality of pieces of second reminding information. The invention can effectively remind the eye health of the user.

Description

Reminding method and device
Technical Field
The invention relates to the field of computers, in particular to a reminding method and a reminding device.
Background
With the rapid development of computer technology, terminals such as mobile phones and tablet computers are more and more commonly applied in daily life of people, users often use the terminals to play games, chat, browse web pages and the like, and if the users use the terminals for a long time, the eyes of the users are damaged, for example, the eyes of the users are myopic, and therefore a reminding method is urgently needed to remind the users of healthy eyes.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a reminding method and apparatus. The technical scheme is as follows:
in one aspect, a method for reminding is provided, and the method includes:
when the screen of the terminal is monitored to be lightened, starting timing on the continuous use time of the terminal;
when the screen of the terminal is monitored to be closed, ending timing on the continuous use time of the terminal;
recording the screen closing time of the terminal;
storing the screen closing time and the current continuous use time in a corresponding relation between the screen closing time and the continuous use time, wherein the corresponding relation is used for acquiring the screen closing time closest to the recorded screen closing time and the timing time corresponding to the screen closing time closest to the recorded screen closing time, and acquiring the current continuous use time of the terminal based on the current timing time of a system timer of the terminal and the acquired timing time corresponding to the screen closing time closest to the recorded screen closing time;
when the continuous use time reaches a first designated time, acquiring first reminding information;
displaying the first reminding information;
after the first reminding information is displayed, when the continuous use time length is increased by a second designated time length, acquiring a piece of second reminding information from a first preset information base, wherein the first preset information base comprises a plurality of pieces of second reminding information;
and displaying the second reminding information, wherein the first reminding information is different from the plurality of pieces of second reminding information.
In another aspect, a reminder device is provided, the device comprising:
the starting timing module is used for starting timing the continuous use time of the terminal when the screen of the terminal is monitored to be lightened;
the timing ending module is used for ending timing of the continuous use time of the terminal when the screen of the terminal is monitored to be closed;
the recording module is used for recording the screen closing time of the terminal;
the storage module is used for storing the screen closing time and the current continuous use time into a corresponding relation between the screen closing time and the continuous use time, wherein the corresponding relation is used for acquiring the screen closing time closest to the current recorded screen closing time and the timing time corresponding to the screen closing time closest to the current recorded screen closing time, and the current timing time of a system timer of the terminal and the acquired timing time corresponding to the screen closing time closest to the current recorded screen closing time are based to obtain the current continuous use time of the terminal;
the first obtaining module is used for obtaining first reminding information when the continuous use time reaches a first specified time;
the first display module is used for displaying the first reminding information;
the second obtaining module is used for obtaining a piece of second reminding information from a first preset information base when the continuous use time length is increased by a second designated time length after the first reminding information is displayed, wherein the first preset information base comprises a plurality of pieces of second reminding information;
and the second display module is used for displaying the second reminding information, and the first reminding information is different from the plurality of pieces of second reminding information.
In still another aspect, a computer-readable storage medium is provided, which stores a program executed by a processor to implement the above-described reminding method.
The technical scheme provided by the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, when the screen of the terminal is monitored to be lightened, the continuous use time of the terminal can be automatically timed, when the continuous use time of the terminal reaches the first designated time, the user can be reminded by displaying the first reminding information, and after the first reminding information is displayed, when the continuous use time of the terminal is increased by the second designated time, the user can also obtain the second reminding information from the first preset information base and display the second reminding information, so that the user is further effectively reminded of using the terminal for health.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a reminding method according to an embodiment of the present invention;
fig. 2 is a flowchart of a reminding method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a first reminder information display interface according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of a statistical report display interface according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a reminder device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a reminder device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a reminding method according to an embodiment of the present invention. The method is used in a terminal, and referring to fig. 1, the method comprises the following steps:
step 101: and when the screen of the terminal is monitored to be lightened, starting timing the continuous use time of the terminal.
Step 102: and when the continuous use time of the terminal reaches a first designated time, acquiring first reminding information.
Step 103: and displaying the first reminding information.
Step 104: after the first reminding information is displayed, when the continuous use time of the terminal increases every second designated time, a piece of second reminding information is obtained from a first preset information base, and the first preset information base comprises a plurality of pieces of second reminding information.
Step 105: and displaying second reminding information, wherein the first reminding information is different from a plurality of pieces of second reminding information included in the first preset information base.
In the embodiment of the invention, when the screen of the terminal is monitored to be lightened, the continuous use time of the terminal can be automatically timed, when the continuous use time of the terminal reaches the first designated time, the user can be reminded by displaying the first reminding information, and after the first reminding information is displayed, when the continuous use time of the terminal is increased by the second designated time, the user can also obtain the second reminding information from the first preset information base and display the second reminding information, so that the user is further effectively reminded of using the terminal for health.
Optionally, when it is monitored that the screen of the terminal is lighted, after the continuous use time of the terminal is timed, the method further includes:
when the screen of the terminal is monitored to be closed, ending timing on the continuous use time of the terminal;
recording the screen closing time of the terminal;
and storing the screen closing time of the terminal and the continuous use time of the terminal in the corresponding relation between the screen closing time and the continuous use time.
Optionally, the method further comprises:
calculating the accumulated use duration of the terminal in a specified time period based on the corresponding relation between the stored screen closing time and the continuous use duration;
when the accumulated use time of the terminal reaches a third designated time, acquiring third reminding information;
and displaying the third reminding information.
Optionally, the method further comprises:
after the third reminding information is displayed, when the accumulated time of the terminal increases every fourth designated time, acquiring a piece of fourth reminding information from a second preset information base, wherein the second preset information base comprises a plurality of pieces of fourth reminding information;
and displaying fourth reminding information, wherein the third reminding information is different from a plurality of pieces of fourth reminding information included in the second preset information base.
Optionally, the method further comprises:
when a statistical report display instruction is received, calculating the accumulated use time length and the single longest continuous use time length of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous use time length;
and displaying the accumulated time length and the single longest continuous use time length of the terminal in a specified time period.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 2 is a flowchart of a reminding method according to an embodiment of the present invention. The method is used in a terminal, and referring to fig. 2, the method comprises the following steps:
step 201: and when the screen of the terminal is monitored to be lightened, starting timing the continuous use time of the terminal.
In the embodiment of the present invention, when the terminal monitors that the screen of the terminal is lighted, a timer may be started to start timing the continuous use time of the terminal.
Further, when the terminal monitors that the screen of the terminal is closed, ending timing on the continuous use time of the terminal, and recording the screen closing time of the terminal; and storing the screen closing time of the terminal and the continuous use time of the terminal in the corresponding relation between the screen closing time and the continuous use time.
It should be noted that, in the embodiment of the present invention, the timer for timing the current continuous use time of the terminal may be a system timer of the terminal, and of course, in an actual application, the timer may also be another timer, for example, a timer in a specific application, which is not specifically limited in this embodiment of the present invention.
When the system timer of the terminal is used, the system timer counts the time before restarting, the counted time is the accumulated time counted each time, for example, before the system timer is restarted, it is monitored that the screen of the terminal is lighted 3 times, that is, the usage duration of the terminal is counted 3 times, when the 1 st time is counted, the system timer is counted from 0, if the 1 st continuous usage duration of the terminal is 20 minutes, when the 2 nd time is counted, the system timer is counted from 20 minutes, and similarly, if the 2 nd continuous usage duration of the terminal is 30 minutes, then when the 3 rd time is counted, the system timer is counted from 50 minutes.
Therefore, the corresponding relation between the screen closing time of the terminal and the timing duration of the timer can be stored in the terminal. And storing the screen closing time of the terminal and the current continuous use time of the terminal before the corresponding relation between the screen closing time and the continuous use time, wherein the terminal needs to acquire the screen closing time closest to the recorded screen closing time from the corresponding relation between the screen closing time and the timing time, and acquire the corresponding timing time from the corresponding relation between the screen closing time and the timing time based on the acquired screen closing time. And subtracting the acquired timing duration from the current timing duration of the timer to obtain the continuous use duration of the terminal. Then, the screen closing time of the terminal and the current continuous use time of the terminal may be stored in the corresponding relationship between the screen closing time and the continuous use time.
For example, when a system timer of the terminal is used, the correspondence between the screen off time of the terminal and the time length of the timer stored in the terminal may be as shown in table 1 below. If the screen off time recorded this time by the terminal is 2015-4-1213: 20, the terminal may obtain the screen off time closest to the screen off time recorded this time from the correspondence between the screen off time and the time duration shown in table 1 as 2015-4-128: 20, and obtain the corresponding time duration from the correspondence between the screen off time and the time duration shown in table 1 as 5 hours based on the obtained screen off time. And subtracting the acquired timing duration from the current timing duration of the timer of 5 hours and 30 minutes to obtain the continuous use duration of the terminal of 30 minutes. Thereafter, the screen-off time 2015-4-1213: 20 of the terminal and the present continuous-use time period 30 minutes of the terminal may be stored in the correspondence between the screen-off time and the continuous-use time period as shown in table 2 below.
TABLE 1
Time of screen off Timing duration
2015-4-11 10:00 2 hours
2015-4-11 18:20 3 hours
2015-4-12 8:20 5 hours
…… ……
TABLE 2
Time of screen off The time of this continuous use
2015-4-11 10:00 30 minutes
2015-4-11 18:20 1 hour
2015-4-12 8:20 2 hours
2015-4-12 13:20 30 minutes
In order to improve the reminding efficiency, other timers can be adopted, for example, a timer which clears the timing time of the timer when the timing is finished each time can be adopted, so that the terminal does not need to calculate the continuous use time length, and the processing time is saved.
In the embodiment of the invention, when the screen of the terminal is monitored to be lightened, the continuous use time of the terminal can be started to be timed, and when the screen of the terminal is monitored to be closed, the continuous use time of the terminal can be ended to be timed, so that the user does not need to manually start timing or end timing, and the reminding efficiency is improved. In addition, in the embodiment of the invention, the reminding can be realized through the specified application installed in the terminal, and the specified application can be set to be in a background resident mode, so that the specified application can be operated in a background resident mode, and the eye health of the user can be reminded.
In addition, in the embodiment of the present invention, the continuous use time of the terminal is timed by the timer, so that the timer is separated from the system time of the terminal, and therefore, after the system time of the terminal is adjusted, the timing time of the timer is not affected.
Further, when the specified application exits abnormally, when the terminal executes a specified event, the specified application can be continuously pulled up to restore the running of the specified application. The specified event may be an internet event, a start event of a multimedia player, and the like, which is not specifically limited in this embodiment of the present invention.
Step 202: and when the continuous use time reaches a first designated time, acquiring first reminding information and displaying the first reminding information.
In order to remind the user of using eyes healthily in time, the continuous use time of the terminal can be compared with the first specified time in real time, when the continuous use time of the terminal is equal to the first specified time, the continuous use time of the terminal is determined to reach the first specified time, and then the first reminding information is obtained and displayed.
In the embodiment of the invention, when the first reminding information is displayed, the first reminding information can be displayed through the reminding frame. In addition, the first specified duration is set in advance, and the size of the first specified duration is not specifically limited in the embodiment of the present invention. For example, the first designated time period is 1 hour, and the first reminding message is "ask you for a question, have something too breathy that does not feel soreness and pain in the cervical vertebrae? When the continuous use time of the terminal reaches 1 hour, the first reminding information can be displayed in a reminding frame as shown in fig. 3.
It should be noted that, in the embodiment of the present invention, the first reminding information is taken as an example for description, in practical applications, the first reminding information is various, and the embodiment of the present invention does not specifically limit the first reminding information.
Step 203: after the first reminding information is displayed, when the continuous use time length is increased by a second designated time length, a piece of second reminding information is obtained from a first preset information base, and the second reminding information is displayed, wherein the first preset information base comprises a plurality of pieces of second reminding information, and the first reminding information is different from the plurality of pieces of second reminding information included in the first preset information base.
If the terminal does not monitor that the screen of the terminal is closed after the terminal displays the first reminding information, the terminal is determined to be still in use, and then, after the first reminding information is displayed, when the continuous use time length is increased by a second designated time length, a second reminding information is obtained from the first preset information base and the second reminding information is displayed, so as to further remind the user of using the terminal for health.
Since the terminal continues to be used after the first reminding information is displayed, that is, the eye-use duration of the user continuously increases, in order to effectively remind the user of the health of the user, the second specified duration may be set to be different from the first specified duration, and the second specified duration may be set to be shorter than the first specified duration. For example, the second designated time may be 30 minutes, so that after the first reminder information is displayed, if the terminal has not monitored that the screen of the terminal is closed, the continuous use time of the terminal is increased by 30 minutes, and a second reminder information "watching the screen too long is a disease, which is treated | can be obtained from the first preset information base! And displaying the second reminding information.
It should be noted that the method for displaying the second reminding information may be the same as the method for displaying the first reminding information, and this is not described in detail in the embodiment of the present invention. In addition, the first preset information base comprises a plurality of pieces of second reminding information which are different, and the terminal can randomly obtain one piece of second reminding information from the first preset information base and display the second reminding information. For example, the second reminding information included in the first preset information may be: "too long screen is a disease, which must be treated! Zao Mo Yao, listen to and say that someone has seen the screen for 18 hours, want to know how many reminders … … are really the last reminder, the elder has gone wrong in thousands of miles and the unhappy child has a quick rest, and the fatigue reminders are not useful to you, please expect electric shock therapy and fever therapy! Not fun "," for revolution, eyesight protection, eye exercises started! Please close the eyes, the first section, Rou Tianyingpoint …, stare so long that you are uncomfortable with the eyes and the screen is stiff and uncomfortable.
In the embodiment of the present invention, the accumulated usage duration of the terminal in the specified time period may be further prompted through the following steps, specifically as follows.
Step 204: and calculating the accumulated use duration of the terminal in the specified time period based on the corresponding relation between the stored screen closing time and the continuous use duration.
Specifically, the terminal acquires the screen closing time in the specified time period from the corresponding relationship between the screen closing time and the continuous use time, acquires the corresponding continuous use time from the corresponding relationship between the screen closing time and the continuous use time based on the acquired screen closing time, and adds the acquired continuous use time to obtain the accumulated use time of the terminal in the specified time period.
The specified time period may be set in advance, for example, the specified time period may be one day, and this is not specifically limited in the embodiment of the present invention.
Because the single continuous use time of the terminal can span two adjacent specified time periods, namely a first specified time period and a second specified time period, the first specified time period is the time period of the time when the continuous use time starts to be timed, and the second specified time period is the time period of the time when the continuous use time finishes to be timed, therefore, the operation duration for the second specified period of time may be determined based on the screen-off time corresponding to the continuous use duration, the continuous use duration may be compared with the operation duration, determining that the continuous use duration spans two adjacent specified time periods if the operation duration is less than the continuous use duration, determining the operation duration as the continuous use duration, and determining the remaining use duration in the continuous use duration as the continuous use duration in the first specified time period.
For example, if the terminal is used from 23:40 on the first day to 00:30 on the second day, the operation duration of the second day is determined to be 30 minutes, at this time, the continuous use duration spans 2 days, and the continuous use duration 50 minutes is greater than the operation duration of the second day by 30 minutes, 20 minutes is obtained by subtracting the operation duration of the second day from the continuous use duration 50 minutes, and the continuous use duration on the first day is determined to be 20 minutes and the continuous use duration on the second day is determined to be 30 minutes in the 50 minutes.
Optionally, in order to improve the reminding efficiency, in the embodiment of the present invention, it may also be determined that the continuous usage time is located in which specified time period directly based on the screen closing time corresponding to the continuous usage time, for example, when the screen closing time corresponding to the continuous usage time is located on the first day, the continuous usage time is the usage time of the terminal in the first day.
Step 205: and when the accumulated use time of the terminal in the specified time period reaches a third specified time length, acquiring third reminding information and displaying the third reminding information.
In order to remind the user of the health eye use in time, the accumulated use time of the terminal in the specified time period can be compared with a third specified time period in real time, when the accumulated use time of the terminal in the specified time period is equal to the third specified time period, the accumulated use time of the terminal in the specified time period is determined to reach the third specified time period, and then third reminding information is obtained and displayed.
In this embodiment of the present invention, the third reminding information may be different from or the same as the first reminding information, and this is not specifically limited in this embodiment of the present invention. In addition, when the third reminding information is displayed, the third reminding information can also be displayed through the reminding frame. Furthermore, the third specified duration is set in advance, and the size of the third specified duration is not specifically limited in the embodiment of the present invention. For example, the third specified time period is 3 hours, the first reminding message is "a rest bar, which is used for an excessive amount today", and when the cumulative use time period of the terminal reaches 3 hours, the third reminding message may be displayed.
It should be noted that, in the embodiment of the present invention, the third reminding information is taken as an example for description, in practical applications, the third reminding information is various, and the third reminding information is not specifically limited in the embodiment of the present invention.
Step 206: and after the third reminding information is displayed, when the accumulated time length is increased by a fourth designated time length, acquiring a piece of fourth reminding information from a second preset information base, and displaying the fourth reminding information, wherein the second preset information base comprises a plurality of pieces of fourth reminding information, and the third reminding information is different from the plurality of pieces of fourth reminding information contained in the second preset information base.
If the terminal continues to be used within the specified time period after the terminal displays the third reminding information, then, in order to further remind the user of eye health, after the third reminding information is displayed, when the cumulative use duration of the terminal within the specified time period increases by a fourth specified duration, a piece of fourth reminding information is obtained from the second preset information base, and the fourth reminding information is displayed.
After the third reminding information is displayed, the terminal is still used within the specified time period, that is, the eye-use duration of the user is continuously increased within the specified time period, so that the user can be effectively reminded of the health of the user, the fourth specified duration may be set to be different from the third specified duration, and the fourth specified duration is set to be shorter than the third specified duration. For example, the fourth specified duration may be 1 hour, so that after the third reminding information is displayed, if the terminal continues to be used within the specified time period, every time the cumulative use duration of the terminal within the specified time period is increased by 1 hour, a piece of fourth reminding information may be acquired from the second preset information base, and the fourth reminding information is displayed.
It should be noted that the method for displaying the fourth reminding information may be the same as the method for displaying the second reminding information, and this is not described in detail in the embodiment of the present invention. In addition, the second preset information base comprises a plurality of pieces of fourth reminding information which are different, and the terminal can randomly acquire one piece of fourth reminding information from the second preset information base and display the fourth reminding information. Moreover, the second preset information base may be the same as or different from the first preset information base, and this is not specifically limited in the embodiment of the present invention.
Further, the terminal may also count the accumulated usage duration and the single longest continuous usage duration of the terminal in a specified time period in real time and store the counted usage duration and the single longest continuous usage duration in a statistical report, that is, the terminal may update the statistical report in real time. When the terminal receives the statistical report display instruction, the accumulated time length and the single longest continuous use time length of the terminal in a specified time period can be directly displayed.
Alternatively, in order to avoid updating the statistical report in real time, when the terminal receives the statistical report display instruction, the terminal may calculate the cumulative usage time length and the single longest continuous usage time length of the terminal in a specified time period based on the stored correspondence between the screen off time and the continuous usage time length, and display the cumulative usage time length and the single longest continuous usage time length of the terminal in the specified time period. For example, the specified time period is one day, the accumulated usage time of the terminal is 2 hours in today, and the maximum continuous usage time of a single time in today is 41 minutes, at which time, the terminal can be displayed in the interface shown in fig. 4.
The statistical report display instruction may be triggered by a user, that is, the user may trigger the statistical report display instruction through a specified operation, where the specified operation may be an operation of clicking a display button, a sliding operation, a voice operation, and the like, and this is not particularly limited in this embodiment of the present invention.
It should be noted that, when the method provided by the embodiment of the present invention is used for reminding, the terminal may be running other applications, for example, playing a video, and at this time, in order to avoid disturbing the user, reminding information may be displayed in a notification bar at the top of the terminal to remind the user of using the method healthily.
In the embodiment of the invention, when the screen of the terminal is monitored to be lightened, the continuous use time of the terminal can be automatically timed, and when the screen of the terminal is monitored to be closed, the continuous use time of the terminal can be automatically timed, so that the user does not need to manually operate, and the operation is simple. In addition, when the continuous use time of the terminal reaches the first designated time length, the user can be reminded by displaying the first reminding information, and after the first reminding information is displayed, when the continuous use time of the terminal is increased by the second designated time length, a piece of second reminding information can be obtained from the first preset information base, and the second reminding information is displayed, so that the user is further effectively reminded of using eyes healthily.
Fig. 5 is a schematic structural diagram of a reminder device according to an embodiment of the present invention. Referring to fig. 5, the apparatus includes:
a start timing module 501, configured to start timing the current continuous use duration of the terminal when it is monitored that a screen of the terminal is lit;
a first obtaining module 502, configured to obtain first reminding information when the current continuous use duration of the terminal reaches a first specified duration;
a first display module 503, configured to display the first reminding information;
a second obtaining module 504, configured to, after the first reminding information is displayed, obtain a piece of second reminding information from a first preset information base when the current continuous usage duration of the terminal increases by a second specified duration, where the first preset information base includes a plurality of pieces of second reminding information;
the second display module 505 is configured to display second reminding information, where the first reminding information is different from the plurality of pieces of second reminding information included in the first preset information base.
Optionally, the apparatus further comprises:
the timing ending module is used for ending timing of the continuous use time of the terminal when the screen of the terminal is monitored to be closed;
the recording module is used for recording the screen closing time of the terminal;
and the storage module is used for storing the screen closing time of the terminal and the continuous use time of the terminal in the corresponding relation between the screen closing time and the continuous use time.
Optionally, the apparatus further comprises:
the first calculation module is used for calculating the accumulated use duration of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous use duration;
the third obtaining module is used for obtaining third reminding information when the accumulated use duration of the terminal in the specified time period reaches a third specified duration;
and the third display module is used for displaying the third reminding information.
Optionally, the apparatus further comprises:
the fourth obtaining module is used for obtaining a piece of fourth reminding information from a second preset information base when the accumulated time of the terminal in a specified time period increases every fourth specified time after the third reminding information is displayed, wherein the second preset information base comprises a plurality of pieces of fourth reminding information;
and the fourth display module is used for displaying fourth reminding information, and the third reminding information is different from a plurality of pieces of fourth reminding information included in the second preset information base.
Optionally, the apparatus further comprises:
the second calculation module is used for calculating the accumulated use time length and the single longest continuous use time length of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous use time length when a statistical report display instruction is received;
and the fifth display module is used for displaying the accumulated time length of the terminal and the single longest continuous use time length in the specified time period.
In the embodiment of the invention, when the screen of the terminal is monitored to be lightened, the continuous use time of the terminal can be automatically timed, when the continuous use time of the terminal reaches the first designated time, the user can be reminded by displaying the first reminding information, and after the first reminding information is displayed, when the continuous use time of the terminal is increased by the second designated time, the user can also obtain the second reminding information from the first preset information base and display the second reminding information, so that the user is further effectively reminded of using the terminal for health.
It should be noted that: in the reminding device provided in the above embodiment, only the division of the functional modules is exemplified when reminding, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the reminding device and the reminding method provided by the above embodiments belong to the same concept, and the specific implementation process thereof is described in the method embodiments in detail and is not described herein again.
Referring to fig. 6, a block diagram of a configuration of an alerting device according to an embodiment of the present invention is shown, where the alerting device may be a mobile terminal 600, and the mobile terminal 600 may include a communication unit 610, a memory 620 including one or more computer-readable storage media, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a WIFI (Wireless Fidelity) module 670, a processor 680 including one or more processing cores, and a power supply 690. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the communication unit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and the communication unit 610 may be an RF (Radio Frequency) circuit, a router, a modem, or other network communication devices. In particular, when the communication unit 610 is an RF circuit, downlink information of a base station is received and then processed by one or more processors 680; in addition, data relating to uplink is transmitted to the base station. Generally, the RF circuit as a communication unit includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the communication unit 610 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), and the like. The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal 600, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 620 may also include a memory controller to provide the processor 680 and the input unit 630 access to the memory 620.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Preferably, the input unit 630 may include a touch-sensitive surface 631 and other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. Preferably, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in FIG. 6, the touch-sensitive surface 631 and the display panel 641 are implemented as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
The mobile terminal 600 may also include at least one sensor 650, such as a light sensor, a motion sensor, and other sensors. The light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or a backlight when the terminal 600 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 may provide an audio interface between a user and the mobile terminal 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electric signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and transmitted to, for example, another terminal via the communication unit 610, or the audio data is output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 600.
In order to realize wireless communication, a wireless communication unit 670 may be configured on the terminal, and the wireless communication unit 670 may be a WIFI module. WIFI belongs to a short-distance wireless transmission technology, and the mobile terminal 600 may help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the wireless communication unit 670, and provides a wireless broadband internet access for the user. Although the wireless communication unit 670 is shown in the drawing, it is understood that it does not belong to the essential constitution of the mobile terminal 600 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 680 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the mobile phone. Optionally, processor 680 may include one or more processing cores; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The mobile terminal 600 also includes a power supply 690 (e.g., a battery) for supplying power to the various components, which may be preferably logically coupled to the processor 680 via a power management system that may enable management of charging, discharging, and power consumption via the power management system. The power supply 660 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 600 may further include a camera, a bluetooth module, and the like, which will not be described herein.
In this embodiment, the terminal further includes one or more programs, the one or more programs are stored in the memory and configured to be executed by one or more processors, and the one or more programs include instructions for performing the reminding method provided by the embodiment of the present invention, including:
when the screen of the terminal is monitored to be lightened, starting timing the continuous use time of the terminal;
when the continuous use time of the terminal reaches a first designated time, acquiring first reminding information;
displaying the first reminding information;
after the first reminding information is displayed, when the continuous use time of the terminal increases every second designated time, acquiring a piece of second reminding information from a first preset information base, wherein the first preset information base comprises a plurality of pieces of second reminding information;
and displaying second reminding information, wherein the first reminding information is different from a plurality of pieces of second reminding information included in the first preset information base.
Optionally, when it is monitored that the screen of the terminal is lighted, after the continuous use time of the terminal is timed, the method further includes:
when the screen of the terminal is monitored to be closed, ending timing on the continuous use time of the terminal;
recording the screen closing time of the terminal;
and storing the screen closing time of the terminal and the continuous use time of the terminal in the corresponding relation between the screen closing time and the continuous use time.
Optionally, the method further comprises:
calculating the accumulated use duration of the terminal in a specified time period based on the corresponding relation between the stored screen closing time and the continuous use duration;
when the accumulated use time of the terminal reaches a third designated time, acquiring third reminding information;
and displaying the third reminding information.
Optionally, the method further comprises:
after the third reminding information is displayed, when the accumulated time of the terminal increases every fourth designated time, acquiring a piece of fourth reminding information from a second preset information base, wherein the second preset information base comprises a plurality of pieces of fourth reminding information;
and displaying fourth reminding information, wherein the third reminding information is different from a plurality of pieces of fourth reminding information included in the second preset information base.
Optionally, the method further comprises:
when a statistical report display instruction is received, calculating the accumulated use time length and the single longest continuous use time length of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous use time length;
and displaying the accumulated time length and the single longest continuous use time length of the terminal in a specified time period.
In the embodiment of the invention, when the screen of the terminal is monitored to be lightened, the continuous use time of the terminal can be automatically timed, when the continuous use time of the terminal reaches the first designated time, the user can be reminded by displaying the first reminding information, and after the first reminding information is displayed, when the continuous use time of the terminal is increased by the second designated time, the user can also obtain the second reminding information from the first preset information base and display the second reminding information, so that the user is further effectively reminded of using the terminal for health.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A method of alerting, the method comprising:
when the screen of the terminal is monitored to be lightened, starting timing on the continuous use time of the terminal;
when the continuous use time reaches a first designated time, acquiring first reminding information;
displaying the first reminding information;
after the first reminding information is displayed, when the continuous use time length is increased by a second designated time length, acquiring a piece of second reminding information from a first preset information base, wherein the first preset information base comprises a plurality of pieces of second reminding information;
displaying the second reminding information, wherein the first reminding information is different from the plurality of pieces of second reminding information;
when the screen of the terminal is monitored to be closed, ending timing on the continuous use time of the terminal;
recording the screen closing time of the terminal;
storing the screen closing time and the current continuous use time length in a corresponding relation between the screen closing time and the continuous use time length;
calculating the accumulated use duration of the terminal in a specified time period based on the corresponding relation between the stored screen closing time and the stored continuous use duration;
when the accumulated use time reaches a third designated time, acquiring third reminding information;
and displaying the third reminding information.
2. The method of claim 1, wherein the method further comprises:
after the third reminding information is displayed, when the accumulated time length is increased by a fourth designated time length, acquiring a piece of fourth reminding information from a second preset information base, wherein the second preset information base comprises a plurality of pieces of fourth reminding information;
and displaying the fourth reminding information, wherein the third reminding information is different from the plurality of pieces of fourth reminding information.
3. The method of claim 1, wherein the method further comprises:
when a statistical report display instruction is received, calculating the accumulated use time length and the single longest continuous use time length of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous use time length;
displaying the accumulated usage time and the single longest continuous usage time.
4. A reminder device, the device comprising:
the starting timing module is used for starting timing the continuous use time of the terminal when the screen of the terminal is monitored to be lightened;
the first obtaining module is used for obtaining first reminding information when the continuous use time reaches a first specified time;
the first display module is used for displaying the first reminding information;
the second obtaining module is used for obtaining a piece of second reminding information from a first preset information base when the continuous use time length is increased by a second designated time length after the first reminding information is displayed, wherein the first preset information base comprises a plurality of pieces of second reminding information;
the second display module is used for displaying the second reminding information, and the first reminding information is different from the plurality of pieces of second reminding information;
the timing ending module is used for ending timing of the continuous use time of the terminal when the screen of the terminal is monitored to be closed;
the recording module is used for recording the screen closing time of the terminal;
the storage module is used for storing the screen closing time and the continuous use time in the corresponding relation between the screen closing time and the continuous use time;
the first calculation module is used for calculating the accumulated service time of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous service time;
the third obtaining module is used for obtaining third reminding information when the accumulated using time reaches a third specified time;
and the third display module is used for displaying the third reminding information.
5. The apparatus of claim 4, wherein the apparatus further comprises:
a fourth obtaining module, configured to, after the third reminding information is displayed, obtain a piece of fourth reminding information from a second preset information base when the accumulated time length increases by a fourth specified time length, where the second preset information base includes a plurality of pieces of fourth reminding information;
and the fourth display module is used for displaying the fourth reminding information, and the third reminding information is different from the plurality of fourth reminding information.
6. The apparatus of claim 4, wherein the apparatus further comprises:
the second calculation module is used for calculating the accumulated use time length and the single longest continuous use time length of the terminal in a specified time period based on the stored corresponding relation between the screen closing time and the continuous use time length when a statistical report display instruction is received;
and the fifth display module is used for displaying the accumulated use time and the single longest continuous use time.
7. A terminal, characterized in that it comprises a memory and a processor, the memory storing an application program, the program being executed by the processor to implement the reminder method according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program, which is executed by a processor to implement the reminding method according to any one of claims 1 to 3.
CN201510226583.4A 2015-05-06 2015-05-06 Reminding method and device Active CN106201816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510226583.4A CN106201816B (en) 2015-05-06 2015-05-06 Reminding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510226583.4A CN106201816B (en) 2015-05-06 2015-05-06 Reminding method and device

Publications (2)

Publication Number Publication Date
CN106201816A CN106201816A (en) 2016-12-07
CN106201816B true CN106201816B (en) 2020-12-25

Family

ID=57459542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510226583.4A Active CN106201816B (en) 2015-05-06 2015-05-06 Reminding method and device

Country Status (1)

Country Link
CN (1) CN106201816B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172089A (en) * 2017-06-30 2017-09-15 江西博瑞彤芸科技有限公司 A kind of display methods of prompt message
CN109085884A (en) * 2018-06-29 2018-12-25 努比亚技术有限公司 A kind of based reminding method, intelligent wearable device and computer readable storage medium
CN112333324A (en) * 2019-07-17 2021-02-05 北京爱诺斯科技有限公司 Mobile phone use behavior statistical method
CN112243062A (en) * 2019-07-17 2021-01-19 北京爱诺斯科技有限公司 Eye health reminding method and system for mobile phone user
CN111263000B (en) * 2020-01-16 2022-01-04 惠州Tcl移动通信有限公司 Intelligent reminding method and device, storage medium and terminal
CN113176073B (en) * 2021-04-10 2024-06-25 莱茵技术监护(深圳)有限公司 Display system test evaluation test method and standard
CN113009963B (en) * 2021-04-13 2024-06-21 Vidaa(荷兰)国际控股有限公司 Voice reminding method for browser and display device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103413407A (en) * 2013-08-01 2013-11-27 上海摩普网络技术有限公司 Eyesight protection method and system based on time
CN103760971A (en) * 2013-12-31 2014-04-30 上海闻泰电子科技有限公司 Eye protection method and system when using electronic device
CN103929546A (en) * 2014-05-12 2014-07-16 上海卓悠网络科技有限公司 Method and device for protecting eyes of user based on intelligent terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103413407A (en) * 2013-08-01 2013-11-27 上海摩普网络技术有限公司 Eyesight protection method and system based on time
CN103760971A (en) * 2013-12-31 2014-04-30 上海闻泰电子科技有限公司 Eye protection method and system when using electronic device
CN103929546A (en) * 2014-05-12 2014-07-16 上海卓悠网络科技有限公司 Method and device for protecting eyes of user based on intelligent terminal

Also Published As

Publication number Publication date
CN106201816A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201816B (en) Reminding method and device
CN107767839B (en) Brightness adjustment method and related products
JP6487044B2 (en) Power management method and power management apparatus for user equipment
JP2018533036A (en) COMMUNICATION METHOD, SERVER, AND DEVICE
CN106303733B (en) Method and device for playing live special effect information
KR20170129197A (en) Message updating method, device and terminal
CN107731146A (en) Brightness adjusting method and related product
US20140378176A1 (en) Method, apparatus and system for short message-based information push and mobile client supporting the same
CN106068020A (en) Hinting abnormal states method and device
CN106294079B (en) A kind of information prompting method and device
CN107786424B (en) Audio and video communication method, terminal and server
CN106254910B (en) Method and device for recording image
CN104383681A (en) Game process control method and device as well as mobile terminal
CN103313139A (en) History display method and device and electronic device
CN105898606B (en) A kind of method, apparatus and system voted
US20150229708A1 (en) Method, apparatus, and system for controlling voice data transmission
CN105094501B (en) Method, device and system for displaying messages in mobile terminal
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
WO2017206918A1 (en) Terminal awakening accelerating method and related product
CN103886198A (en) Data processing method, terminal, server and system
CN103491240B (en) A kind of alarm clock ringing method, device and mobile terminal
CN103458277A (en) Method and device for operating live channel programs
CN105185401B (en) The method and device of synchronized multimedia listed files
CN108540649B (en) Content display method and mobile terminal
CN106302101B (en) Message reminding method, terminal and server

Legal Events

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