CN111158781B - Application control method and electronic equipment - Google Patents

Application control method and electronic equipment Download PDF

Info

Publication number
CN111158781B
CN111158781B CN201911378482.3A CN201911378482A CN111158781B CN 111158781 B CN111158781 B CN 111158781B CN 201911378482 A CN201911378482 A CN 201911378482A CN 111158781 B CN111158781 B CN 111158781B
Authority
CN
China
Prior art keywords
application
duration
time
running
input
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
CN201911378482.3A
Other languages
Chinese (zh)
Other versions
CN111158781A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911378482.3A priority Critical patent/CN111158781B/en
Publication of CN111158781A publication Critical patent/CN111158781A/en
Application granted granted Critical
Publication of CN111158781B publication Critical patent/CN111158781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The embodiment of the invention provides an application control method and electronic equipment, which are applied to the field of communication and are used for solving the problems that the step of limiting the application operation by the electronic equipment is more complicated and the time consumption is longer. The method comprises the following steps: receiving a first input of the N application icons; responding to a first input, judging whether the running time of each application in the N applications reaches a corresponding limit time within a first preset time period, and closing the first application under the condition that the running time of the first application reaches the limit time of the first application; each application has a limited duration; the limiting time length of each application is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the first application is any application of the N applications, and the first preset time period is a preset time period in which the current time is located or a preset time period after the current time. The method is particularly applied to a scene that a user controls the electronic equipment to limit application use.

Description

Application control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an application control method and electronic equipment.
Background
When a user uses an electronic device such as a mobile phone or a tablet computer, for example, in a scenario where the electronic device is used in a child mode, the user may need to set a limited duration of some applications (i.e., application programs) in the electronic device, so that the user can use each application reasonably and avoid overuse of the applications. Wherein the limited duration of an application is used to represent the maximum value of the duration that the application runs during a time period (e.g., a day or a week).
At present, the electronic device may set the limited duration of each application in its own setting application, and enable the limited duration of each application, so as to limit the operation of the applications through each limited duration. Specifically, the user needs to control the electronic device to open a page displaying an identifier (such as an application name or an application thumbnail icon) of each application in the setting application, then input the identifier of a certain application, and trigger the electronic device to display the setting page of the limited duration of the application, so as to manually select or manually input the limited duration of the application in the setting page. At this time, if the user needs to set the time limit for each of the plurality of applications, the electronic device needs to be triggered to sequentially open the setting page of each of the plurality of applications, and the time limit for each of the plurality of applications is set. Further, the user may open a control for enabling the limited duration of the application in the set application to enable the limited duration of the plurality of applications. Therefore, the step of limiting the application operation of the electronic equipment is complicated, and the time consumption is long.
Disclosure of Invention
The embodiment of the invention provides an application control method and electronic equipment, and aims to solve the problems that the step of limiting the application operation by the electronic equipment is complex and the time consumption is long.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an application control method applied to an electronic device, where the method includes: receiving a first input of the N application icons; responding to the first input, and judging whether the running time of each application in the N applications reaches the corresponding limit time within a first preset time period; in a first preset time period, under the condition that the running time of the first application reaches the limit time of the first application, closing the first application; wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a limited duration; the limiting time length of each application in the electronic equipment is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limiting duration of each application in the electronic equipment is preset or is set through the input of a corresponding application icon; n is a positive integer; the first application is any application of the N applications, and the first preset time period is a preset time period in which the current time is located or a preset time period after the current time.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: the device comprises a receiving module, a detection module and a control module; the receiving module is used for receiving first input of the N application icons; the control module is used for responding to the first input received by the receiving module and judging whether the running time of each application in the N applications reaches the corresponding limit time within a first preset time period; in a first preset time period, under the condition that the running time of the first application reaches the limit time of the first application, closing the first application; wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a limited duration; the limiting time length of each application in the electronic equipment is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limiting duration of each application in the electronic equipment is preset or is set through the input of a corresponding application icon; n is a positive integer; the first application is any application of the N applications, and the first preset time period is a preset time period in which the current time is located or a preset time period after the current time.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of the application control method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the application control method according to the first aspect.
In the embodiment of the invention, the preset limiting duration of each application in the electronic device may be supported, or the limiting duration of each application may be set through the input of an application icon by a user, where the limiting duration of each application is used to indicate the maximum value of the duration in which the corresponding application is allowed to run in each preset time period. In this way, through the first input of the N application icons, in a first preset time period, it can be started to judge whether the running time of each application in the N applications reaches the corresponding limit time; furthermore, the first application reaching the limit duration may be closed within a first preset time period to limit overuse of the first application. That is, the user can input one or more application icons on the desktop of the electronic device, trigger the electronic device to set and enable the applications for a limited duration in a fast and batch manner, so as to limit the running of the applications. The user does not need to control the electronic equipment to open the setting application first, then the identification of each application is input in the setting application so as to set the limit duration of each application respectively, and then the electronic equipment is triggered in the setting application to limit the running of each application through each limit duration. In this way, the operation steps of limiting the application by the user for controlling the electronic equipment are simplified, and the time consumption is reduced.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an application control method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another application control method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a possible electronic device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first application and the second application, etc. are used to distinguish different applications, rather than to describe a particular order of applications.
The application control method provided by the embodiment of the invention can support the preset limit duration of each application in the electronic device, or the limit duration of each application is set through the input of the application icon by the user, and the limit duration of each application is used for representing the maximum value of the duration of the corresponding application allowed to run in each preset time period. In this way, through the first input of the N application icons, in a first preset time period, it can be started to judge whether the running time of each application in the N applications reaches the corresponding limit time; furthermore, the first application reaching the limit duration may be closed within a first preset time period to limit overuse of the first application. That is, the user can input one or more application icons on the desktop of the electronic device, trigger the electronic device to set and enable the applications for a limited duration in a fast and batch manner, so as to limit the running of the applications. The user does not need to control the electronic equipment to open the setting application first, then the identification of each application is input in the setting application so as to set the limit duration of each application respectively, and then the electronic equipment is triggered in the setting application to limit the running of each application through each limit duration. In this way, the operation steps of limiting the application by the user for controlling the electronic equipment are simplified, and the time consumption is reduced.
The electronic device in the embodiment of the present invention may be a mobile electronic device, and may also be a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
It should be noted that, in the application control method provided in the embodiment of the present invention, the execution main body may be an electronic device, or a Central Processing Unit (CPU) of the electronic device, or a control module in the electronic device for executing the application control method. In the embodiment of the present invention, an application control method executed by an electronic device is taken as an example to describe the application control method provided in the embodiment of the present invention.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the application control method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of observing the development principle of the framework of the application. For example, applications such as a system setup application, a system chat application, and a system camera application. And the third-party setting application, the third-party camera application, the third-party chatting application and other application programs.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the application control method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the application control method may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the application control method provided by the embodiment of the invention by running the software program in the android operating system.
The following describes in detail an application control method provided in an embodiment of the present invention with reference to a flowchart of the application control method shown in fig. 2. Wherein, although the logical order of the application control methods provided by embodiments of the present invention is shown in method flow diagrams, in some cases, the steps shown or described may be performed in an order different than here. For example, the application control method illustrated in fig. 2 may include S201 to S203:
s201, the electronic equipment receives first input of the N application icons.
Wherein N is a positive integer.
In the embodiment of the invention, the electronic equipment receives first input of N application icons from a user in a scene of displaying a desktop, namely displaying each application icon through the desktop. I.e. N application icons are displayed in the desktop of the electronic device.
Optionally, in the embodiment of the present invention, N application icons are displayed in one or more pages in the desktop.
When the N application icons are displayed in the multiple pages of the desktop, a user can trigger the electronic equipment to turn pages and display the multiple pages, so that the corresponding application icon in each page of the multiple pages is selected, and the N application icons are further selected.
S202, responding to the first input, and judging whether the running time of each application in the N applications reaches the corresponding limit time or not by the electronic equipment in a first preset time period.
Wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a limited duration; the limiting time length of each application is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limit duration of each application is set in advance or by an input to a corresponding application icon. The first preset time period is a preset time period of the current moment or a preset time period after the current moment. For example, the first preset time period is the time of day at the current moment.
In the embodiment of the present invention, a preset time period may be one day or one week, and certainly, other arbitrary time periods may also be provided, for example, a preset time period is two days, which may be determined according to actual requirements of a user, and details are not described here. In the following embodiments, a preset time period is taken as an example for a day.
Optionally, in the embodiment of the present invention, the preset limiting durations of the electronic device for different applications may be the same or different. Illustratively, the preset limiting duration of each of the N applications by the electronic device is 60 minutes.
It is understood that, in a case that a user actually uses an application for a long time within a preset time period (e.g., a first preset time period), the user may overuse the application, for example, the user may overuse a game application or use a chat application. At this time, the user may need to limit the use of the application, i.e., set and enable a limit duration of the application.
Optionally, the electronic device may set the time limit for each application according to the historical operating time of each application in one or more preset time periods (e.g., one or more previous days). For example, in the case where multiple historical operating periods of an application (e.g., a game application or a chat application) are long, the user may trigger the electronic device to set a value less than the historical operating periods as the limit period of the application.
S203, in a first preset time period, under the condition that the running duration of the first application reaches the limit duration of the first application, the electronic equipment closes the first application.
The first application is any application of the N applications.
Optionally, in the embodiment of the present invention, in a first preset time period, if the running duration of the first application reaches the limit duration of the first application, the electronic device may display the first prompt information first, and after the user inputs the first determination button in the first prompt information, the electronic device closes the first application. On the contrary, if the user inputs the second cancel button in the first prompt message, the electronic device will not close the first application. For example, the first prompt message may include the text message "you use the first application for too long today, and whether to restrict the use of the first application", as well as the first ok button and the first cancel button described above.
Optionally, in the embodiment of the present invention, in the first preset time period, if the running duration of the first application reaches the limit duration of the first application, the electronic device may directly close the first application. Subsequently, when the user triggers the electronic device to open the first application, for example, clicks an application icon of the first application, the electronic device may display the second prompt message. Correspondingly, after the user inputs the second determination button in the second prompt message, the electronic device may reopen the first application. For example, the second prompt message may include a text message "the first application has restricted use, whether to reopen the first application", and the second determination button described above.
Optionally, the input of the user to the second determination button may include authentication information of the user, and the electronic device may authenticate the authentication information, that is, authenticate the input. For example, when the user presses the second determination button, the electronic device may acquire fingerprint information of the user and authenticate the fingerprint information; and under the condition that the fingerprint information is successfully authenticated, the electronic equipment can restart the first application. Thus, the reliability of the electronic equipment for limiting the application can be improved.
Optionally, the authentication mode of the electronic device for the input on the second determination button includes, but is not limited to, the above fingerprint information authentication mode, and may also be any other available authentication mode, which is not described herein again.
It can be understood that the authentication information that is successfully authenticated can be set for a user (such as a parent) using the electronic device, and the child cannot input the authentication information, so that the child can be effectively prevented from overusing applications such as a game application or a chat application.
It should be noted that, the application control method provided in the embodiment of the present invention may support presetting of the limited duration of each application in the electronic device, or setting of the limited duration of each application through input of an application icon by a user, where the limited duration of each application is used to indicate a maximum value of a duration that the corresponding application is allowed to run in each preset time period. In this way, through the first input of the N application icons, in a first preset time period, it can be started to judge whether the running time of each application in the N applications reaches the corresponding limit time; furthermore, the first application reaching the limit duration may be closed within a first preset time period to limit overuse of the first application. That is, the user can input one or more application icons on the desktop of the electronic device, and trigger the electronic device to set and enable the applications quickly and in batches for a limited duration so as to limit the running of the applications. The user does not need to control the electronic equipment to open the setting application first, then the identification of each application is input in the setting application respectively so as to set the limit duration of each application respectively, and then the electronic equipment is triggered in the setting application to limit the running of each application through each limit duration. In this way, the operation steps of the user for controlling the electronic equipment to limit the application are simplified, and the time consumption is reduced.
Optionally, in the application control method provided in the embodiment of the present invention, the first input may include a plurality of sub inputs, such as a first sub input, a second sub input, and a third sub input. Illustratively, in conjunction with fig. 3, as shown in fig. 4, the above S202 may be implemented by S202a-S202 c:
s202a, responding to the first sub-input of the N application icons, and selecting the N application icons by the electronic equipment.
Illustratively, the first sub-input may be a user sliding input from left to right for the N application icons. For example, the N application icons are a plurality of application icons arranged adjacent to each other in pairs, and the first sub-input may be a sliding input of the user to the plurality of application icons in succession from left to right.
Specifically, the first sub-input may be used to select an application icon corresponding to an application to be limited by the limited duration.
Optionally, in the embodiment of the present invention, the electronic device may provide an icon selection box and the like for selecting an application icon corresponding to an application to be limited by the limited duration. In particular, the icon selection box may be a control that is displayed on the desktop of the electronic device prior to the user selecting the N application icons.
Optionally, the user may first trigger the application icon in the desktop of the electronic device to be in the state of setting the limited duration, then select the N application icons and trigger to start to limit the running of the corresponding application in the N applications through each limited duration. For example, the first input further includes a fourth sub-input for triggering an application icon in a desktop of the electronic device to be in a state of setting a limited duration. At this time, before S202a in S202 described above, the electronic device may control the application icon in the electronic device to be in a state in which the restriction time period is set in response to the fourth sub-input.
Optionally, the application icon in the state of setting the limited duration may be displayed according to a preset effect, such as a shaking display.
S202b, in response to the second sub-input of the K application icons in the N application icons, the electronic equipment updates the limited duration of each application in the K applications corresponding to the K application icons.
Wherein K is a positive integer less than or equal to N. That is, the K application icons are part or all of the N application icons, that is, the K applications are part or all of the N applications.
Optionally, in this embodiment of the present invention, the electronic device may update an applied time limit by using a preset difference (e.g., 20 minutes) as a gradient. For example, the electronic device may increase or decrease the time limit duration of the application by one or more preset differences.
Optionally, one input of an application icon by the user may trigger the electronic device to increase or decrease the limit duration of the corresponding application according to a preset difference. Specifically, the input form of the electronic device for triggering the input of one application icon to increase the limit duration of the corresponding application is different from the input form of the electronic device for triggering the input of one application icon to decrease the limit duration of the corresponding application, for example, the two inputs are sliding inputs with different sliding directions.
Illustratively, the N applications include application 1 to application 6, i.e., N is 6; the K applications include application 1 and application 2, i.e., K is 2. For example, icons of the applications 1 to 6 are displayed on one page in the desktop of the electronic device. When the electronic equipment responds to the first sub-input and selects the applications 1 to 6, the limiting time lengths of the applications 1 to 6 are all the limiting time lengths of 60 minutes preset by the electronic equipment. Subsequently, the user may input the application icon of the application 1 twice in the second sub-input, and may trigger the electronic device to update the limited duration of the application 1 to 20 minutes; one input of the user to the application icon of the application 2 in the second sub-input may trigger the electronic device to update the limited duration of the application 2 to 80 minutes.
S202c, responding to the third sub-input, and within the first preset time period, the electronic equipment judges whether the running time length of each application in the N applications reaches the corresponding limit time length.
Optionally, the third sub-input may be an input that the user triggers the application icon to exit from the state in which the limit duration is set.
For example, the electronic device may provide a control for triggering the electronic device to enable the limited duration of the application corresponding to the selected application icon on the desktop, and the third sub-input may be an input of the control by the user. Alternatively, the third sub-input may be a user input to a free area on the desktop, such as a double-click input or a triple-click input.
According to the application control method provided by the embodiment of the invention, the electronic equipment supports the user to operate N application icons through multiple sub-inputs, so that the electronic equipment sets and enables the limited duration of N applications, and the controllability of the electronic equipment for limiting the applications is improved.
Optionally, in this embodiment of the present invention, the electronic device may provide one or more controls to support the user to select the N application icons through the first sub-input, and to support the user to perform the second sub-input on K application icons in the N application icons. Illustratively, the first sub-input is an input of selecting N application icons through the icon selection box; the second sub-input is sliding input on each application icon in the K application icons through a floating ball control; the sliding input along the first direction on one application icon in the second sub-input is used for triggering and increasing the limit duration of the corresponding application, the sliding input along the second direction on one application icon in the second sub-input is used for triggering and decreasing the limit duration of the corresponding application, and the first direction and the second direction are different directions.
Optionally, in the embodiment of the present invention, the electronic device may continuously display the hover ball control on the desktop, and the hover ball control is used to trigger the electronic device to control the application icon in the desktop to be in a state where the limited duration is set. Specifically, when the electronic device normally displays the application icon on the desktop, an input to the hovel control (i.e., the fourth sub-input, such as a long press input) may trigger the application icon in the desktop to be in a state where the limited duration is set, and display the icon selection box on the desktop.
Further, optionally, the fourth sub-input may input authentication information of a user to the electronic device, and after the authentication information is successfully authenticated by the electronic device, the electronic device may trigger the application icon in the desktop to be in a state of setting a time limit, and display an icon selection box on the desktop. Otherwise, if the authentication of the electronic device to the authentication information fails, the application icon in the desktop cannot be triggered to be in the state of setting the limited duration, and the icon selection box cannot be displayed on the desktop.
Optionally, the first sub-input of the user may be an input for adjusting the shape and size of the icon display frame, so as to display, through the icon, the application to be enabled for the limited duration in the selection, that is, select the N application icons through the icon display frame.
Optionally, in the embodiment of the present invention, the shape of the icon selection frame may be any one of a rectangle, a circle, and a user-defined shape, and is determined according to an actual requirement of a user, which is not specifically limited herein.
It will be appreciated that the user's second sub-input to the hover ball control may be an input in the icon selection box.
For example, the first direction may be an upward direction with respect to the application icon, and the second direction may be a downward direction with respect to the application icon.
Optionally, in this embodiment of the present invention, when K is equal to N, the second sub-input may be a sliding input on the K application icons as a whole. For example, an upward sliding input on K application icons may trigger the electronic device to increase the time limit for each of the K applications by one of the preset differences; conversely, a downward sliding input on the K application icons may trigger the electronic device to decrease the time limit for each of the K applications by one of the preset differences.
Optionally, in this embodiment of the present invention, when K is smaller than N, the second sub-input includes a sliding input on each of the K application icons. For example, an upward sliding input on an application icon may trigger the electronic device to increase the time limit of the application by one of the preset differences; conversely, a downward sliding input on an application icon may trigger the electronic device to decrease the time limit for the application by the predetermined difference.
Further, optionally, the third sub-input may input authentication information of the user to the electronic device, and after the electronic device successfully authenticates the authentication information, the electronic device may trigger the application icon in the desktop to exit from the state in which the limited duration is set, and enable the limited duration of each application in the N applications. Otherwise, if the electronic device fails to authenticate the authentication information, the limited duration of each application in the N applications is not enabled.
Therefore, the user can conveniently and visually set and enable the limited duration of each application through the icon selection frame and the floating ball control provided by the electronic equipment.
Optionally, the application control method provided in the embodiment of the present invention may further include S204 or S205 after the above S202, for example, after the above S202 and before the S203, the application control method may further include S204 or S205:
s204, the electronic equipment updates the limit duration of the second application according to the running duration of the second application.
Wherein the second application is an application in the electronic device.
Of course, the electronic device may perform the relevant steps performed with the second application for any of the N applications.
It is understood that, as the second application runs, if the user reduces the duration of using the second application within one or more preset time periods, that is, reduces the running duration of the second application, the electronic device may suitably reduce the limit duration of the second application. Conversely, if the user increases the duration of using the second application within one or more preset time periods, that is, increases the running duration of the second application, the electronic device may suitably increase the limit duration of the second application.
Optionally, in implementation 1, S204 may be implemented by S204a and S204 b:
s204a, the electronic equipment increases the limit time length of the second application under the condition that the running time length of the second application meets the first condition.
Wherein the first condition is: the first time length of the second application is within the first time length range, and an absolute value of a difference between the first time length and the second time length is less than or equal to a first value. Specifically, the absolute value of the difference between the first duration and the second duration is less than or equal to the first value, which indicates that the first duration of the second application is slightly longer than the second duration, or the first duration and the second duration are closer. The specific value of the first value may be determined according to the actual requirement of the user, and is not specifically limited herein.
Specifically, the first duration is the operation duration of the second application in a second preset time period, the first duration range is the duration range indicated by the predefined middle part in the curve of the normal distribution, and the second duration range is the duration range indicated by the curve of the normal distribution except for the first duration range; the second time length is an average value of the running time lengths of all the applications in the electronic equipment within a second preset time period; the second preset time period includes one or more preset time periods that are consecutive before the current time.
The second preset time period may be one or more preset time periods before the current time, such as the time of one or more days before.
It should be noted that the electronic device may obtain information of the running time length of each application, the average running time length of all applications, the running time axis of each application, and the like in the second preset time period, so as to determine the real-time running time length of each application (for example, the second application) according to the information. Therefore, the reasonable and accurate limiting duration of each application can be set in real time by the electronic equipment, and the effect of limiting the application is improved.
Specifically, the operation time length of the application in the electronic device follows a normal distribution. For example, the operation duration of the application in the previous preset time period of the current time follows normal distribution, or the average operation duration of the application in the previous preset time periods of the current time follows normal distribution.
For example, in a curve in which the operation time periods of the applications are normally distributed, the X-axis represents a preset operation time period (e.g., 20 minutes, 40 minutes, 60 minutes, etc.), and the X-axis represents a variance (or standard deviation) between the actual operation time period of each application and the average operation time period of all the applications (i.e., the second time period). Specifically, the average running time of all applications may be within a time range indicated by a predefined middle portion in the normal distribution curve, for example, the predefined middle portion is the middle P% of the curve, and the value of 9 may be determined according to the actual requirement of the user, for example, 50. For example, the first time length range mentioned above is the time length range indicated by the middle P% of the curve. Accordingly, the second duration range may be a range of L% (e.g., L takes a value of 50) on both sides of the curve except for the middle P%.
Specifically, for the first condition: the usage durations of all applications of the electronic device may be concentrated in a certain time region, such as the first duration range mentioned above, and when the first duration of the second application is longer than the second duration, it indicates that the user has a high demand for the usage of the second application. At this time, the electronic device may increase the limiting time period of the second application appropriately, for example, by a preset difference.
S204b, the electronic device reduces the limit time length of the second application under the condition that the running time length of the second application meets the second condition.
The second condition is: the first time length of the second application is within the second time length range, the difference value between the first time length and the second time length is larger than a second value, and the second value is larger than the first value. Specifically, the difference between the first duration and the second duration is greater than the second value, which indicates that the first duration of the second application is much greater than the second duration. The specific value of the second value may be determined according to the actual requirement of the user, and is not specifically limited herein.
Similarly, for the second condition described above: if the second application use duration is within the second duration range (also in the range of L% on both sides of the above-mentioned normal distribution curve), and the second application use duration is far longer than the second duration, that is, the standard deviation between the second application use duration and the second duration is larger and larger, it indicates that the user's demand for use of the second application is lower. At this time, the electronic device may appropriately decrease the limiting time period of the second application, for example, by a preset difference.
In this way, the electronic device may appropriately adjust the operation durations of the applications in real time by using the normal distribution of the operation durations of the applications, that is, by using the range (determined according to the standard deviation) in which the operation durations of the applications deviate from the second duration.
Optionally, in implementation 2, S204 may be implemented by S204c and S204 d:
s204c, the electronic device increases the limit time length of the second application under the condition that the running time length of the second application meets the third condition.
Wherein the third condition is: the operation time of the second application in the same M first time periods is less than the preset time, different first time periods in the M first time periods are located in different preset time periods in the continuous M preset time periods, M is a positive integer, and if M is 3.
S204d, the electronic device reduces the limit time length of the second application under the condition that the running time length of the second application meets the fourth condition.
Wherein the fourth condition is: the running time of the second application in the same M first time periods is greater than or equal to the preset time.
For example, the preset time duration may be the second time duration or a limit time duration of the current second application.
For example, the M preset time periods are M days of the current time. The first time period is a time period of 8 to 12 am per day. I.e. the third condition indicates that the user uses the second application for a shorter duration of time in the period of 8 to 12 am for a number of consecutive days, the current second application may be limited in duration. At this time, the electronic device may suitably increase the limit time period of the second application, for example, by a preset difference.
Similarly, the running time of the second application satisfies the fourth condition, and the user uses the second application continuously for a long time in the time period of 8 to 12 am for a plurality of consecutive days, so the limit time of the second application may be long, and the user may overuse the second application. At this time, the electronic device may appropriately reduce the limit time period of the second application, such as by one or more preset differences.
S205, the electronic device stops judging whether the running time of each application in the N applications reaches the corresponding limit time within a first preset time period according to the running time of the second application.
Wherein the second application is an application in the electronic device.
It is understood that, in the case that the usage time period of the second application by the user is small, that is, the usage requirement of the second application by the user is small, the electronic device may not limit the operation of the second application, so that the limited time period of the second application may be deactivated.
Optionally, in the implementation mode 2, the S205 may be implemented by S205 a:
s205a, when the operation duration of the second application satisfies the fifth condition, the electronic device stops determining whether the operation duration of each of the N applications reaches the corresponding time limit duration within the first preset time period.
Wherein the fifth condition is: the second application operates for a duration less than the preset duration for a first time period within a last preset time period (e.g., the previous day) prior to the current time.
Specifically, the running time of the second application satisfies the fifth condition, which indicates that the limited time of the second application can be deactivated when the user has a small demand for the use of the second application. Therefore, the flexibility of the electronic equipment for limiting the application can be improved, and one application can normally run without limitation.
Fig. 4 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present invention. The electronic device 40 shown in fig. 4 includes: a receiving module 41 and a control module 42; a receiving module 41, configured to receive a first input of the N application icons; a control module 42, configured to, in response to the first input received by the receiving module 41, determine whether the running duration of each application in the N applications reaches the corresponding limit duration within a first preset time period; in a first preset time period, under the condition that the running time of the first application reaches the limit time of the first application, closing the first application; wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a limited duration; the limiting time length of each application in the electronic equipment is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limiting duration of each application in the electronic equipment is preset or is set through the input of a corresponding application icon; n is a positive integer; the first application is any application of the N applications, and the first preset time period is a preset time period in which the current time is located or a preset time period after the current time.
Optionally, the control module 42 is specifically configured to select N application icons in response to the first sub-input to the N application icons; responding to second sub-input of K application icons in the N application icons, and adjusting the limit duration of each application in the K applications corresponding to the K application icons; responding to the third sub-input, and judging whether the running time of each application in the N applications reaches the corresponding limit time within a first preset time period; wherein K is a positive integer less than or equal to N.
Optionally, the first sub-input is input for selecting N application icons through the icon selection box; the second sub-input is sliding input on the K application icons through the floating ball control; the sliding input along the first direction on one application icon in the second sub-input is used for triggering and increasing the limit duration of the corresponding application, the sliding input along the second direction on one application icon in the second sub-input is used for triggering and decreasing the limit duration of the corresponding application, and the first direction and the second direction are different directions.
Optionally, the control module 42 is further configured to, within the first preset time period, after determining whether the running duration of each application in the N applications reaches the corresponding limit duration, update the limit duration of the second application according to the running duration of the second application; or, according to the running time of the second application, the limit time of the second application is stopped; wherein the second application is an application in the electronic device.
Optionally, the control module 42 is specifically configured to increase the limit duration of the second application when the running duration of the second application meets the first condition; reducing the limit time length of the second application under the condition that the running time length of the second application meets a second condition; wherein the first condition is: the first time length of the second application is within the first time length range, and the absolute value of the difference value between the first time length and the second time length is smaller than or equal to a first numerical value; the second condition is: the first time length of the second application is within a second time length range, the difference value between the first time length and the second time length is larger than a second numerical value, and the second numerical value is larger than the first numerical value; the method comprises the steps that the running duration of the application in the electronic equipment is subjected to normal distribution, the first duration is the running duration of a second application in a second preset time period, the first duration range is the duration range indicated by the predefined middle part in a curve of the normal distribution, and the second duration range is the duration range indicated by the curve of the normal distribution except for the first duration range; the second time length is an average value of the running time lengths of all applications in the electronic equipment within a second preset time period; the second preset time period includes one or more preset time periods that are consecutive before the current time.
Optionally, the control module 42 is specifically configured to, when the running duration of the second application meets the third condition, increase the limit duration of the second application; reducing the limit time length of the second application under the condition that the running time length of the second application meets a fourth condition; under the condition that the running time of the second application meets the fifth condition, within a first preset time period, stopping judging whether the running time of each application in the N applications reaches the corresponding limit time; wherein the third condition is: the operation time of the second application in the same M first time periods is less than the preset time, and different first time periods in the M first time periods are positioned in different preset time periods in the continuous M preset time periods; the fourth condition is that: the running time of the second application in the same M first time periods is greater than or equal to the preset time; the fifth condition is: and the running time of the second application in the first time period in the last preset time period before the current time is less than the preset time, and M is a positive integer.
The electronic device 40 provided in the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described here again to avoid repetition.
The electronic device provided by the embodiment of the invention can support the preset of the limited time length of each application in the electronic device, or the limited time length of each application is set through the input of the user to the application icon, and the limited time length of each application is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period. Therefore, whether the running time of each application in the N applications reaches the corresponding limited time can be judged within a first preset time period through the first input of the N application icons; furthermore, the first application reaching the limit duration may be closed within a first preset time period to limit overuse of the first application. That is, the user can input one or more application icons on the desktop of the electronic device, trigger the electronic device to set and enable the applications for a limited duration in a fast and batch manner, so as to limit the running of the applications. The user does not need to control the electronic equipment to open the setting application first, then the identification of each application is input in the setting application so as to set the limit duration of each application respectively, and then the electronic equipment is triggered in the setting application to limit the running of each application through each limit duration. In this way, the operation steps of the user for controlling the electronic equipment to limit the application are simplified, and the time consumption is reduced.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
Wherein, the processor 110 is configured to control the user input unit 107 to receive a first input of the N application icons; and in response to the first input received by the input unit 107, determining whether the running duration of each of the N applications reaches the corresponding limit duration within a first preset time period; in a first preset time period, under the condition that the running time of the first application reaches the limit time of the first application, closing the first application; wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a limited duration; the limiting time length of each application in the electronic equipment is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limiting duration of each application in the electronic equipment is preset or is set through the input of a corresponding application icon; n is a positive integer; the first application is any application of the N applications, and the first preset time period is a preset time period in which the current time is located or a preset time period after the current time.
The electronic device provided by the embodiment of the invention can support the preset of the limited time length of each application in the electronic device, or the limited time length of each application is set through the input of the user to the application icon, and the limited time length of each application is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period. In this way, through the first input of the N application icons, in a first preset time period, it can be started to judge whether the running time of each application in the N applications reaches the corresponding limit time; furthermore, the first application reaching the limit duration may be closed within a first preset time period to limit overuse of the first application. That is, the user can input one or more application icons on the desktop of the electronic device, trigger the electronic device to set and enable the applications for a limited duration in a fast and batch manner, so as to limit the running of the applications. The user does not need to control the electronic equipment to open the setting application first, then the identification of each application is input in the setting application so as to set the limit duration of each application respectively, and then the electronic equipment is triggered in the setting application to limit the running of each application through each limit duration. In this way, the operation steps of the user for controlling the electronic equipment to limit the application are simplified, and the time consumption is reduced.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of the phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 5, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 for 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 cellular phone, and the like. Further, the memory 109 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.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby integrally monitoring the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 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 the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program is executed by the processor 110 to implement each process of the foregoing method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
The embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An application control method applied to an electronic device, the method comprising:
receiving a first input of the N application icons;
in response to the first input, determining whether the operation duration of each of N applications reaches a corresponding limit duration within a first preset time period, the operation durations of all the N applications obeying a normal distribution, and the limit duration of one application is increased or decreased based on the update condition satisfied by the operation duration of the one application, the updating condition includes whether the running time length of the application is in a corresponding time length range in the curve of the normal distribution or not and the magnitude relation between the difference value between the running time length of the application and the average running time length of all the applications in a second preset time period and a first value or a second value, the second value is greater than the first value, and the second preset time period comprises one or more continuous preset time periods before the current moment;
in the first preset time period, under the condition that the running time of a first application reaches the limit time of the first application, closing the first application;
wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a restriction duration; the limiting time length of each application in the electronic equipment is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limiting duration of each application in the electronic equipment is preset or is set through the input of a corresponding application icon; n is a positive integer; the first application is any application in the N applications, and the first preset time period is a preset time period of the current time or a preset time period after the current time.
2. The method of claim 1, wherein determining whether the running duration of each of the N applications reaches the corresponding limit duration within a first preset time period in response to the first input comprises:
in response to a first sub-input of the N application icons, selecting the N application icons;
responding to second sub-input of K application icons in the N application icons, and updating the limit duration of each application in the K applications corresponding to the K application icons;
responding to a third sub-input, and judging whether the running time of each application in the N applications reaches a corresponding limit time within the first preset time period;
wherein K is a positive integer less than or equal to N.
3. The method according to claim 2, wherein the first sub-input is an input of selecting the N application icons through an icon checkbox; the second sub-input is a sliding input on the K application icons through a floating ball control;
the sliding input along the first direction on one application icon in the second sub-input is used for triggering and increasing the limit duration of the corresponding application, the sliding input along the second direction on one application icon in the second sub-input is used for triggering and decreasing the limit duration of the corresponding application, and the first direction and the second direction are different directions.
4. The method according to claim 1, wherein after determining whether the running time length of each of the N applications reaches the corresponding limit time length within the first preset time period, the method further comprises:
updating the limit duration of the second application according to the running duration of the second application;
or, within the first preset time period, according to the running duration of the second application, stopping judging whether the running duration of each application in the N applications reaches the corresponding limit duration;
wherein the second application is one application in the electronic device.
5. The method of claim 4, wherein updating the limit duration of the second application according to the running duration of the second application comprises:
under the condition that the running time of the second application meets a first condition, increasing the limit time of the second application;
reducing the limit time length of the second application under the condition that the running time length of the second application meets a second condition;
wherein the first condition is: the first time length of the second application is within a first time length range, and the absolute value of the difference between the first time length and the second time length is smaller than or equal to a first numerical value;
the second condition is: the first time length of the second application is within a second time length range, and the difference value between the first time length and the second time length is larger than a second value;
the first duration is the operation duration of the second application in a second preset time period, the first duration range is the duration range indicated by the predefined middle part in the curve of the normal distribution, and the second duration range is the duration range indicated by the curve of the normal distribution except for the first duration range; the second time length is an average value of operation time lengths of all applications in the electronic device within the second preset time period.
6. The method of claim 4, wherein the update condition further comprises: whether the running time of the application in the same M first time periods is less than a preset time or not;
the updating the limit duration of the second application according to the running duration of the second application includes:
under the condition that the running time of the second application meets a third condition, increasing the limit time of the second application;
reducing the limit time length of the second application under the condition that the running time length of the second application meets a fourth condition;
the stopping of the determination of whether the running duration of each application in the N applications reaches the corresponding limit duration according to the running duration of the second application includes:
under the condition that the running time of the second application meets a fifth condition, stopping judging whether the running time of each application in the N applications reaches a corresponding limit time within the first preset time period;
wherein the third condition is: the running time of the second application in the same M first time periods is shorter than a preset time, and different first time periods in the M first time periods are positioned in different preset time periods in continuous M preset time periods;
the fourth condition is: the running time of the second application in the same M first time periods is greater than or equal to the preset time;
the fifth condition is: and the running time of the second application in the first time period in the last preset time period before the current time is less than the preset time, and M is a positive integer.
7. An electronic device, characterized in that the electronic device comprises: the device comprises a receiving module and a control module;
the receiving module is used for receiving first input of the N application icons;
the control module is configured to determine, in response to the first input received by the receiving module, whether the running duration of each of the N applications reaches a corresponding limit duration within a first preset time period, where the running durations of all the N applications obey a normal distribution, and the limit time length of one application is increased or decreased based on the update condition satisfied by the operation time length of the one application, the updating condition includes whether the running time length of the application is in a corresponding time length range in the curve of the normal distribution or not and the magnitude relation between the difference value between the running time length of the application and the average running time length of all the applications in a second preset time period and a first value or a second value, the second value is greater than the first value, and the second preset time period comprises one or more continuous preset time periods before the current moment; in the first preset time period, under the condition that the running time of a first application reaches the limit time of the first application, closing the first application;
wherein different ones of the N application icons indicate different ones of the N applications; each of the N applications has a limited duration; the limiting time length of each application in the electronic equipment is used for representing the maximum value of the time length for allowing the corresponding application to run in each preset time period; the limiting duration of each application in the electronic equipment is preset or is set through the input of a corresponding application icon; n is a positive integer; the first application is any application in the N applications, and the first preset time period is a preset time period of the current time or a preset time period after the current time.
8. The electronic device of claim 7,
the control module is specifically configured to select the N application icons in response to a first sub-input to the N application icons;
responding to second sub-input of K application icons in the N application icons, and updating the limit duration of each application in the K applications corresponding to the K application icons;
responding to a third sub-input, and judging whether the running time of each application in the N applications reaches a corresponding limit time within the first preset time period;
wherein K is a positive integer less than or equal to N.
9. The electronic device of claim 8, wherein the first sub-input is an input selecting the N application icons through an icon checkbox; the second sub-input is a sliding input on the K application icons through a floating ball control;
the sliding input along the first direction on one application icon in the second sub-input is used for triggering to increase the limit duration of the corresponding application, the sliding input along the second direction on one application icon in the second sub-input is used for triggering to decrease the limit duration of the corresponding application, and the first direction and the second direction are different directions.
10. The electronic device according to claim 7, wherein the control module is further configured to update the limit duration of the second application according to the running duration of the second application after determining whether the running duration of each of the N applications reaches the corresponding limit duration within a first preset time period; or, within the first preset time period, according to the running duration of the second application, stopping judging whether the running duration of each application in the N applications reaches the corresponding limit duration;
wherein the second application is one application in the electronic device.
11. The electronic device according to claim 10, wherein the control module is specifically configured to increase the limit duration of the second application when the running duration of the second application satisfies a first condition;
reducing the limit time length of the second application under the condition that the running time length of the second application meets a second condition;
wherein the first condition is: the first time length of the second application is within a first time length range, and the absolute value of the difference value between the first time length and the second time length is smaller than or equal to a first numerical value;
the second condition is: the first time length of the second application is within a second time length range, and the difference value between the first time length and the second time length is larger than a second value;
the first duration is the operation duration of the second application in a second preset time period, the first duration range is the duration range indicated by the predefined middle part in the curve of the normal distribution, and the second duration range is the duration range indicated by the curve of the normal distribution except for the first duration range; the second time length is an average value of operation time lengths of all applications in the electronic device within the second preset time period.
12. The electronic device of claim 10, wherein the update condition further comprises: whether the running time of the application in the same M first time periods is less than a preset time or not;
the control module is specifically configured to increase the limit duration of the second application when the running duration of the second application meets a third condition; reducing the limit time length of the second application under the condition that the running time length of the second application meets a fourth condition; under the condition that the running time of the second application meets a fifth condition, stopping judging whether the running time of each application in the N applications reaches a corresponding limit time within the first preset time period;
wherein the third condition is: the running time of the second application in the same M first time periods is less than a preset time, and different first time periods in the M first time periods are positioned in different preset time periods in continuous M preset time periods;
the fourth condition is: the running time of the second application in the same M first time periods is greater than or equal to the preset time;
the fifth condition is: and the running time of the second application in the first time period in the last preset time period before the current time is less than the preset time, wherein M is a positive integer.
CN201911378482.3A 2019-12-27 2019-12-27 Application control method and electronic equipment Active CN111158781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911378482.3A CN111158781B (en) 2019-12-27 2019-12-27 Application control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911378482.3A CN111158781B (en) 2019-12-27 2019-12-27 Application control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111158781A CN111158781A (en) 2020-05-15
CN111158781B true CN111158781B (en) 2022-09-30

Family

ID=70558558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911378482.3A Active CN111158781B (en) 2019-12-27 2019-12-27 Application control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111158781B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113360037B (en) * 2021-05-28 2023-05-16 维沃移动通信(杭州)有限公司 Method and device for setting application program use duration

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808225A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Application program management method and device as well as terminal
CN106250294A (en) * 2016-07-22 2016-12-21 广东欧珀移动通信有限公司 Control method and control device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102108439B1 (en) * 2013-08-23 2020-05-08 삼성전자주식회사 Portable device and method for restricting use of portable device
CN106227414A (en) * 2016-07-29 2016-12-14 努比亚技术有限公司 Application icon bulk management method and device
CN107786561B (en) * 2017-10-31 2020-07-24 广东小天才科技有限公司 Application use duration management and control method and client
CN108366114B (en) * 2018-02-07 2020-01-10 Oppo广东移动通信有限公司 Application addiction prevention method and device, terminal and computer readable storage medium
CN109766680B (en) * 2018-12-27 2021-01-08 维沃移动通信有限公司 Authority control method and terminal
CN109995923A (en) * 2019-03-28 2019-07-09 Oppo广东移动通信有限公司 A kind of flashlight control method, flashlight control device and terminal device
CN110413315B (en) * 2019-07-29 2021-06-25 维沃移动通信有限公司 Application program control method and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808225A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Application program management method and device as well as terminal
CN106250294A (en) * 2016-07-22 2016-12-21 广东欧珀移动通信有限公司 Control method and control device

Also Published As

Publication number Publication date
CN111158781A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN110995923B (en) Screen projection control method and electronic equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109828732B (en) Display control method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN110674490B (en) Application permission display method and device and mobile terminal
CN111027030B (en) Permission setting method and terminal device
CN110445924B (en) Network task execution method and terminal equipment
CN111163260B (en) Camera starting method and electronic equipment
CN109032468B (en) Method and terminal for adjusting equipment parameters
CN108681427B (en) Access right control method and terminal equipment
CN110489045B (en) Object display method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN110825295B (en) Application program control method and electronic equipment
CN110049486B (en) SIM card selection method and terminal equipment
CN111030917B (en) Message display method and electronic equipment
CN110837327A (en) Message viewing method and terminal
CN109901761B (en) Content display method and mobile terminal
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN111010523A (en) Video recording method and electronic equipment
WO2021031717A1 (en) Screen capturing method and terminal device
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment

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