CN111479016A - Terminal use duration reminding method and device, terminal and storage medium - Google Patents

Terminal use duration reminding method and device, terminal and storage medium Download PDF

Info

Publication number
CN111479016A
CN111479016A CN202010265255.6A CN202010265255A CN111479016A CN 111479016 A CN111479016 A CN 111479016A CN 202010265255 A CN202010265255 A CN 202010265255A CN 111479016 A CN111479016 A CN 111479016A
Authority
CN
China
Prior art keywords
user
reminding
time
terminal
duration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010265255.6A
Other languages
Chinese (zh)
Other versions
CN111479016B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010265255.6A priority Critical patent/CN111479016B/en
Publication of CN111479016A publication Critical patent/CN111479016A/en
Application granted granted Critical
Publication of CN111479016B publication Critical patent/CN111479016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a method and a device for reminding use duration of a terminal, the terminal and a storage medium. The method for reminding the service life of the terminal comprises the following steps: acquiring and accumulating the use duration of an application program running in a foreground in a preset time period; determining whether the use time reaches a preset time threshold; and when the use time length is determined to reach the time length threshold value, reminding the user that the use time is overtime.

Description

Terminal use duration reminding method and device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of intelligent terminals, in particular to a method and a device for reminding use duration of a terminal, the terminal and a storage medium.
Background
With the development of mobile internet technology, intelligent terminals (such as smart phones, tablet computers, and the like) can provide more and more kinds of application programs (APP) for people to use. People rely on the intelligent terminal more and more, and the service time is more and more.
For example, many people are accustomed to using an application on an intelligent terminal for a while before going to sleep. Unconsciously, the use time is too long, thereby occupying the sleeping time of the user and causing the health of the user to be affected.
In addition, teenagers use the terminal for too long time, which may damage their glasses, resulting in problems such as myopia.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The purpose of the present disclosure is to provide a method and an apparatus for reminding a user of a use duration of a terminal, and a storage medium, which solve, at least to a certain extent, a problem that a user cannot be reminded of an excessively long use duration of an intelligent terminal in time.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to one aspect of the disclosure, a method for reminding a use duration of a terminal is provided, which includes: acquiring and accumulating the use duration of an application program running in a foreground in a preset time period; determining whether the use time reaches a preset time threshold; and when the use time length is determined to reach the time length threshold value, reminding the user that the use time is overtime.
According to an embodiment of the invention, the method further comprises: after reminding the user that the use time is overtime, periodically executing the following operations until detecting that the display screen is blocked: detecting whether the display screen is turned off or not; and when the display screen is detected not to be turned off, reminding the user that the use time is overtime.
According to an embodiment of the present invention, acquiring and accumulating the usage duration of the application running in the foreground includes: in the preset time period, when an application program which needs to run in a foreground is started, timing the application program, and when the application program exits, timing the application program is suspended; and acquiring and accumulating the use time of all application programs needing to be operated in the foreground.
According to an embodiment of the present invention, the application program to be run in the foreground does not include a functional platform application program.
According to an embodiment of the present invention, acquiring and accumulating the usage duration of the application running in the foreground includes: respectively acquiring and accumulating the use durations of different types of application programs operated by a foreground; determining whether the usage duration is greater than or equal to a preset duration threshold, including: respectively determining whether the use time lengths of the different types of application programs reach preset time length thresholds corresponding to the types; when the use time length is determined to reach the time length threshold value, reminding the user that the use time is overtime, and the method comprises the following steps: and when the use time of one or more types of application programs reaches the time threshold corresponding to the type, reminding the user of overtime use time.
According to an embodiment of the present invention, the different types of applications and the durations corresponding to the different types are determined according to the acquired configuration information of the user.
According to one embodiment of the present invention, reminding a user of going to bed includes: and displaying information for reminding the user of going to bed on a status bar at the top of the display screen.
According to one embodiment of the present invention, displaying information for reminding a user of going to bed on a status bar at the top of the display screen includes: and alternately displaying the information for reminding the user of going to bed and the equipment state information in the state bar.
According to an embodiment of the present invention, the information for reminding the user that the usage time is over includes the usage duration.
According to an embodiment of the invention, the method further comprises: acquiring configuration information of a user; and setting the preset time period and the time threshold according to the configuration information of the user.
According to an embodiment of the present invention, the preset time period includes a plurality of preset time periods.
According to an embodiment of the present invention, the preset time period includes: a preset bedtime period; the reminding the user of the timeout of the usage time comprises the following steps: reminding the user to go to bed.
According to another aspect of the present invention, there is provided a terminal use duration reminding device, including: the time length accumulation module is used for acquiring and accumulating the use time length of the application program operated by the foreground in a preset time period; the time length determining module is used for determining whether the use time length reaches a preset time length threshold value; and the overtime reminding module is used for reminding the user that the use time is overtime when the time length determining module determines that the use time length reaches the time length threshold value.
According to still another aspect of the present invention, there is provided a terminal including: a processor and a memory; wherein the processor is configured to execute the computer program stored in the memory to perform any of the methods described above.
According to a further aspect of the invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs any of the methods described above.
According to the method for reminding the use time of the terminal, the use time of the application program by the user is continuously obtained and accumulated in the preset time period, the use time and the preset time threshold value are judged, and when the use time reaches the time threshold value, the user is reminded that the use time is overtime. By the method, whether the user needs to be reminded of the overtime use time can be determined according to the use time of the user for the application program in the specified time period, so that the user can be reminded in time when the user uses the terminal for too long in the specified time period, and the condition that the health of the user is influenced due to the too long use time of the terminal is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 shows a flowchart of a method for reminding a terminal of a usage duration in an embodiment of the present disclosure.
Fig. 2 shows a flowchart of another method for reminding a terminal of a usage duration in an embodiment of the present disclosure.
Fig. 3 shows a flowchart of a method for reminding a use duration of a terminal in another embodiment of the present disclosure.
Fig. 4 is a method for implementing the terminal usage duration reminding method in the terminal device according to an example.
Fig. 5 shows a flowchart of a method for reminding a use duration of a terminal in another embodiment of the present disclosure.
Fig. 6A-6D illustrate an implementation of reminding a user of going to bed according to an embodiment of the disclosure.
Fig. 7 shows a flowchart of a method for reminding a use duration of a terminal in another embodiment of the present disclosure.
Fig. 8A-8C are schematic diagrams of a user interface for user configuration, respectively, shown according to an example.
Fig. 9 shows a schematic diagram of a terminal use duration reminding device in an embodiment of the present disclosure.
Fig. 10 shows a schematic diagram of a terminal device in an embodiment of the present disclosure.
FIG. 11 shows a schematic diagram of a readable storage medium in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Further, in the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and that there may be three cases of a alone, B alone, and a and B simultaneously. The symbol "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Taking the bedtime reminder as an example, in the related art, although some terminal devices provide a bedtime mode or other modes for the user to select, the user needs to set the bedtime and the wake-up time in advance, and set the specified time before the specified time arrives to remind the user of preparing for bedtime. However, the reminding time in this mode is very fixed, and the user can remind the user according to the setting of the user regardless of whether the user uses the terminal currently. Therefore, it may not be able to prompt in some situations, for example, the user goes to bed before the reminding time, or starts to use the terminal device after the reminding time.
The embodiment of the disclosure provides a method and a device for reminding the use time of a terminal, the terminal and a storage medium, which can determine whether to remind a user of overtime use time according to the use time of an application program in terminal equipment by the user in a time period set by the user.
Hereinafter, each step of the terminal use duration reminding method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the drawings and the exemplary embodiment.
The terminal device can comprise a smart phone, a game host, a tablet Computer, an e-book reader, smart glasses, an MP4(moving Picture Experts group Audio L layer IV) player, a smart home device, an AR (augmented Reality) device, a VR (Virtual Reality) device and other mobile terminals, and a Personal Computer (PC), such as a laptop Computer, a desktop Computer and the like.
Referring to fig. 1, a terminal use duration reminding method 10 includes:
in step S102, the usage duration of the application running in the foreground is obtained and accumulated within a preset time period.
And the terminal equipment carries out accumulation operation on the use duration of the application program operated in the foreground in the preset time period.
The preset time period may be set, for example, by a user through a corresponding user interface provided by the terminal device.
The preset time period may be, for example, a time period before sleep set by a user. Or, the terminal may also be a preset time period set by the parents when the teenagers use the terminal.
In step S104, it is determined whether the usage time period reaches a preset time period threshold.
And comparing the service time obtained by accumulation in the step with a preset time threshold value, and judging whether the service time reaches the preset time threshold value.
Likewise, the preset duration threshold may also be set by the user through a user interface provided by the terminal device.
In step S106, when it is determined that the usage time length reaches the time length threshold, the user is reminded that the usage time is over.
It should be noted that, the reminding user of the use time is overtime, and different prompting purposes can be set according to different application scenarios. For example, when it is desired to remind the user to go to bed, reminding the user that the usage time has expired may include: reminding the user of sleeping, etc.
According to the method for reminding the use time of the terminal, the use time of the application program by the user is continuously obtained and accumulated in the preset time period, the use time and the preset time threshold value are judged, and when the use time reaches the time threshold value, the user is reminded that the use time is overtime. By the method, whether the user needs to be reminded of the overtime use time can be determined according to the use time of the user for the application program in the specified time period, so that the user can be reminded in time when the user uses the terminal for too long in the specified time period, and the condition that the health of the user is influenced due to the too long use time of the terminal is avoided.
Fig. 2 shows a flowchart of another method for reminding a terminal of a usage duration in an embodiment of the present disclosure. Unlike the terminal use duration alerting method 10 shown in fig. 1, the terminal use duration alerting method 20 shown in fig. 2 can further provide a repeated alerting function to continually alert the user that the use duration is over. Similarly, the terminal usage duration alerting method 20 shown in fig. 2 can also be executed by the terminal device described above.
Referring to fig. 2, the terminal use duration reminding method 20 includes:
in step S202, it is determined whether the current time is within a preset time period. If yes, go to step S204; otherwise, returning to step S202, waiting to re-determine whether the current time is within the preset time period.
During the use of the terminal, the judgment of the current time can be performed periodically. That is, when the current time is determined not to be within the preset time period and the step S202 is returned again for determination, the determination may be performed again after waiting the preset period.
The period may be a fixed period or may be a variable period. For example, if the current time is longer than the start time, the period may be a longer period; and if the current time is shorter from the start time, the period may be a shorter period. Therefore, the situation that when a fixed period is used, if the period is set to be too short, frequent judgment is needed is avoided; and if the period is set too long, the problem of missing the time period is caused.
In addition, the terminal can also judge whether the current time is in a preset time period or not when a foreground application is started. And periodically judging in the use process of the subsequent terminal.
The preset time period may be set, for example, by a user through a corresponding user interface provided by the terminal device.
In step S204, the usage duration of the foreground-running application is acquired and accumulated.
In step S206, it is determined whether the usage duration reaches a preset duration threshold. If the usage time length is determined to reach the time length threshold value, the step S208 is entered; otherwise, returning to step S204, and continuing to count the duration of the application running in the foreground.
And comparing the service time obtained by accumulation in the step with a preset time threshold value, and judging whether the service time reaches the preset time threshold value.
Likewise, the preset duration threshold may also be set by the user through a user interface provided by the terminal device.
In step S208, the user is reminded that the usage time has expired.
In step S210, it is detected whether the display screen of the terminal is turned off. If the display screen is detected to be turned off, ending the method; otherwise, returning to step S208, continuing to remind the user that the usage time is over.
The detection may be performed periodically, for example, whether the user is going to sleep is detected within a preset period after the user is reminded to sleep, and if the user does not go to sleep, the user is continuously reminded that the usage time is over. And after the reminding is continued, detecting the display screen at preset intervals again until the display screen is detected to be stopped.
According to the method for reminding the use duration of the terminal, after reminding the user that the use duration is overtime, whether the display screen of the terminal device is turned off or not is further detected, if the display screen is not turned off, the user is indicated to possibly use the terminal device, and the user is continuously reminded until the display screen is turned off. The method can continuously remind the user of overtime use time, and avoids the situation that the user forgets to continue using the terminal equipment after reminding the user once.
Fig. 3 shows a flowchart of a method for reminding a use duration of a terminal in another embodiment of the present disclosure. The terminal usage duration reminding method shown in fig. 3 further provides a specific implementation manner of step S102 or step S204. Referring to fig. 3, step S102 or step S204 may further include:
in step S11, when an application that needs to be run in the foreground is started within a preset time period, the application is started to be clocked, and when the application exits, the clocking of the application is suspended.
Taking an Android operating system as an example, this step can be implemented by, for example, a usagetstatsmanager (usm) function provided by the Android operating system.
For example, within a preset time period, the user starts to time the application a using the application a to be run in the foreground. And when the user exits the application program A, temporarily timing the application program A. And the user continues to use the application program B, starts timing the application program B, and suspends the timing of the application program B when the user exits the application program B.
In step S12, the usage time periods of all the applications to be run in the foreground are acquired and accumulated.
In addition, the USM provides access to usage history and statistics of the terminal device. The usage of applications installed in the terminal device will be aggregated at time intervals such as day, week, month and year. The USM provides a convenient query method, queryAndriggreggateUsagStats, for querying the use time statistical information of the application program in a given time range.
Continuing to take the application programs a and B as an example, through an interface provided by the USM, the use durations of the application programs a and B can be queried, the use durations of the application programs a and B are accumulated, and the accumulated use duration is obtained.
Taking the terminal usage duration reminding method 20 shown in fig. 2 as an example, fig. 4 is a method for implementing the terminal usage duration reminding method in a terminal device according to an example.
As shown in fig. 4, the control end of the terminal device provides the preset time period set by the setting end to queryandaggregateusastass to query the use duration of the application program. And the use duration is obtained through the gettotaltitimeinfoforegound function. After the use time length is obtained, whether the use time length reaches a preset time length threshold value is judged by comparing the use time length with the preset time length threshold value. And if the use time length is reached, reminding the user that the use time is overtime. And detecting the screen state to detect whether the display screen is turned off. If the screen is turned off, the method is ended.
In some embodiments, the usage time of an application program to be run in the foreground is obtained, and a part of the application program may be included in a functional platform application program such as a system desktop. The application programs are mainly used for providing basic operation type, tool type and framework type functions, and do not belong to the use of the terminal equipment by a user.
Fig. 5 shows a flowchart of a method for reminding a use duration of a terminal in another embodiment of the present disclosure. Different from the terminal usage duration reminding method 10 shown in fig. 1 or the terminal usage duration reminding method 20 shown in fig. 2, the terminal usage duration reminding method 30 shown in fig. 5 can further classify the applications to be counted, count the applications of different types, and set different duration thresholds respectively.
Referring to fig. 5, the terminal use duration reminding method 30 includes:
in step S302, the usage durations of the different types of application programs running in the foreground are respectively obtained and accumulated within a preset time period.
For example, applications running in the foreground may be classified as instant messaging-type applications, video-type applications, game-type applications, shopping-type applications. When the time duration of use is counted, the statistics can be performed respectively for various applications. For example: WeChat and QQ belong to instant messaging application, and Youkou video, Tengxin video, Aiqiyi art and the like belong to video application. And accumulating and counting the service durations of the WeChat and the QQ and accumulating and counting the service durations of the video application programs when the service durations are counted.
In step S304, it is determined whether the usage time lengths of the different types of applications reach preset time length thresholds corresponding to the types, respectively.
For each application type, a corresponding duration threshold may be set accordingly. These time duration thresholds may be the same or different.
In step S306, when it is determined that the usage time of one or more types of applications reaches the time threshold of the corresponding type, the user is reminded that the usage time is over.
For example, when the accumulated usage time of each application program type reaches the corresponding time threshold, the user is reminded that the usage time is over.
Or, when the use time lengths of the multiple types of application programs reach the corresponding time length threshold values, the user can be reminded that the use time is overtime.
The application type, the corresponding duration threshold value and the like can be correspondingly set by a user through a user interface, so that more configuration flexibility is provided for the user.
In the following, taking an example that the user needs to be reminded of going to bed in the sleeping time period, how to remind the user of going to bed through the terminal use duration reminding method provided by the embodiment of the disclosure is described.
Fig. 6A-6D illustrate an implementation of reminding a user of going to bed according to an embodiment of the disclosure.
Referring to fig. 6A or 6B, information reminding the user of going to bed may be displayed, for example, in a status bar (statubar) at the top of the display screen of the terminal device. Fig. 6A shows a schematic view of a status bar when the device is displayed in a vertical screen. FIG. 6B shows a status bar diagram for a device landscape display.
Referring to fig. 6C, a status bar at the top of the display screen is typically used to display status information of the device, such as display signals, clocks, battery information, etc. In the embodiment of the present disclosure, information reminding the user of going to bed may be displayed through the status bar. Therefore, the user can be reminded of sleeping on the premise of not adding an additional window or a display control to the user interface.
In some embodiments, information reminding the user of bedtime and status information of the device may be alternately displayed, such as in a status bar. If the equipment state information can be displayed, the complete display is carried out in 3 seconds; when displaying the information for reminding the user of going to bed, the 3-second fade-in and fade-out animation effect is adopted for displaying.
And as mentioned above, after reminding the user to go to bed, still can detect whether to rest the screen, if not still can continue alternate display remind the information that the user went to bed and the status information of equipment, know that the display screen is stopped the screen.
It should be noted that some applications (e.g., video-type applications, game-type applications) typically use a system interface to request that the status bar be hidden. When these applications are run, in order to display information reminding the user of going to bed in the status bar, it is necessary to ignore the status bar ignore request and continue to display information reminding the user of going to bed in the status bar periodically.
In addition, as shown in fig. 6D, the information for reminding the user of going to bed may include the counted usage duration of the application program, so that the user may actively know the usage duration of the terminal device within the preset time period, and does not need to query the usage duration through the corresponding application program.
It should be noted that, taking the terminal usage duration reminding method 20 shown in fig. 2 as an example, if the user still continues to use the terminal device after the usage duration of the user is reminded to be overtime, the user will be reminded periodically. At this time, the use duration is also increased continuously, so that the displayed use duration is increased when the reminding is given in sequence. Taking fig. 6D as an example, assuming that the time duration threshold is set to 30 minutes, after the usage time duration reaches 30 minutes, the user is reminded to go to bed. However, after the user is reminded, the user still uses the terminal device, and in the subsequent reminding, the displayed use duration is the total use duration, such as 32 minutes.
In addition to reminding the user of the usage time timeout by displaying the usage duration through the status bar, the user may be reminded of the usage time timeout by, for example, playing a ring tone and/or vibrating.
Fig. 7 shows a flowchart of a method for reminding a use duration of a terminal in another embodiment of the present disclosure. Different from the above-mentioned method for reminding the use duration of each terminal, before counting the use duration of the application program, the method for reminding the use duration of each terminal 40 may further include:
in step S402, configuration information of the user is acquired.
Still taking a bedtime reminder as an example, fig. 8A-8C are schematic user interfaces for user configuration, respectively, shown according to an example.
As shown in fig. 8A, it may be set whether or not the "reminder before sleep" function is turned on by the user. When the function is turned on, as shown in fig. 8B, the above-mentioned preset time period may be set, for example, as shown in the drawing, the preset time period is set to 22:00 to 23: 20. As shown in fig. 8C, the above-described time period threshold may be further set, for example, as shown in the drawing, the time period threshold is set to 30 minutes.
After the user setting is completed, the configuration information of the user can be acquired.
In step S404, the preset time period and the duration threshold are set according to the configuration information of the user.
In some embodiments, a configuration interface with a plurality of preset time periods can be provided for the user, for example, a reminder before going to bed, for example, in addition to setting a bedtime period at night, a time period for a reminder for afternoon nap can be set, so as to provide a more flexible configuration scheme for the user.
It is noted that the above-mentioned figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 9 shows a schematic diagram of a terminal use duration reminding device in an embodiment of the present disclosure.
Referring to fig. 9, the terminal use duration alerting device 50 includes: a duration accumulation module 502, a duration determination module 504 and an overtime reminding module 506.
The duration accumulating module 502 is configured to obtain and accumulate the usage duration of the application running in the foreground in a preset time period.
The duration determination module 504 is configured to determine whether the usage duration reaches a preset duration threshold.
The timeout reminding module 506 is configured to remind the user that the usage time is timeout when the duration determination module determines that the usage duration reaches the duration threshold.
According to the terminal use duration reminding device provided by the embodiment of the disclosure, the use duration of the application program by the user is continuously acquired and accumulated in the preset time period, the use duration is judged according to the preset duration threshold, and when the use duration reaches the duration threshold, the user is reminded that the use duration is overtime. By the method, whether the user needs to be reminded of the overtime use time can be determined according to the use time of the user for the application program in the specified time period, so that the user can be reminded in time when the user uses the terminal for too long in the specified time period, and the condition that the health of the user is influenced due to the too long use time of the terminal is avoided.
In some embodiments, the terminal usage duration reminding device 50 may further include: and the screen detection module is used for detecting whether the display screen is turned off or not. The timeout reminding module 506 may be further configured to remind the user that the usage time is over when the screen detection module detects that the display screen is not turned off.
In some embodiments, the duration accumulation module 502 may be configured to start timing the application program when the application program that needs to be run in the foreground is started within a preset time period, and pause timing the application program when the application program exits; and acquiring and accumulating the use time of all application programs needing to be operated in the foreground.
In some embodiments, the application to be run in the foreground does not include a functional platform application.
In some embodiments, the duration accumulating module 502 may be configured to respectively obtain and accumulate the use durations of different types of applications running in the foreground; the duration determining module 504 may be configured to respectively determine whether the usage durations of the different types of application programs reach preset duration thresholds corresponding to the types; the timeout alerting module 506 may be configured to alert the user that the usage time is over when the determining module 504 determines that there is a usage time of one or more types of applications reaching a corresponding type of time threshold.
In some embodiments, the different types of applications and the durations corresponding to the different types are determined according to the acquired configuration information of the user.
In some embodiments, the timeout alert module 506 may be used to display information that alerts the user to bedtime in a status bar at the top of the display screen.
In some embodiments, the timeout alert module 506 may be configured to display information that alerts the user that the usage time is over and device status information in the status bar alternately.
In some embodiments, the information reminding the user that the usage time has expired comprises a usage duration.
In some embodiments, the terminal usage duration reminding device 50 may further include: the device comprises a configuration acquisition module and a parameter setting module. The configuration acquisition module is used for acquiring configuration information of a user. The parameter setting module is used for setting a preset time period and a long threshold according to the configuration information of the user.
In some embodiments, the preset time period comprises a plurality of preset time periods.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to this embodiment of the disclosure is described below with reference to fig. 10. The electronic device 800 shown in fig. 10 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 10, the electronic device 800 is embodied in the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 that couples the various system components including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that is executable by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present disclosure as described in the "exemplary methods" section above in this specification. For example, the processing unit 810 may execute S102 shown in fig. 1, and acquire and accumulate the usage time of the application running in the foreground within a preset time period. (ii) a S104, determining whether the use duration reaches a preset duration threshold; and S106, when the use time reaches the time threshold, reminding the user that the use time is overtime.
The storage unit 820 may include readable media in the form of volatile memory units such as a random access memory unit (RAM)8201 and/or a cache memory unit 8202, and may further include a read only memory unit (ROM) 8203.
The storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
Electronic device 800 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, Bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with electronic device 800, and/or with any device (e.g., router, modem, etc.) that enables electronic device 800 to communicate with one or more other computing devices.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
Referring to fig. 11, a program product 900 for implementing the above method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (15)

1. A method for reminding the use duration of a terminal is characterized by comprising the following steps:
acquiring and accumulating the use duration of an application program running in a foreground in a preset time period;
determining whether the use time reaches a preset time threshold; and
and when the use time reaches the time threshold, reminding the user that the use time is overtime.
2. The method of claim 1, further comprising: after reminding the user that the use time is overtime, periodically executing the following operations until detecting that the display screen is blocked:
detecting whether the display screen is turned off or not; and
and when the display screen is not turned off, reminding the user that the use time is overtime.
3. The method of claim 1 or 2, wherein obtaining and accumulating usage time of foreground-running applications comprises:
in the preset time period, when an application program which needs to run in a foreground is started, timing the application program, and when the application program exits, timing the application program is suspended; and acquiring and accumulating the use time of all application programs needing to be operated in the foreground.
4. The method of claim 3, wherein the application to be run in the foreground does not include a functional platform application.
5. The method of claim 1 or 2, wherein obtaining and accumulating usage time of foreground-running applications comprises: respectively acquiring and accumulating the use durations of different types of application programs operated by a foreground;
determining whether the usage duration is greater than or equal to a preset duration threshold, including: respectively determining whether the use time lengths of the different types of application programs reach preset time length thresholds corresponding to the types;
when the use time length is determined to reach the time length threshold value, reminding the user that the use time is overtime, and the method comprises the following steps: and when the use time of one or more types of application programs reaches the time threshold corresponding to the type, reminding the user of overtime use time.
6. The method of claim 5, wherein the different types of applications and the durations corresponding to the types are determined according to the obtained configuration information of the user.
7. The method of claim 1 or 2, wherein alerting the user to go to bed comprises: and displaying information for reminding the user of going to bed on a status bar at the top of the display screen.
8. The method of claim 7, wherein displaying information on a status bar at the top of the display screen that alerts the user to go to bed comprises: and alternately displaying the information for reminding the user of going to bed and the equipment state information in the state bar.
9. The method according to claim 1 or 2, wherein the information for reminding the user that the usage time is over comprises the usage duration.
10. The method of claim 1 or 2, further comprising:
acquiring configuration information of a user; and
and setting the preset time period and the time threshold according to the configuration information of the user.
11. The method of claim 10, wherein the preset time period comprises a plurality of preset time periods.
12. The method of claim 10, wherein the preset time period comprises: a preset bedtime period; the reminding the user of the timeout of the usage time comprises the following steps: reminding the user to go to bed.
13. The utility model provides a long reminding device of terminal use which characterized in that includes:
the time length accumulation module is used for acquiring and accumulating the use time length of the application program operated by the foreground in a preset time period;
the time length determining module is used for determining whether the use time length reaches a preset time length threshold value; and
and the overtime reminding module is used for reminding the user that the use time is overtime when the time length determining module determines that the use time length reaches the time length threshold value.
14. A terminal, comprising: a processor and a memory; wherein the processor is configured to execute a computer program stored in the memory to perform the method of any of claims 1-12.
15. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-12.
CN202010265255.6A 2020-04-07 2020-04-07 Terminal use duration reminding method and device, terminal and storage medium Active CN111479016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010265255.6A CN111479016B (en) 2020-04-07 2020-04-07 Terminal use duration reminding method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010265255.6A CN111479016B (en) 2020-04-07 2020-04-07 Terminal use duration reminding method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111479016A true CN111479016A (en) 2020-07-31
CN111479016B CN111479016B (en) 2021-08-03

Family

ID=71749966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010265255.6A Active CN111479016B (en) 2020-04-07 2020-04-07 Terminal use duration reminding method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111479016B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672370A (en) * 2021-08-23 2021-11-19 读书郎教育科技有限公司 Method for linked use of watch and flat plate
CN114063778A (en) * 2021-11-17 2022-02-18 北京蜂巢世纪科技有限公司 Method and device for simulating image by utilizing AR glasses, AR glasses and medium
CN114330769A (en) * 2021-12-24 2022-04-12 深圳优地科技有限公司 Robot fault early warning method and device, robot and server

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190832A1 (en) * 2005-02-18 2006-08-24 Compal Electronics, Inc. Method and apparatus for displaying real-time messages by a mouse cursor
CN105243322A (en) * 2015-10-10 2016-01-13 深圳市金立通信设备有限公司 Application program control method and terminal
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106254653A (en) * 2016-08-08 2016-12-21 珠海格力电器股份有限公司 The control method of a kind of mobile phone, device and terminal
CN106610777A (en) * 2015-10-23 2017-05-03 小米科技有限责任公司 Application starting method and device and mobile terminal
CN107203310A (en) * 2017-05-26 2017-09-26 上海展扬通信技术有限公司 Sleep based reminding method, device and terminal
CN107608853A (en) * 2017-09-06 2018-01-19 广东欧珀移动通信有限公司 Control method, device, storage medium and the intelligent terminal of terminal usage time
CN108664376A (en) * 2018-04-03 2018-10-16 广东小天才科技有限公司 A kind of equipment use state monitoring method, device and equipment
CN108984243A (en) * 2018-06-08 2018-12-11 珠海格力电器股份有限公司 A kind of based reminding method, equipment and readable storage medium storing program for executing using time-out
CN109002387A (en) * 2018-07-13 2018-12-14 北京微播视界科技有限公司 User reminding method, apparatus, terminal device and the storage medium of application program
CN109547633A (en) * 2018-11-26 2019-03-29 努比亚技术有限公司 A kind of based reminding method, terminal and computer readable storage medium
CN109639885A (en) * 2018-11-26 2019-04-16 珠海格力电器股份有限公司 Terminal uses based reminding method, device, terminal and storage medium
CN110177172A (en) * 2019-05-24 2019-08-27 西安闻泰电子科技有限公司 Terminal Anti-addiction method, apparatus, terminal and computer readable storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060190832A1 (en) * 2005-02-18 2006-08-24 Compal Electronics, Inc. Method and apparatus for displaying real-time messages by a mouse cursor
CN105243322A (en) * 2015-10-10 2016-01-13 深圳市金立通信设备有限公司 Application program control method and terminal
CN106610777A (en) * 2015-10-23 2017-05-03 小米科技有限责任公司 Application starting method and device and mobile terminal
CN106096352A (en) * 2016-05-26 2016-11-09 广东欧珀移动通信有限公司 The control method for preventing indulging of a kind of mobile terminal, device and mobile terminal
CN106254653A (en) * 2016-08-08 2016-12-21 珠海格力电器股份有限公司 The control method of a kind of mobile phone, device and terminal
CN107203310A (en) * 2017-05-26 2017-09-26 上海展扬通信技术有限公司 Sleep based reminding method, device and terminal
CN107608853A (en) * 2017-09-06 2018-01-19 广东欧珀移动通信有限公司 Control method, device, storage medium and the intelligent terminal of terminal usage time
CN108664376A (en) * 2018-04-03 2018-10-16 广东小天才科技有限公司 A kind of equipment use state monitoring method, device and equipment
CN108984243A (en) * 2018-06-08 2018-12-11 珠海格力电器股份有限公司 A kind of based reminding method, equipment and readable storage medium storing program for executing using time-out
CN109002387A (en) * 2018-07-13 2018-12-14 北京微播视界科技有限公司 User reminding method, apparatus, terminal device and the storage medium of application program
CN109547633A (en) * 2018-11-26 2019-03-29 努比亚技术有限公司 A kind of based reminding method, terminal and computer readable storage medium
CN109639885A (en) * 2018-11-26 2019-04-16 珠海格力电器股份有限公司 Terminal uses based reminding method, device, terminal and storage medium
CN110177172A (en) * 2019-05-24 2019-08-27 西安闻泰电子科技有限公司 Terminal Anti-addiction method, apparatus, terminal and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672370A (en) * 2021-08-23 2021-11-19 读书郎教育科技有限公司 Method for linked use of watch and flat plate
CN114063778A (en) * 2021-11-17 2022-02-18 北京蜂巢世纪科技有限公司 Method and device for simulating image by utilizing AR glasses, AR glasses and medium
CN114330769A (en) * 2021-12-24 2022-04-12 深圳优地科技有限公司 Robot fault early warning method and device, robot and server

Also Published As

Publication number Publication date
CN111479016B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN111479016B (en) Terminal use duration reminding method and device, terminal and storage medium
CN105573465B (en) Electronic device and method of controlling power of electronic device
KR102311817B1 (en) Electronic device and method for managung power in electronic device
CN107528979B (en) Control device and method of mobile equipment
CN107343096B (en) Information reminding method and device, storage medium and electronic equipment
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN107273130B (en) Method, device and terminal for accelerating interface drawing
US11164097B2 (en) Method for preloading application, storage medium, and terminal device
US20120233480A1 (en) Power saving notification system, terminal device, power saving notification method, and power saving notification program
CN105282343A (en) Smart sleep reminding method and smart sleep reminding device
CN109002387B (en) User reminding method and device of application program, terminal equipment and storage medium
CN106055458B (en) A kind of charging reminding method, device and mobile device
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN109656440B (en) Application icon display method, device and medium
CN103390229A (en) Schedule reminding method and device
CN105281965B (en) Traffic acquisition method and device based on IOS (input/output system)
CN108282410A (en) Background traffic control method, device, storage medium and user terminal
CN111050388B (en) Doze mode control method, device, mobile terminal and storage medium
CN108632461B (en) Alarm clock reminding method, device, terminal and computer readable storage medium
CN107343100B (en) Information prompting method and device, storage medium and electronic equipment
CN112181232B (en) Icon processing method and device, electronic equipment and storage medium
CN106648916B (en) Method and device for reporting pedometer message
CN107835312A (en) Indicating mode switching method, device, computer installation and computer-readable recording medium
CN111290565A (en) Doze mode control method, device, terminal and storage medium
CN106843440B (en) A kind of mobile terminal restarts control method, device and mobile terminal

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