WO2022206130A1 - 一种控制应用程序限时使用的方法及电子设备 - Google Patents

一种控制应用程序限时使用的方法及电子设备 Download PDF

Info

Publication number
WO2022206130A1
WO2022206130A1 PCT/CN2022/072549 CN2022072549W WO2022206130A1 WO 2022206130 A1 WO2022206130 A1 WO 2022206130A1 CN 2022072549 W CN2022072549 W CN 2022072549W WO 2022206130 A1 WO2022206130 A1 WO 2022206130A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
electronic device
interface
icon
user
Prior art date
Application number
PCT/CN2022/072549
Other languages
English (en)
French (fr)
Inventor
赵钊
Original Assignee
荣耀终端有限公司
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 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to US18/031,048 priority Critical patent/US20230367634A1/en
Priority to EP22778319.8A priority patent/EP4206933A4/en
Publication of WO2022206130A1 publication Critical patent/WO2022206130A1/zh

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4887Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues involving deadlines, e.g. rate based, periodic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/54Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by adding security routines or objects to programs
    • 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/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/0482Interaction with lists of selectable items, e.g. menus
    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1091Recording time for administrative or management purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/81Threshold
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2137Time limited access, e.g. to a computer or data

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a method and an electronic device for controlling the time-limited use of an application program.
  • control can also be performed for a single APP.
  • the electronic device may receive a user's setting operation on one or more applications in the application management center, so as to restrict the user from using the one or more applications.
  • the electronic device may receive the user's setting operation in the setting center of a single APP, so as to restrict the user from using the application.
  • the above-mentioned application management center or the setting center of a single APP may provide a youth mode for the user to select, so as to restrict the user from using the corresponding application.
  • this control method is indistinguishable for each APP, and requires the user to perform complex setting operations to achieve.
  • Embodiments of the present application provide a method and an electronic device for controlling the time-limited use of an application program, which can simplify the user operation of triggering the time-limited use of the control application in the electronic device, and provide users with an intelligent and convenient control experience.
  • an embodiment of the present application provides a method for controlling time-limited use of an application program, and the method can be applied to an electronic device in which multiple applications are installed.
  • the electronic device may display a first main interface, the first main interface includes a first icon and a second icon, the first icon is an application icon of the first application, and the second icon is an application icon of the second application.
  • a preset mark is displayed at a preset position of the second icon in the first main interface, where the preset mark is used to indicate that the second application uses a timeout. That is to say, the electronic device can distinguish applications whose usage times out (ie, the usage needs to be controlled) in the first main interface.
  • the electronic device displays a shortcut menu of the second application on the first main interface in response to the user's first operation on the second icon, where the first operation is a long-press operation or a double-click operation.
  • the shortcut menu of the second application includes a first control, and the first control is used to trigger the electronic device to set the delay time of the second application.
  • the electronic device displays the second interface in response to the user's click operation on the first control; the electronic device receives the first delay time length set by the user on the second interface.
  • the electronic device can provide the user with a time-limited setting function by using the first control in the shortcut menu.
  • the electronic device sends out a first prompt message when the first delay time period reaches, and the first prompt message is used to prompt that the second application has been delayed for the first delay time period.
  • the second application is determined by the electronic device from multiple applications according to the operation records and application types of the multiple applications; the application types include office applications and non-office applications, and the operation records include up to the current moment and within a preset time period The running duration and/or running times of the corresponding application in the foreground of the electronic device; the second application is a non-office application whose running duration and/or running times in the foreground exceeds the preset threshold; the first application is a number of applications except the second Apps other than apps. That is to say, the electronic device can intelligently identify the second application that needs to be controlled and used and the first application that does not need to be controlled.
  • the electronic device can intelligently identify the application to be controlled and used, and the user can intuitively distinguish the application to be controlled from the main interface of the electronic device.
  • the shortcut menu of the second application includes a first control, and the first control can conveniently provide the user with a function of setting the delay time for the application that needs to be controlled to be used, so as to realize the targeted setting and reduce the user setting delay. Difficulty of time. When the set delay time arrives, it provides users with an intelligent timeout reminder service.
  • the above-mentioned second interface is a main interface of the electronic device, and the second interface includes a delay setting window for setting the delay time; or, the above-mentioned second interface is a second application
  • the electronic device receiving the first delay duration set by the user on the second interface may include: the electronic device receiving the first delay duration set by the user in the delay setting window.
  • a delay setting window can be directly provided for the user to set the delay time, thereby improving the convenience of setting the trigger time.
  • the second application may not use the timeout, and is an application that does not need to be controlled for use.
  • the method further includes: the electronic device displays a second main interface, the second main interface includes a second icon, and a preset position of the second icon in the second main interface The preset mark is not displayed at the place; the electronic device displays the application interface of the second application in response to the user's click operation on the second icon in the second main interface; when the electronic device runs the second application in the foreground, the second application is up to the current When the time, the running duration and/or the running times of the foreground running in the preset time period exceed the preset threshold, a third interface is displayed, and the third interface is used to prompt the second application to use the timeout.
  • the application will be run in the foreground in response to a user's click operation on the application.
  • the user may be prompted to use the application to time out.
  • the user is prompted to use a timeout on the application interface, thereby improving the timeliness of controlled use.
  • the above-mentioned electronic device displays the first main interface, including: the electronic device displays the first main interface in response to the second operation of the user, and the second operation is used to trigger the electronic device to run the second application in the background, and display the electronic device main interface.
  • the first main interface is displayed, and then the first control in the shortcut menu can be used to set the delay time and realize control usage.
  • the third interface includes a delay setting window for setting the delay duration; the method further includes: the electronic device can receive the delay setting window in the third interface by the user The set second delay time; the electronic device sends a second prompt message when the second delay time reaches the second delay time.
  • the second prompt message is used to prompt that the second application has been delayed for the second delay time.
  • a delay setting function can also be provided for the user, thereby improving the timeliness of time-limited control.
  • the electronic device determines the second application from the multiple applications according to the usage records and application types of the multiple applications, including: the electronic device obtains the multiple applications from the cloud server The type of application of each application in As of the current moment, the first non-office application in each of the applications has the running duration and/or the number of times of running in the foreground exceeding the preset threshold within a preset time period, and it is determined that the first non-office application is the second application, and the first non-office application is the first non-office application. Is any of the multiple applications that are not office applications.
  • the non-office application with the threshold value is determined as the second application, so that the determined second application is the non-office application with a usage timeout, and the use of control can be implemented for the second application in the future to further improve the pertinence of the use of control.
  • the above-mentioned running duration and/or running times exceeds a preset threshold, including: the running duration exceeds a preset duration threshold, and/or the running times exceeds a preset threshold of times.
  • one or both of the preset duration threshold and the preset number of times threshold can be used to measure the "use timeout", so as to accurately determine the application with the use timeout.
  • the electronic device may also display a shortcut menu of the first application on the first main interface in response to the user's first operation on the first icon.
  • the shortcut menu of the first application does not include a control for triggering the electronic device to set the delay time of the first application.
  • the method of the embodiment of the present application is also in response to the user's long-press operation or double-click operation on the application icon, but the shortcut menu of the first application does not include an extension for triggering the electronic device to set the first application.
  • the control of the duration can prevent the user from operating the control for triggering the electronic device to set the delay duration of the first application to trigger the setting of the delay duration of the first application. In this way, the control usage of the application can be made consistent with the actual operation record and application type of the application, and the differentiation of the control usage can be realized.
  • an embodiment of the present application further provides an electronic device, wherein multiple applications are installed in the electronic device, and the electronic device includes a display screen, a memory, and one or more processors.
  • the display screen, the memory and the processor are coupled.
  • the memory is used to store computer program codes, and the computer program codes include computer instructions.
  • the electronic device When the computer instructions are executed by the processor, the electronic device causes the electronic device to perform the following steps: displaying a first main interface; A main interface includes a first icon and a second icon, the first icon is an application icon of a first application, the second icon is an application icon of a second application, and in the first main interface, the second A preset mark is displayed at the preset position of the icon, and the preset mark is used to indicate that the second application is overtime; in response to the user's first operation on the second icon, the preset mark is displayed on the first main interface
  • the shortcut menu of the second application the shortcut menu of the second application includes a first control, the first control is used to trigger the electronic device to set the delay time of the second application, the first control The operation is a long-press operation or a double-click operation; in response to the user's click operation on the first control, a second interface is displayed; the first delay time length set by the user on the second interface is received; When the time period is reached, first prompt information is sent, and the first
  • the second application is determined by the processor from the multiple applications according to the running records and application types of the multiple applications; the application types include office applications and non-office applications, and the application types include office applications and non-office applications.
  • the running record includes the running duration and/or running times of the corresponding application in the foreground of the electronic device as of the current moment and a preset time period; the second application is that the running duration and/or running times in the foreground exceeds the preset time period.
  • a non-office application for which a threshold is set; the first application is an application other than the second application among the plurality of applications.
  • the second interface is a main interface of the electronic device, and the second interface includes a delay setting window for setting a delay duration.
  • the second interface is an application interface of the second application, and the second interface includes a delay setting window for setting a delay time length.
  • the electronic device When the computer instructions are executed by the processor, the electronic device is caused to further perform the following step: receiving the first delay time length set by the user in the delay setting window.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to further perform the following step: before displaying the first main interface, display a second a main interface, the second main interface includes the second icon, and the preset mark is not displayed at the preset position of the second icon in the second main interface; The click operation of the second icon in the main interface displays the application interface of the second application;
  • the running duration and/or the number of times of running the second application in the foreground exceeds the preset threshold within the preset time period as of the current moment, Then a third interface is displayed, and the third interface is used to prompt the second application to use the timeout.
  • the electronic device When the computer instructions are executed by the processor, the electronic device is caused to further perform the following step: in response to a second operation of the user, the electronic device displays the first main interface, and the second operation is used for The electronic device is triggered to run the second application in the background, and the main interface of the electronic device is displayed.
  • the third interface includes a delay setting window for setting the delay duration.
  • the electronic device further performs the following steps: receiving the second delay time length set by the user in the delay setting window in the third interface; When the second delay time is reached, second prompt information is sent, and the second prompt information is used to prompt that the second application has been delayed for the second delay time.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to further perform the following step: acquiring each of the multiple applications from a cloud server
  • the application type includes office applications and non-office applications; count the running duration and/or running times of each non-office application in the foreground within the preset time period; if As of the current moment of the first non-office application among the multiple applications, the running duration and/or the number of times of running in the foreground exceeds the preset threshold within the preset time period, and the first non-office application is determined to be the first non-office application.
  • the application is the second application, and the first non-office application is any one of the multiple applications.
  • the running duration and/or the running times exceed the preset threshold, including: the running duration exceeds the preset duration threshold, and/or the running times Exceeds the preset number of thresholds.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to further perform the following step: after displaying the first main interface, in response to the user For the first operation of the first icon, a shortcut menu of the first application is displayed on the first main interface, and the shortcut menu of the first application does not include any settings for triggering the setting of the electronic device. Describe the control for the delay time of the first application.
  • an embodiment of the present application provides a chip system, which is applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface The circuit and the processor are interconnected by wires; the interface circuit is configured to receive signals from the memory of the electronic device and send the signals to the processor, the signals including computer instructions stored in the memory; When the processor executes the computer instructions, the electronic device executes the method described in the first aspect and any possible design manners thereof.
  • the present application provides a computer storage medium, the computer storage medium comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the first aspect and any possible design methods thereof the method described.
  • the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method described in the first aspect and any possible design manners thereof.
  • the electronic device described in the second aspect, the chip system described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect can achieve beneficial effects.
  • the beneficial effects in the first aspect and any possible design manners thereof may be referred to, which will not be repeated here.
  • FIG. 1 is a schematic diagram of a main interface of a mobile phone according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the hardware structure of a mobile phone according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for controlling time-limited use of an application program provided by an embodiment of the present application
  • FIG. 4 is a schematic diagram of a main interface of another mobile phone provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a main interface of another mobile phone according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a main interface of another mobile phone provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a delay duration setting interface provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another delay duration setting interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a reminder interface for the arrival of a delayed duration according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a reminder interface for another delayed time arrival provided by an embodiment of the present application.
  • 11 is a flowchart of another method for controlling time-limited use of an application program provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a display interface of a mobile phone according to an embodiment of the application.
  • FIG. 13 is a flowchart of a method for identifying an application that needs to be controlled to be used, provided by an embodiment of the present application;
  • 15 is a schematic diagram of a display interface of another mobile phone provided by an embodiment of the application.
  • 16 is a schematic diagram of a display interface of another mobile phone provided by an embodiment of the application.
  • FIG. 17 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • the mobile phone cannot intelligently identify the applications that need to be controlled (such as non-office applications that use time-out) and applications that do not need to be controlled (such as office applications and non-office applications that use no time-out).
  • the mobile phone Furthermore, it is not possible to distinguish between applications that require controlled use and applications that do not need to be displayed on the main interface.
  • FIG. 1 shows a main interface 101 of a mobile phone, and the main interface 101 includes a plurality of application icons.
  • the applications corresponding to the multiple application icons may include applications that need to be controlled for use and applications that do not need to be controlled for use.
  • the mobile phone does not display the two applications differently, so that the user cannot distinguish the two applications from the main interface.
  • the mobile phone can only respond to the user's setting operation on one or more applications in the application management center, or respond to the user's setting operation in the setting center of a single APP, to control the user's use of the corresponding APP.
  • This control method requires complicated user operations, which increases the difficulty of control operations.
  • An embodiment of the present application provides a method for controlling an application program, and the method can be applied to an electronic device installed with multiple applications.
  • the electronic device may display, on the main interface, the application icons of the above-mentioned applications that need to be controlled for use (eg, the second application) and applications that do not need to be used (eg, the first application). In this way, the user can intuitively distinguish the applications that need to be controlled and used and the applications that do not need to be controlled from the main interface.
  • the electronic device may display a shortcut menu including the first control.
  • the first control is used to trigger the electronic device to set the delay time of the application that needs to be controlled.
  • the first control can conveniently provide the user with a function of setting the delay time of the application that needs to be controlled to be used, which can reduce the difficulty for the user to set the delay time.
  • the electronic device can remind the user of the end of the delayed use of the application that needs to be controlled when the delay time reaches, so as to provide the user with an intelligent timeout reminder service.
  • the electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular Phones, personal digital assistants (personal digital assistants, PDAs), augmented reality (augmented reality, AR) ⁇ virtual reality (virtual reality, VR) devices and other devices including the above-mentioned folding screen, the specific form of the electronic device in the embodiments of the present application No special restrictions are imposed.
  • FIG. 2 is a schematic structural diagram of an electronic device 200 according to an embodiment of the present application.
  • the electronic device may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charge management module 240, a power management module 241, a battery 242, Antenna 1, Antenna 2, Mobile Communication Module 250, Wireless Communication Module 260, Audio Module 270, Speaker 270A, Receiver 270B, Microphone 270C, Headphone Interface 270D, Sensor Module 280, Key 290, Motor 291, Indicator 292, Camera 293, Display screen 294, and subscriber identification module (subscriber identification module, SIM) card interface 295 and so on.
  • SIM subscriber identification module
  • the sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, and an environmental sensor.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • a controller can be the nerve center and command center of an electronic device.
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device.
  • the electronic device may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 240 is used to receive charging input from the charger.
  • the power management module 241 is used to connect the battery 242 , the charging management module 240 and the processor 210 .
  • the power management module 241 receives input from the battery 242 and/or the charging management module 240, and supplies power to the processor 210, the internal memory 221, the external memory, the display screen 294, the camera 293, and the wireless communication module 260.
  • the wireless communication function of the electronic device can be implemented by the antenna 1, the antenna 2, the mobile communication module 250, the wireless communication module 260, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 250 can provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the electronic device.
  • the mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), and the like.
  • the wireless communication module 260 can provide applications on electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT global navigation satellite system
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the electronic device realizes the display function through the GPU, the display screen 294, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 210 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 294 is used to display images, videos, and the like.
  • the display screen 294 is used to display content such as application icons, shortcut menu options, and delay setting windows, so as to guide the user to set the delay duration.
  • Display screen 294 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • AMOLED flexible light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device can realize the shooting function through the ISP, the camera 293, the video codec, the GPU, the display screen 294 and the application processor.
  • the ISP is used to process the data fed back by the camera 293 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 293 .
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the processor 210 executes various functional applications and data processing of the electronic device by executing the instructions stored in the internal memory 221 .
  • the processor 210 may display a shortcut menu of the second application in response to the user's operation on the application icon by executing the instruction stored in the internal memory 221, so as to guide the user to set the delay time, and then Control application usage.
  • the electronic device can implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, and an application processor. Such as music playback, recording, etc.
  • Touch sensor 280K also called “touch panel”.
  • the touch sensor 280K may be disposed on the display screen 294, and the touch sensor 280K and the display screen 294 form a touch screen, also called a "touch screen”.
  • the touch sensor 280K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 294 .
  • the touch sensor 280K is used to detect the user's long-press or double-click operation on the application icon, detect the user's click operation on the delay setting control, and detect the user's setting delay time and other operations.
  • the touch sensor 280K may also be disposed on the surface of the electronic device, which is different from the location where the display screen 294 is located.
  • the keys 290 include a power-on key, a volume key, and the like.
  • Motor 291 can generate vibrating cues.
  • the indicator 292 can be an indicator light, which can be used to indicate the charging status, the change of power, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 295 or pulled out from the SIM card interface 295 to achieve contact and separation with the electronic device.
  • the electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • An embodiment of the present application provides a method for controlling an application program, and the method can be applied to a mobile phone installed with multiple applications.
  • the control method of the application includes S301-S305.
  • the mobile phone counts the operation records and application types of multiple applications, where the operation records and application types are used to identify the applications that need to be controlled to be used in the mobile phone.
  • the application types include office applications and non-office applications.
  • office applications the phone does not need to control its use.
  • email application is an office application, there is no need to control its use.
  • non-office applications the mobile phone specifically controls the non-office applications that use time-out, but does not need to control the non-office applications that use no time-out.
  • the running record includes the running duration and/or running times of the corresponding application in the foreground of the mobile phone within a preset time period up to the current moment.
  • the running time refers to the accumulated time
  • the running times refers to the accumulated times.
  • the mobile phone will count the overlapping period of the running time period and the preset time period into the running time, and will Increase the number of runs by one.
  • there are two cases of overlapping case 1, the operation time period is included in the preset time period; case 2, the operation time period partially overlaps with the preset time period.
  • the operation time period refers to the time period between the start and end time points of the operation in one operation.
  • the preset time period is 8:00-11:00, 14:00-18:00
  • the running record of application a is: 8:30-8:40
  • the running time periods of the four operations overlap with the preset time period, and the statistics obtain that the number of times the application a runs in the foreground of the mobile phone within the preset time period up to the current moment is 4.
  • the operation time periods of the first operation, the second operation and the fourth operation are included in the preset time period, while the operation time period of the third operation partially overlaps with the preset time period ( 14:00-14:10 overlap), then the running time of the application a up to the current moment and within the preset time period in the foreground is 10 minutes for the first running, 30 minutes for the second running, and 30 minutes for the third running.
  • the preset time period may be any period of time during which the user needs to be controlled to use the mobile phone application.
  • the preset time periods are one day, one week, weekdays, 8:00-11:00 and 14:00-18:00 on weekdays, and so on.
  • the preset time period may be a fixed time period preset in the mobile phone, or the preset time period may be the time period when the mobile phone receives user input, or the preset time period may also be the mobile phone according to the big data and/or the time period. Or the time period obtained by analyzing the usage habits of the user, etc., which are not specifically limited in this embodiment of the present application.
  • the "use timeout" in this article includes the current moment, the running duration and/or the number of times of the corresponding application in the foreground of the mobile phone within the preset time period exceeds the preset threshold, and the use of non-timeout includes the expiration date.
  • the running duration and/or running times of the corresponding application in the foreground of the mobile phone at the current moment and within the preset time period does not exceed the preset threshold.
  • the operation records and application types of multiple applications obtained by the above statistics in S301 can be used to identify applications in the mobile phone that need to be controlled for use. It should be noted that S301 is continuously executed, and there is no absolute sequential sequence with S302-S305 below. For example, in the process of executing S302-S305 below, real-time or periodic statistical operation records can be used to identify new applications that need to be controlled for use.
  • the mobile phone displays a first main interface.
  • the first main interface includes a first icon and a second icon, the first icon is the application icon of the first application, the second icon is the application icon of the second application, in the first main interface, the preset of the second icon is A preset mark is displayed at the set position, and the preset mark is used to indicate that the second application is a non-office application that uses a timeout.
  • the second application is a non-office application whose running duration and/or running times in the foreground exceeds a preset threshold
  • the first application is another application in the plurality of applications except the second application.
  • the preset position may be any position on the second icon.
  • the lock mark 404 is located at the edge position of the icon.
  • a lock mark 404 is displayed in the upper right corner of the application icon 402 of the video application and the application icon 403 of the music application, while the other application icons There is no mark in the upper right corner of the .
  • the application icon 402 of the video application and the application icon 403 of the music application are the above-mentioned second applications, and the other applications except the video application and the music application in the applications corresponding to the application icons shown in (a) in FIG. 4 are first application.
  • the user can clearly distinguish and display the first application and the second application.
  • the difference from (a) in FIG. 4 is that the first main interface 401 shown in (b) in FIG. 4 displays a lock mark 404 in the upper right corner of the application icon 405 of the browser application.
  • the user can also clearly distinguish the display of the first application and the second application.
  • the operation records and/or application types obtained by the mobile phone statistics in S301 will be continuously updated, and the updated operation records and/or application types are used to identify applications in the mobile phone that need to be controlled. Then, new applications that need to be controlled can be continuously obtained.
  • the application icon with the preset mark displayed at the preset position on the main interface of the mobile phone may also change.
  • the first main interface 401 shown in (a) in FIG. 4 displays in the upper right corner of the application icon 405 of the browser application:
  • the lock mark 404 is displayed, while the first main interface 401 shown in (a) of FIG. 4 does not display the lock mark 404 in the upper right corner of the application icon of the browser application.
  • the time in the status bar of the mobile phone is 9:00; as shown in (b) of FIG. 4 , the time in the status bar of the mobile phone is 9:30. It can be seen that in the time period from 9:00 to 9:30, the browser application changes from an application that does not need to be used to be controlled to an application that needs to be used to be controlled.
  • the specific form of the preset mark eg, the lock mark 404 in the embodiments of the present application is only exemplary, and in actual implementation, it can be replaced with any other mark with identification function.
  • replace with markers such as dots, pentagrams, etc.
  • the mobile phone may display different marks at preset positions of the first icon and the second icon to distinguish the first application and the second application.
  • the mobile phone In response to the user's first operation on the second icon, the mobile phone displays a shortcut menu of the second application on the first main interface.
  • the first operation is a long-press operation or a double-click operation.
  • the shortcut menu of the second application includes a control for triggering and setting the delay time of the second application.
  • shortcut options for native functions of the mobile phone system are displayed in the shortcut menu.
  • the shortcut menu 501 of the video application shown in (a) in FIG. 5 and the shortcut menu 502 of the email application shown in (b) in FIG. 5 there are “share” options and “application information” options. and the "Uninstall” option.
  • the shortcut menu can also display shortcut options for functions provided by the application itself or other third-party applications, and the shortcut options vary from application to application.
  • the shortcut menu 501 of the video application shown in (a) of FIG. 5 also includes the option of “search in the whole network” and the option of “offline video”, and the shortcut menu of the email application shown in (b) of FIG. 5 In 502, the two shortcut options do not exist.
  • a first control may be added to the shortcut menu of the above-mentioned second application.
  • the first control is used to trigger the mobile phone to set the delay time of the second application.
  • the delay time period is a limited time period for which the second application is allowed to continue to use.
  • the first control does not exist in the shortcut menus of all applications. That is to say, an entry for setting the delay duration is provided in the shortcut menu of the second application, so that the user can conveniently trigger the delay setting.
  • the displayed shortcut menu 603 of the video application includes a “limited time” control 604, while in FIG. 5 The first control is not included in the shortcut menu 501 shown in (a).
  • the mobile phone displays a shortcut menu of the first application on the first main interface, and the shortcut menu of the first application does not include a delay time for triggering the mobile phone to set the first application 's controls.
  • the “limited time” control will not be displayed in the pop-up shortcut menu of the email application.
  • the displayed shortcut menu of the e-mail application may be the same as the shortcut menu 502 shown in (b) of FIG. 5 , without a “limited time” control.
  • S304 The mobile phone displays a second interface in response to the user's click operation on the first control; the mobile phone receives the first delay time length set by the user on the second interface.
  • the second interface may be any interface that can provide a delay setting function. That is, the mobile phone can directly enter the delay setting interface in response to the user's click operation on the first control. In this way, the mobile phone can provide the user with a quick entry to enter the delay setting interface, without requiring the user to enter the page through cumbersome operations.
  • the delay setting function in the second interface can be provided by the second interface itself.
  • the second interface is a delay setting interface of the second application in the screen time management center.
  • the delay setting function in the second interface is provided by the delay setting window on the second interface. The following mainly describes the process of displaying the second interface and setting the delay time in detail in this way:
  • the second interface may be a main interface, and the second interface includes a delay setting window for setting the delay duration.
  • the mobile phone can receive the user's single-click operation on the "limited time" control 604 in the first main interface 601 shown in (b) of FIG. 6 .
  • the mobile phone can display the second interface 701 shown in FIG. 7 .
  • the second interface 701 is a main interface displaying a plurality of application icons, and the second interface 701 includes a delay setting window 702 .
  • the mobile phone can receive the first delay time length set by the user in the delay setting window. After the mobile phone completes the setting of the first delay time, the application interface of the second application can be directly displayed for the user to use. In this way, the mobile phone can quickly enter the second application. Or, after the mobile phone completes the setting of the first delay time, close the delay setting window, and when the mobile phone receives the user's request to use the second application (such as the use request triggered by the operation of clicking the second icon, wake up the background application The application interface of the second application is displayed only after the usage request triggered by the operation of the second application, etc.), so that it can accurately meet the usage requirements of the user.
  • the mobile phone can receive the user's operation of canceling the setting of the duration in the delay setting window, and the mobile phone closes the delay setting window on the main interface in response to the user's operation of canceling the setting of the duration in the delay setting window.
  • the mobile phone can accept that the user selects a delay time of 15 minutes in the delay setting window 702 of the second interface 701 and clicks “OK” to complete the setting of the first delay time of 15 minutes.
  • the mobile phone can receive the user's click operation on the "Cancel” button in the delay setting window 702, and the mobile phone closes the delay setting window 702 in response to the user's clicking operation on the "Cancel" button in the delay setting window 702.
  • the second interface may be an application interface of the second application, and the second interface includes a delay setting window for setting the delay time.
  • the mobile phone can receive the user's single-click operation on the "limited time" control 604 in the first main interface 601 shown in (b) of FIG. 6 .
  • the mobile phone can display the second interface 801 as shown in FIG. 8 .
  • the second interface 801 is an application interface of a video application, and a delay setting window 802 is displayed in the second interface 801 .
  • the mobile phone may receive the first delay time length set by the user in the delay setting window. After the mobile phone completes the setting of the first delay time, the mobile phone closes the delay setting window, and then the application interface can be completely displayed for the user to use.
  • the mobile phone may receive an operation performed by the user in the delay setting window to cancel the setting of the duration.
  • the mobile phone closes the delay setting window on the application interface, exits the time-limited use mode, or directly exits the application interface in response to the user's operation of canceling the setting of the duration in the delay setting window.
  • the mobile phone after receiving the user's click operation on the first control, the mobile phone enters the time-limited use mode of the second application. After the mobile phone exits the time-limited use mode, the mobile phone can run the second application in the foreground for a long time without time limit.
  • the mobile phone can accept that the user selects a delay time of 15 minutes in the delay setting window 802 of the second interface 801 shown in FIG. 8 , and clicks “OK” to complete the setting of the first delay time of 15 minutes.
  • the mobile phone can receive the user's click operation on the “Cancel” button in the delay setting window 802 of the second interface 801 shown in FIG. time setting window 802 to exit the time-limited use mode.
  • the form of the duration setting provided in the second interface shown in FIG. 7 and FIG. 8 is only an example.
  • the mobile phone may also provide a setting form in which the duration number is input by the user, or provide the setting form through “+”. "-" controls to adjust the form of the duration, etc., which are not specifically limited in this embodiment of the present application.
  • the first delay duration may be an upper limit of the running duration of a single running in the foreground. In this way, the mobile phone can accurately limit the time that the user uses the second application each time.
  • the first delay duration may also be the upper limit of the accumulated running duration running in the foreground. In this way, the mobile phone can control the duration of the user's use of the second application as a whole. This embodiment of the present application does not specifically limit this. In the embodiments of the present application, the former is mainly described.
  • the first delay duration is the upper limit of the running duration of each time the second application runs in the foreground during the remaining time of the preset time period.
  • the mobile phone sends a first prompt message.
  • the first prompt information is used to prompt that the second application has been delayed to reach the first delay time.
  • the running duration of the second application running in the foreground reaches the first delay duration
  • the first delay time is set to 15 minutes at 9:01:00, and then the video application is directly used, the first delay time will be reached when it is used at 9:14:59. Or, when you exit the video application at 9:12:00, the first delay time is not reached this time. After that, if you enter the video application again at 9:13:00, when you use it to 9:27:59, The first delay time arrives.
  • the first prompt information is displayed on the application interface used at the current moment.
  • the mobile phone displays an application interface 901 (eg, an interface for playing a video) used at the current moment, and displays first prompt information 902 on the application interface 901 .
  • the first prompt information is further displayed on the application interface displayed at the current moment, and the content of the interface changes little. In this way, the continuity of information display can be improved.
  • the first prompt is displayed on a black screen interface of the mobile phone.
  • a black screen interface 1001 is displayed, and the first prompt information 1002 is further displayed on the black screen interface 1001 .
  • the black screen interface of the mobile phone has a strong visual impact. In this way, the effect of the prompt can be enhanced.
  • the first prompt information not only includes a prompt word or logo indicating the end of the delay, but also includes historical operation records, delay prompt information and/or selection controls, wherein , and the historical operation records include but are not limited to the number of historical operations, the historical average operation time and/or the historical cumulative operation time.
  • the text in the first prompt message "The average time you use the current APP is 20 minutes" is the historical average running time, and "Whether to continue the delay" is the delay prompt information.
  • the selection controls include a first selection control and a second selection control. The first selection control is used to trigger the continued delayed use of the second application.
  • the first selection control may be the “Yes” button shown in FIG. 9 and FIG. 10 .
  • the second selection control is used to trigger the end of using the second application, for example, the second selection control may be the “No” button shown in FIG. 9 and FIG. 10 .
  • the mobile phone can further guide the user to cooperate to complete operations such as continuing the delay, exiting the use, etc., on the basis of prompting the user to end the delay, thereby better controlling the use of the second application.
  • the mobile phone can receive the user's operation on the first selection control in the above-mentioned first prompt information.
  • the mobile phone can extend the use time for the second application again, and close the second application after the extended use time is reached. For example, the mobile phone receives the user's click operation on the "Yes" button in Figure 10, delays the video application for 1 minute, and closes the video application after 1 minute.
  • the mobile phone displays a delay setting window, where the delay setting window is used to provide the user with a delay setting function.
  • the mobile phone can provide the user with an operation entry for continuing the delay after the first delay time is reached, so as to satisfy the user's requirement of continuing to use the second application.
  • the delay setting window is displayed on the application interface used at the current moment, that is, similar to the display position of the first prompt information, rather than displayed on the first main interface or the application interface after entering the application.
  • the mobile phone may receive the user's operation on the second selection control in the above-mentioned first prompt information.
  • the mobile phone closes the second application in response to the user's operation on the second selection control in the first prompt message.
  • the mobile phone can receive the user's click operation on the “No” button in the black screen interface 1001 shown in FIG. 10 .
  • the mobile phone exits the running of the video application in the foreground. In this way, the mobile phone can exit the application in response to the user's operation after reaching the first delay time, so as to achieve the effect of controlling usage.
  • the mobile phone counts the operation records and application types of multiple applications, and is used to identify the second application in the mobile phone that needs to be controlled and used, so that the second application can be intelligently identified;
  • the second application icon is distinguished on the main interface, so that the user can intuitively distinguish the application that needs to be used for control and the application that does not need to be used for control from the main interface.
  • the mobile phone in response to the user's operation on the application icon of the second application, can display a second interface that provides a time-limited setting entry for the user to set the first delay duration, without requiring complicated operations by the user to trigger the duration setting, improving the delay Ease of setup.
  • a timeout reminder service can be provided after the first delay time reaches.
  • the running records obtained by statistics in the mobile phone may change. For example, when the mobile phone executes S302 to display the first main interface, the use of the second application times out, and the use of the second application needs to be controlled. However, in a period of time before the mobile phone executes S302, the second application may not use the timeout, and it is an application that does not need to be controlled. After this period of time, the mobile phone runs the second application in the foreground in response to the user's operation, so that the use of the second application times out, the mobile phone displays the second icon including the preset mark on the above-mentioned first main interface. Specifically, as shown in FIG. 11 , before S302 shown in FIG. 3 , the method of this embodiment of the present application further includes S1101 to S1103 , and S302 in FIG. 3 further includes S1104 .
  • the mobile phone displays a second main interface, where the second main interface includes a second icon, and a preset mark is not displayed at a preset position of the second icon in the second main interface.
  • the second main interface and the first main interface are relative, and there is no absolute first main interface and second main interface.
  • the first interface is the main interface of the mobile phone after the application is identified as an application that needs to be controlled.
  • the application icon ie, the second icon
  • Preset markers are displayed.
  • the second interface is the main interface of the mobile phone before the application is identified as an application that needs to be controlled.
  • the main interface of the mobile phone shown in (a) in FIG. 4 is the second main interface
  • the main interface of the mobile phone shown in (b) in FIG. 4 is the first main interface
  • the main interface of the mobile phone shown in (a) in FIG. 4 and the main interface of the mobile phone shown in (b) in FIG. 4 are both the first main interface.
  • the mobile phone displays the application interface of the second application in response to the user's click operation on the second icon in the second main interface.
  • the second icon is an application icon of the second application.
  • the user's click operation on the second icon in the second main interface is used to trigger the mobile phone to run the second application in the foreground. Therefore, in response to the user's click operation on the second icon, the mobile phone can display the application interface of the second application.
  • a third interface is displayed, The third interface is used to prompt the second application to use a timeout.
  • the third interface may be an application interface currently being used by the second application, or a black screen interface of a mobile phone, for example, an all-black or all-white application interface.
  • the mobile phone displays third prompt information.
  • the third prompt information is used to prompt the second application to use the timeout.
  • a video application is identified as an application that needs to be controlled (that is, the video application runs until the current moment, the running duration and/or the number of times of running in the foreground within a preset time period exceeds a preset threshold), as shown in the figure, the video application is running
  • the video shown in (a) in Figure 12 is played on the foreground of the mobile phone horizontally, that is to say, the video application is running in the foreground.
  • the process shown in Figure 3 cannot be used to control the use of the video application.
  • the mobile phone executes S1103, and displays third prompt information 1202 on the video playback interface 1201 currently being used by the video application, prompting the user to use the timeout in time.
  • the video application is the second application. In this way, the mobile phone can prompt the user to use a timeout in time after being identified as an application that needs to be controlled when the application is running in the foreground.
  • the mobile phone needs to identify whether the second application is an application that needs to be controlled and used, that is, identify whether the running duration and/or the number of times the second application runs in the foreground within a preset time period as of the current moment exceeds a preset threshold.
  • the application type in order to reduce the amount of data calculation in the identification process, can be identified first, and then it is detected whether the running duration and/or the running times of the corresponding application running in the foreground within the preset time period up to the current moment exceeds the preset time period. Set the threshold.
  • the mobile phone identifies the application type of each application in the multiple applications, wherein the application types include office applications and non-office applications, and counts each non-office application among the multiple applications installed on the mobile phone within the preset time period In the running duration and/or running times of the foreground, if the first non-office application in the plurality of applications expires at the current moment, the running duration and/or running times of the foreground running exceeds the preset threshold within the preset time period , then it is determined that the first non-office application is the second application, and the first non-office application is any one of the multiple applications.
  • the application types include office applications and non-office applications
  • the detection can only be carried out for the running duration or the running times.
  • the threshold is set, the second application is determined.
  • the detection may also be performed on both the running duration and the running times, and the second application is determined only when both of them exceed the corresponding preset thresholds. That is, the running duration and/or the running times exceed the preset threshold, including: the running duration exceeds the preset duration threshold, and/or the running times exceeds the preset threshold.
  • the mobile phone first identifies the application type, and then detects it in combination with the number of runs and the running time. Finally, non-office applications that are frequently used and have a long use time are determined as required. Control which apps are used.
  • FIG. 13 exemplarily illustrates the process of identifying an application that needs to be controlled for use in this specific implementation manner. Wherein, the application that needs to be controlled and used is identified and obtained according to the operation record and the application type. As shown in FIG. 13 , the identification process of S1103 includes S1301-S1304.
  • the whitelist includes application identifiers of one or more office applications. If the application is not an office application, it is not a whitelisted application.
  • S1302 is executed; if the application is a whitelisted application, there is no need to restrict its use, and the identification of the current application ends.
  • S1303 is performed; if the preset number of times threshold is not exceeded, S1302 is repeatedly performed until the preset number of times threshold is exceeded, or until the preset time period ends. Wherein, if the preset number of times threshold has not been exceeded at the end of the preset time period, the identification of the current application ends.
  • the applications that need to be controlled for use are identified in combination with the running duration and the number of runs, and applications that are scattered and occupy the user's time for a long time are determined as the applications that need to be controlled for use.
  • the mobile phone can control the use of such applications in the future, and further improve the pertinence of restrictions.
  • the mobile phone obtains the application type of each application in the multiple applications from the cloud server, and then identifies and obtains the second application according to the operation record and the application type obtained from the cloud server, wherein,
  • the cloud server is the backend server of the application market.
  • the electronic device obtains the local application from the mobile phone.
  • the application type of the fourth application is further obtained from the cloud server, where the fourth application is any one of the multiple applications.
  • the mobile phone uses the cloud server to improve the application type and improve the accuracy of the recognition result.
  • the mobile phone displays the first main interface in response to the second operation of the user, and the second operation is used to trigger the mobile phone to run the second application in the background and display the main interface of the mobile phone.
  • the mobile phone can receive the user's click operation on the "stop using” button in the third prompt message 1202 in the application interface 1201 shown in (a) of FIG. 12 .
  • the mobile phone closes the running of the video application in the foreground, and the mobile phone displays the first main interface at this time.
  • S303-S305 can be used to implement the restriction on the use of the second application.
  • the mobile phone for an application identified as requiring controlled use during foreground running, the mobile phone, after identifying it as an application requiring controlled use, prompts the user to use the timeout on the application interface, improving the timeliness of controlled use.
  • the third interface in S1103 includes a delay setting window for setting the delay duration.
  • the mobile phone receives the second delay time set by the user in the delay setting window in the third interface; when the second delay time reaches the mobile phone, the mobile phone sends out second prompt information, and the second prompt information is used to prompt the second application Delayed use reaches the second delay time.
  • the mobile phone receives the user's click operation on the "continue to use” button in the third prompt information 1202 in the application interface 1201 shown in (a) of FIG. 12 .
  • the mobile phone can display the delay setting window 1203 shown in (b) of FIG. length of time.
  • the mobile phone receives the user's click operation on the "OK" control in the delay setting window 1203, the setting of the second delay time is completed.
  • the mobile phone sends out a second prompt message.
  • the specific display of the second prompt message please refer to FIG. 9 and FIG. 10 . The relevant description of the prompt information will not be repeated here.
  • the mobile phone when the mobile phone detects that the user triggers the use of the second application by clicking on the second icon , the mobile phone performs a usage dissuasion action on the user.
  • the mobile phone may receive the user's single-click operation on the application icon 402 of the video application in the main interface shown in (a) of FIG. 4 .
  • the mobile phone performs a usage discouragement operation for the user.
  • the process of triggering use dissuasion in response to the user's click operation on the second icon includes S1401 - 1403 .
  • the mobile phone In response to a user's click operation on the second icon, the mobile phone displays an application interface of the second application, where the application interface includes fourth prompt information, where the fourth prompt information is used to prompt the use of the second application to time out.
  • fourth prompt information is also displayed in the application interface, so as to discourage the user from stopping using the second application before using the second application.
  • fourth prompt information 1502 is displayed on the application interface 1501 , and the fourth prompt information 1502 includes the use of selection controls “Yes” and “No” for the user to trigger the selection of whether to continue using the second prompt application.
  • the mobile phone displays a delay setting window in response to a third operation performed by the user on the fourth prompt information, wherein the third operation is used to trigger continued use of the second application.
  • the mobile phone receives the user's click operation on the "Yes” button on the fourth prompt information 1502 in the application interface 1501 shown in FIG. 15, and the mobile phone responds to the user's click operation on the "Yes” button on the third prompt information 1502,
  • An application interface 801 as shown in FIG. 8 is displayed, and the application interface 801 includes a delay setting window 802 .
  • the mobile phone receives the third delay time set by the user in the delay setting window, and when the third delay time reaches the mobile phone, the mobile phone sends fifth prompt information, and the fifth prompt information is used to prompt the end of the delay time.
  • S1401-S1403 can be used independently after the second application is determined and the first main interface is displayed. Alternatively, it can also be used in combination with the control method shown in FIG. 3 . In the combined use method, S1404 is also included:
  • the mobile phone After the mobile phone receives the user's operation of exiting the second application, the mobile phone closes the running of the second application in the foreground. For example, the mobile phone closes the video application after receiving the user's click operation on the “No” button in the first prompt message 1002 in the mobile phone black screen interface 1001 shown in FIG. 10 . Or, after the mobile phone automatically triggers the closing condition of the second application, the operation of the second application in the foreground is closed. For example, when the mobile phone receives the user's click operation on the "Yes" button in the first prompt message 1002 in the mobile phone black screen interface 1001 shown in FIG. 10, and reaches a preset delay time (for example, 1 minute), it automatically triggers the shutdown video application.
  • a preset delay time for example, 1 minute
  • S1401-S1404 are executed between S302-S303. Specifically, referring to FIG. 14 , for any identified second application, when the mobile phone receives the user's first click operation on the application icon of the second application, S1401-S1404 are executed to discourage the user from using (including setting a third Delay time), and after exiting the foreground operation, the first main interface is displayed. Then, after receiving the user's click operation on the application icon of the second application, the mobile phone does not guide the user to set the third delay time. In this scenario, the mobile phone can modify the delay duration by executing S303-S305, that is, modify the third delay duration to the first delay duration, and control the user's response to the second application according to the modified first delay duration. use.
  • the mobile phone in response to the user's click operation on the application icon of the second application, the mobile phone does not directly provide the application interface for the user to use, but triggers a dissuasion for the user to use the second application, and more actively guides the user to give up the use of the second application. Or use the second app for a limited time.
  • the display of the shortcut menu is described by directly displaying the shortcut menu on the main interface of the mobile phone.
  • the shortcut menu of the second application is directly displayed on the first main interface 601 .
  • the embodiments of the present application are not limited thereto.
  • the mobile phone in response to the user's long-press or double-click operation on the application icon, the mobile phone overlays and displays a layer with a preset transparency value on the main interface of the mobile phone, and further displays a third layer on the layer.
  • the third application is an application operated by the long-press or double-click operation. That is, the shortcut menu displayed on the main interface of the phone is overlaid on a layer with a preset transparency value.
  • the mobile phone displays the shortcut menu of the second application on the first main interface in response to the user's first operation on the second icon, including: the mobile phone responds to the user's first operation on the second icon.
  • the operation is to overlay and display a layer with a preset transparency value on the first main interface, and further display an application icon of the second application and a shortcut menu of the second application on the layer.
  • the mobile phone in response to the user's long-press operation on the application icon of the video application, the mobile phone overlays and displays a layer 1601 with a preset transparency value on the first main interface of the mobile phone, and displays the layer 1601 on the first main interface of the mobile phone.
  • An application icon 1602, a lock mark 1603 and a shortcut menu 1604 of the video application are displayed.
  • an electronic device which may include: the above-mentioned display screen (eg, a touch screen), a memory, and one or more processors.
  • the display screen, memory and processor are coupled.
  • the memory is used to store computer program code comprising computer instructions.
  • the processor executes the computer instructions, the electronic device can execute various functions or steps executed by the mobile phone in the foregoing method embodiments.
  • the structure of the electronic device reference may be made to the structure of the electronic device 200 shown in FIG. 2 .
  • the chip system 1700 includes at least one processor 1701 and at least one interface circuit 1702 .
  • the processor 1701 and the interface circuit 1702 may be interconnected by wires.
  • the interface circuit 1702 may be used to receive signals from other devices, such as the memory of an electronic device.
  • the interface circuit 1702 may be used to send signals to other devices (eg, the processor 1701).
  • the interface circuit 1702 can read the instructions stored in the memory and send the instructions to the processor 1701 .
  • the electronic device can be caused to perform the various steps in the above-mentioned embodiments.
  • the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
  • Embodiments of the present application further provide a computer storage medium, where the computer storage medium includes computer instructions, when the computer instructions are executed on the above-mentioned electronic device, the electronic device is made to perform various functions or steps performed by the mobile phone in the above-mentioned method embodiments .
  • Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, enables the computer to perform various functions or steps performed by the mobile phone in the above method embodiments.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Resources & Organizations (AREA)
  • Computer Hardware Design (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Educational Administration (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

一种控制应用程序限时使用的方法及电子设备,涉及终端技术领域,可以针对单个需要控制使用的应用,便捷的触发设置延时时长。针对性强,无需用户执行复杂的操作。电子设备显示第一主界面,第一主界面包括第一应用的第一图标和第二应用的第二图标,第二图标的预设位置处显示有预设标记;第一应用为无需控制使用的应用,第二应用为需要控制使用的应用;响应于对第二图标的第一操作,在第一主界面显示第二应用的快捷菜单,该快捷菜单中包括第一控件;响应于对第一控件的点击操作,显示第二界面;接收用户在第二界面设置的第一延时时长,在第一延时时长到达时,发出第一提示信息,用于提示第二应用已延时使用达到第一延时时长。

Description

一种控制应用程序限时使用的方法及电子设备
本申请要求于2021年3月31日提交国家知识产权局、申请号为202110349196.5、发明名称为“一种控制应用程序限时使用的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种控制应用程序限时使用的方法及电子设备。
背景技术
随着手机等电子设备的发展,越来越多的应用程序(application,APP)占用了用户大量的碎片时间。例如,聊天APP以及游戏APP等娱乐APP的占用情况尤其突出。
现有技术中,通常通过限制整机的使用时长,来控制这些APP对用户时间的占用。这种控制方式的限制粒度较大,不利于单个APP的针对性控制。
或者,在一些其他的方式中,也可以针对单个APP进行控制。例如,电子设备可以接收用户在应用管理中心对一个或多个应用的设置操作,以限制用户使用该一个或多个应用。又例如,电子设备可以接收用户在单个APP的设置中心的设置操作,以限制用户使用该应用。如上述应用管理中心或单个APP的设置中心可提供青少年模式供用户选择,以限制用户使用对应应用。但是,这种控制方式针对各个APP是无差别的,并且需要用户执行复杂的设置操作才能实现。
综上所述,现有的控制方式针对性不强,控制效果有待提高;并且需要复杂的用户操作,增加了控制操作的难度。
发明内容
本申请实施例提供一种控制应用程序限时使用的方法及电子设备,可以简化在电子设备中触发控制应用限时使用的用户操作,为用户提供智能、便捷的控制体验。
第一方面,本申请实施例提供一种控制应用程序限时使用的方法,该方法可以应用于电子设备,该电子设备中安装有多个应用。其中,电子设备可显示第一主界面,第一主界面包括第一图标和第二图标,第一图标是第一应用的应用图标,第二图标是第二应用的应用图标。在第一主界面中第二图标的预设位置处显示有预设标记,该预设标记用于指示第二应用使用超时。也就是说,电子设备可在第一主界面中区别出使用超时(即需要控制使用)的应用。电子设备响应于用户对第二图标的第一操作,在第一主界面显示第二应用的快捷菜单,第一操作是长按操作或双击操作。与常规的快捷菜单不同的是,该第二应用的快捷菜单中包括第一控件,第一控件用于触发电子设备设置第二应用的延时时长。电子设备响应于用户对第一控件的点击操作,电子设备显示第二界面;电子设备接收用户在第二界面设置的第一延时时长。简言之,电子设备可利用快捷菜单中的第一控件向用户提供限时设置功能。电子设备在第一延时时长 到达时,发出第一提示信息,第一提示信息用于提示第二应用已延时使用达到第一延时时长。
其中,第二应用是电子设备根据多个应用的运行记录和应用类型,从多个应用中确定出的;应用类型包括办公应用和非办公应用,运行记录包括截止当前时刻、预设时间段内对应应用在电子设备的前台的运行时长和/或运行次数;第二应用为在前台的运行时长和/或运行次数超过预设阈值的非办公应用;第一应用是多个应用中除第二应用之外的其他应用。也就是说,电子设备可智能的识别出需要控制使用的第二应用和无需控制使用的第一应用。
综上所述,采用本申请实施例的方法,电子设备可智能的识别出需要控制使用的应用,并使用户可直观的从电子设备的主界面上区分出该需要控制使用的应用。第二应用的快捷菜单中包括第一控件,该第一控件可以便捷的为用户提供针对该需要控制使用的应用的延时时长的设置功能,实现针对性设置的同时,可以降低用户设置延时时长的难度。在设置的延时时长到达时,为用户提供智能的超时提醒服务。
在第一方面的一种可能的设计方式中,上述第二界面是电子设备的主界面,第二界面包括用于设置延时时长的延时设置窗口;或者,上述第二界面是第二应用的应用界面,第二界面包括用于设置延时时长的延时设置窗口。其中,上述电子设备接收用户在第二界面设置的第一延时时长,可以包括:电子设备接收用户在延时设置窗口设置的第一延时时长。
也就是说,采用本申请实施例的方法,可以在用户触发第一控件后,直接提供延时设置窗口供用户设置延时时长,提高触发时长设置的便捷性。
在第一方面的另一种可能的设计方式中,在任一应用被识别为需要控制使用的应用之前的一段时间内,该第二应用可能并未使用超时,是不需要控制使用的应用。针对这种情况,在电子设备显示第一主界面之前,该方法还包括:电子设备显示第二主界面,第二主界面包括第二图标,在第二主界面中第二图标的预设位置处未显示预设标记;电子设备响应于用户对第二主界面中第二图标的点击操作,显示第二应用的应用界面;电子设备在前台运行第二应用的过程中,第二应用截止当前时刻、在预设时间段内在前台运行的运行时长和/或运行次数超过预设阈值,则显示第三界面,第三界面用于提示第二应用使用超时。
也就是说,针对任一应用,在该应用被识别为需要控制使用的应用之前,响应于用户对该应用的点击操作,会在前台运行该应用。在前台运行的过程中,若识别出该应用为需要控制使用的应用,可以提示用户该应用使用超时。如此,对于在前台运行过程中识别为需要控制使用的应用,在将其识别为需要控制使用的应用后,在应用界面上提示用户使用超时,提高控制使用的及时性。
而后,上述电子设备显示第一主界面,包括:电子设备响应于用户的第二操作,电子设备显示第一主界面,第二操作用于触发电子设备在后台运行第二应用,并显示电子设备的主界面。
也就是说,在触发电子设备在后台运行第二应用后,显示第一主界面,后续则可通过快捷菜单中的第一控件来实现延时时长的设置以及实现控制使用。
在第一方面的另一种可能的设计方式中,上述第三界面包括用于设置延时时长的 延时设置窗口;上述方法还包括:电子设备可接收用户在第三界面中延时设置窗口设置的第二延时时长;电子设备在第二延时时长到达时,发出第二提示信息,第二提示信息用于提示第二应用已延时使用达到第二延时时长。
也就是说,采用本申请实施例的方法,针对在前台运行过程中被识别为需要控制使用的应用的情况,也可以为用户提供延时设置功能,进而提高限时控制的及时性。
在第一方面的另一种可能的设计方式中,上述电子设备根据多个应用的使用记录和应用类型,从多个应用中确定出第二应用,包括:电子设备从云服务器获取多个应用中每个应用的应用类型,该应用类型包括办公应用和非办公应用;电子设备统计预设时间段内,多个应用中每个非办公应用在前台的运行时长和/或运行次数;若多个应用中的第一非办公应用截止当前时刻,在预设时间段内在前台运行的运行时长和/或运行次数超过预设阈值,确定第一非办公应用是第二应用,第一非办公应用是多个应用中的任一个非办公应用。
也就是说,采用本申请实施例的方法,结合应用的使用记录和应用类型,将多个应用中,截止当前时刻,在预设时间段内在前台运行的运行时长和/或运行次数超过预设阈值的非办公应用确定为第二应用,使得确定的第二应用为使用超时的非办公应用,后续则可针对该种第二应用实现控制使用,进一步提高控制使用的针对性。
在第一方面的另一种可能的设计方式中,上述运行时长和/或运行次数超过预设阈值,包括:运行时长超过预设时长阈值,和/或,运行次数超过预设次数阈值。
也就是说,采用本申请实施例的方法,可以利用预设时长阈值,以及预设次数阈值中的一者或两者来衡量“使用超时”,以准确确定出使用超时的应用。
在第一方面的另一种可能的设计方式中,电子设备也可响应于用户对第一图标的第一操作,而在第一主界面显示第一应用的快捷菜单。但是,与电子设备响应用户对第二图标的第一操作不同的是:该第一应用的快捷菜单中不包括用于触发电子设备设置第一应用的延时时长的控件。
也就是说,采用本申请实施例的方法,同样是响应于用户对应用图标的长按操作或双击操作,但在第一应用的快捷菜单中不包括用于触发电子设备设置第一应用的延时时长的控件,则可以避免用户操作该用于触发电子设备设置第一应用的延时时长的控件,来触发对该第一应用的延时时长的设置。如此,则可以使得对应用的控制使用符合应用实际的运行记录和应用类型,实现控制使用的差异化。
第二方面,本申请实施例还提供一种电子设备,所述电子设备中安装有多个应用,所述电子设备包括显示屏、存储器和一个或多个处理器。所述显示屏、所述存储器和所述处理器耦合。所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:显示第一主界面,所述第一主界面包括第一图标和第二图标,所述第一图标是第一应用的应用图标,所述第二图标是第二应用的应用图标,在所述第一主界面中所述第二图标的预设位置处显示有预设标记,所述预设标记用于指示所述第二应用使用超时;响应于用户对所述第二图标的第一操作,在所述第一主界面显示所述第二应用的快捷菜单,所述第二应用的快捷菜单中包括第一控件,所述第一控件用于触发所述电子设备设置所述第二应用的延时时长,所述第一操作是长按操作或双击操作;响应于用户 对所述第一控件的点击操作,显示第二界面;接收用户在所述第二界面设置的第一延时时长;在所述第一延时时长到达时,发出第一提示信息,所述第一提示信息用于提示所述第二应用已延时使用达到所述第一延时时长。
其中,所述第二应用是所述处理器根据所述多个应用的运行记录和应用类型,从所述多个应用中确定出的;所述应用类型包括办公应用和非办公应用,所述运行记录包括截止当前时刻、预设时间段内对应应用在所述电子设备的前台的运行时长和/或运行次数;所述第二应用为在所述前台的运行时长和/或运行次数超过预设阈值的非办公应用;所述第一应用是所述多个应用中除所述第二应用之外的其他应用。
在第二方面的另一种可能的设计方式中,所述第二界面是所述电子设备的主界面,所述第二界面包括用于设置延时时长的延时设置窗口。或者,所述第二界面是所述第二应用的应用界面,所述第二界面包括用于设置延时时长的延时设置窗口。
当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:接收用户在所述延时设置窗口设置的所述第一延时时长。
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:在显示所述第一主界面之前,显示第二主界面,所述第二主界面包括所述第二图标,在所述第二主界面中所述第二图标的预设位置处未显示所述预设标记;响应于用户对所述第二主界面中第二图标的点击操作,显示所述第二应用的应用界面;
在所述前台运行所述第二应用的过程中,所述第二应用截止当前时刻、在所述预设时间段内在所述前台运行的运行时长和/或运行次数超过所述预设阈值,则显示第三界面,所述第三界面用于提示所述第二应用使用超时。
当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:响应于用户的第二操作,所述电子设备显示所述第一主界面,所述第二操作用于触发所述电子设备在后台运行所述第二应用,并显示所述电子设备的主界面。
在第二方面的另一种可能的设计方式中,所述第三界面包括用于设置延时时长的延时设置窗口。当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:接收用户在所述第三界面中所述延时设置窗口设置的第二延时时长;在所述第二延时时长到达时,发出第二提示信息,所述第二提示信息用于提示所述第二应用已延时使用达到所述第二延时时长。
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:从云服务器获取所述多个应用中每个应用的应用类型,所述应用类型包括办公应用和非办公应用;统计所述预设时间段内,所述多个应用中每个非办公应用在所述前台的运行时长和/或运行次数;若所述多个应用中的第一非办公应用截止当前时刻,在所述预设时间段内在所述前台运行的运行时长和/或运行次数超过所述预设阈值,确定所述第一非办公应用是所述第二应用,所述第一非办公应用是所述多个应用中的任一个非办公应用。
在第二方面的另一种可能的设计方式中,所述运行时长和/或运行次数超过所述预设阈值,包括:所述运行时长超过预设时长阈值,和/或,所述运行次数超过预设次数阈值。
在第二方面的另一种可能的设计方式中,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:在显示所述第一主界面之后,响应于用户对所述第一图标的所述第一操作,在所述第一主界面显示所述第一应用的快捷菜单,所述第一应用的快捷菜单中不包括用于触发所述电子设备设置所述第一应用的延时时长的控件。
第三方面,本申请实施例提供一种芯片系统,该芯片系统应用于包括显示屏和存储器的电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第四方面,本申请提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。
第五方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。
可以理解地,上述提供的第二方面所述的电子设备,第三方面所述的芯片系统,第四方面所述的计算机存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种手机的主界面示意图;
图2为本申请实施例提供的一种手机的硬件结构示意图;
图3为本申请实施例提供的一种控制应用程序限时使用的方法流程图;
图4为本申请实施例提供的另一种手机的主界面示意图;
图5为本申请实施例提供的另一种手机的主界面示意图;
图6为本申请实施例提供的另一种手机的主界面示意图;
图7为本申请实施例提供的一种延时时长设置界面示意图;
图8为本申请实施例提供的另一种延时时长设置界面示意图;
图9为本申请实施例提供的一种延时时长到达的提醒界面示意图;
图10为本申请实施例提供的另一种延时时长到达的提醒界面示意图;
图11为本申请实施例提供的另一种控制应用程序限时使用的方法流程图;
图12为本申请实施例提供的一种手机的显示界面示意图;
图13为本申请实施例提供的一种识别需要控制使用的应用的方法流程图;
图14为本申请实施例提供的另一种控制应用程序限时使用的方法流程图;
图15为本申请实施例提供的另一种手机的显示界面示意图;
图16为本申请实施例提供的另一种手机的显示界面示意图;
图17为本申请实施例提供的一种芯片系统的结构示意图。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对 重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
下面将结合附图对本实施例的实施方式进行详细描述。为了便于理解,本申请实施例以手机为例,来详细说明常规的应用程序的控制过程存在的技术问题:
在常规的控制方式中,手机无法智能识别出需要控制使用的应用(如使用超时的非办公应用)和无需控制使用的应用(如办公应用和使用未超时的非办公应用),相应的,手机更不能在主界面上区别呈现需要控制使用和无需控制使用的应用。例如,请参考图1,其示出手机的主界面101,该主界面101中包括多个应用图标。该多个应用图标对应的应用可以包括需要控制使用和无需控制使用的应用。但是,手机并没有区别显示这两种应用,从而用户无法从主界面区分出这两种应用。
并且,在常规的控制方式中,手机只能响应用户在应用管理中心对一个或多个应用的设置操作,或者响应用户在单个APP的设置中心的设置操作,控制用户对相应APP的使用。这种控制方式,需要复杂的用户操作,增加了控制操作的难度。
本申请实施例提供一种应用程序的控制方法,该方法可以应用于安装有多个应用的电子设备。电子设备可以在主界面区别显示上述需要控制使用的应用(如第二应用)和无需控制使用的应用(如第一应用)的应用图标。如此,用户便可以直观的从主界面上区分出需要控制使用的应用和无需控制使用的应用。
并且,电子设备响应于用户对需要控制使用的应用(如第二应用)的长按操作或双击操作,电子设备可显示包括第一控件的快捷菜单。该第一控件用于触发电子设备设置该需要控制使用的应用的延时时长。该第一控件可以便捷的为用户提供设置该需要控制使用的应用的延时时长的功能,可以降低用户设置延时时长的难度。
最后,电子设备可以在延时时长到达时,提醒用户该需要控制使用的应用的延时使用结束,为用户提供智能的超时提醒服务。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等包括上述折叠屏的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
下面将结合附图对本申请实施例的实施方式进行详细描述。
请参考图2,为本申请实施例提供的一种电子设备200的结构示意图。如图2所示,电子设备可以包括处理器210,外部存储器接口220,内部存储器221,通用串行总线(universal serial bus,USB)接口230,充电管理模块240,电源管理模块241,电池242,天线1,天线2,移动通信模块250,无线通信模块260,音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,传感器模块280,按键290,马达291,指示器292,摄像头293,显示屏294,以及用户标识模块(subscriber identification module,SIM)卡接口295等。
其中,传感器模块280可以包括压力传感器280A,陀螺仪传感器280B,气压传感器280C,磁传感器280D,加速度传感器280E,距离传感器280F,接近光传感器 280G,指纹传感器280H,温度传感器280J,触摸传感器280K,环境光传感器280L,骨传导传感器280M和转轴传感器280N等。
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块240用于从充电器接收充电输入。电源管理模块241用于连接电池242,充电管理模块240与处理器210。电源管理模块241接收电池242和/或充电管理模块240的输入,为处理器210,内部存储器221,外部存储器,显示屏294,摄像头293,和无线通信模块260等供电。
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块250,无线通信模块260,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块250可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块250可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。
无线通信模块260可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
电子设备通过GPU,显示屏294,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏294和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器210可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏294用于显示图像,视频等。例如,在本申请实施例中,该显示屏294用于显示应用图标、快捷菜单选项以及延时设置窗口等内容,以引导用户设置延时时长。显示屏294包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
电子设备可以通过ISP,摄像头293,视频编解码器,GPU,显示屏294以及应用处理器等实现拍摄功能。ISP用于处理摄像头293反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头293中。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器210通过运行存储在内部存储器221的指令,从而执行电子设备的各种功能应用以及数据处理。例如,在本申请实施例中,处理器210可以通过执行存储在内部存储器221中的指令,响应于用户对应用图标的操作,显示第二应用的快捷菜单,以引导用户设置延时时长,进而控制应用的使用。
电子设备可以通过音频模块270,扬声器270A,受话器270B,麦克风270C,耳机接口270D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
触摸传感器280K,也称“触控面板”。触摸传感器280K可以设置于显示屏294,由触摸传感器280K与显示屏294组成触摸屏,也称“触控屏”。触摸传感器280K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏294提供与触摸操作相关的视觉输出。例如,在本申请实施例中,触摸传感器280K用于检测用户对应用图标的长按或双击操作,检测用户对延时设置控件的单击操作,以及检测用户设置延时时长等操作。在另一些实施例中,触摸传感器280K也可以设置于电子设备的表面,与显示屏294所处的位置不同。
按键290包括开机键,音量键等。马达291可以产生振动提示。指示器292可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口295用于连接SIM卡。SIM卡可以通过插入SIM卡接口295,或从SIM卡接口295拔出,实现和电子设备的接触和分离。电子设备可以支持1个或N个SIM卡接口,N为大于1的正整数。
以下实施例中的方法均可以在具有上述硬件结构的电子设备200中实现,下面将以上述电子设备200是手机为例,对本申请实施例的方法进行说明。
本申请实施例提供一种应用程序的控制方法,该方法可以应用于安装有多个应用的手机。示例性的,如图3所示,该应用程序的控制方法包括S301-S305。
S301、手机统计多个应用的运行记录和应用类型,该运行记录和应用类型用于识别手机中需要控制使用的应用。
其中,应用类型包括办公应用和非办公应用。对于办公应用,手机无需控制其使用。例如,电子邮箱应用为办公应用,则无需控制其使用。并且,对于非办公应用,手机有针对性控制使用超时的非办公应用,而对于其中使用未超时的非办公应用则无需控制。
其中,运行记录包括截止当前时刻、预设时间段内对应应用在该手机的前台的运行时长和/或运行次数。运行时长指累计时长,运行次数指累计次数。应用在手机的前台的任一次运行中,若该次运行的运行时间段与预设时间段存在重叠,则手机将该运行时间段与预设时间段重叠的时长计入运行时长中,以及将运行次数加一。其中,存在重叠的情况有如下两种:情况一,运行时间段包含在预设时间段之内;情况二,运行时间段与预设时间段部分重叠。运行时间段是指一次运行中,运行起止时间点之间的时间段。
例如,假设当前时刻为14:30,预设时间段为8:00-11:00,14:00-18:00,应用a的运行记录为:8:30-8:40第一次运行,9:20-9:50第二次运行,13:30-14:10第三次运行,以及14:15-14:20第四次运行。其中,该四次运行的运行时间段均与预设时间段存在重叠,则统计得到该应用a截止当前时刻、在预设时间段内在手机的前台的运行次数为4。该四次运行中,第一次运行、第二次运行以及第四次运行的运行时间段被包含在预设时间段内,而第三次运行的运行时间段与预设时间段部分重叠(在14:00-14:10重叠),则该应用a截止当前时刻、在预设时间段内在前台的运行时长是第一次运行的10分钟,第二次运行的30分钟,第三次运行中与预设时间段重叠的10分钟,以及第四次运行的5分钟的累计时长,该累计时长为10+30+10+5=55分钟。
可以理解的是,该预设时间段可以为任意一段需要控制用户使用手机应用的时间段。例如,预设时间段为一天、一周、工作日、工作日的8:00-11:00和14:00-18:00等等。并且,该预设时间段可以是预置在手机中的固定时间段,或者,预设时间段可以是手机接收用户输入的时间段,或者,预设时间段也可以是手机根据大数据和/或用户的使用习惯分析得到的时间段等,本申请实施例对此不作具体限定。
至此,需要强调的是,本文中的“使用超时”包括截止当前时刻、预设时间段内对应应用在该手机的前台的运行时长和/或运行次数超过预设阈值,以及使用未超时包括截止当前时刻、预设时间段内对应应用在该手机的前台的运行时长和/或运行次数未超过预设阈值。
上述S301统计得到的多个应用的运行记录和应用类型,可以用于识别手机中需要控制使用的应用。需要说明的是,S301是在持续执行的,其与下文中的S302-S305并不存在绝对的先后时序。例如,可在执行下文中S302-S305的过程中,实时或者周期性的统计运行记录,用于识别得到新的需要控制使用的应用。
S302、手机显示第一主界面。该第一主界面包括第一图标和第二图标,该第一图标是第一应用的应用图标,该第二图标是第二应用的应用图标,在第一主界面中该第二图标的预设位置处显示有预设标记,该预设标记用于指示第二应用为使用超时的非办公应用。
其中,第二应用为在前台的运行时长和/或运行次数超过预设阈值的非办公应用,第一应用是多个应用中除该第二应用之外的其他应用。
其中,预设位置可为第二图标上的任意位置。例如,如图4中的(a)所示,加锁标记404位于图标的边缘位置。
在一种实现方式中,在第一主界面中,仅在第二图标的预设位置处显示有预设标记,而在第一图标的预设位置则不显示任何标记,下文中主要以这种方式来说明。
例如,如图4中的(a)所示,手机的第一主界面401中,视频应用的应用图标402以及音乐应用的应用图标403的右上角均显示有加锁标记404,而其余应用图标的右上角无任何标记。该视频应用的应用图标402以及音乐应用的应用图标403是上述第二应用,而图4中的(a)所示的应用图标对应的应用中除视频应用和音乐应用之外的其他应用则为第一应用。如此,相较于图1中的主界面101,该图4中的(a)所示的第一主界面401中,用户可以明显区分显示第一应用和第二应用。
又如,与图4中的(a)不同的是:图4中的(b)所示的第一主界面401在浏览器应用的应用图标405的右上角显示有加锁标记404。同样的,相较于图1中的主界面101,该图4中的(b)所示的第一主界面401中,用户也可以明显区分显示第一应用和第二应用。
需要说明的是,随着时间的推移,S301中手机统计得到的运行记录和/或应用类型会不断发生更新,将更新的运行记录和/或应用类型用于识别手机中需要控制使用的应用,则可以不断得到新的需要控制使用的应用。相应的,手机的主界面上预设位置处显示有预设标记的应用图标也可能会发生变化。
例如,与图4中的(a)示出的第一主界面401不同的是:图4中的(b)示出的第一主界面401在浏览器应用的应用图标405的右上角显示有加锁标记404,而图4中的(a)示出的第一主界面401在浏览器应用的应用图标的右上角未显示有加锁标记404。如图4中的(a)所示,手机的状态栏的时间为9:00;如图4中的(b)所示,手机状态栏的时间为9:30。由此可见,在9:00-9:30的时间段内,浏览器应用由不需要控制使用的应用变为需要控制使用的应用。
可以理解的是,本申请实施例的图中预设标记的具体形式(如加锁标记404)仅为示例性的,实际实施过程中,可以将其替换为任意具有标识作用的其它标记。例如,替换为圆点、五角星等标记。
在另一种实现方式中,手机可以在第一图标和第二图标的预设位置显示不同的标记,来区分出第一应用和第二应用。
S303、手机响应于用户对该第二图标的第一操作,在第一主界面显示该第二应用的快捷菜单。其中,第一操作是长按操作或双击操作。该第二应用的快捷菜单中包括用于触发设置第二应用的延时时长的控件。
常规情况下,快捷菜单中显示有手机系统的原生功能的快捷选项。例如,图5中的(a)所示的视频应用的快捷菜单501和图5中的(b)所示的电子邮箱应用的快捷菜单502中,都有“分享”选项、“应用信息”选项以及“卸载”选项。当然,快捷菜单中还可以显示应用自身或其他三方应用提供的功能的快捷选项,该快捷选项因应用而异。例如,图5中的(a)所示的视频应用的快捷菜单501中还包括“全网搜索”选项以及“离线视频”选项,图5中的(b)所示的电子邮箱应用的快捷菜单502中则不存在该两个快捷选项。
本申请实施例中,与上述常规情况不同的是,可以在上述第二应用的快捷菜单中增设第一控件。该第一控件用于触发手机设置第二应用的延时时长。其中,延时时长是第二应用被允许继续使用的限制时长。而常规情况中所有应用的快捷菜单中均不存在该第一控件。也就是说,在第二应用的快捷菜单中提供了设置延时时长的入口,如此,则可以供用户便捷的触发延时设置。
例如,手机响应于用户对图6中的(a)所示的视频应用的应用图标602的长按操作,所显示的视频应用的快捷菜单603中包括“限时”控件604,而图5中的(a)示出的快捷菜单501中并不包括该第一控件。
另外,手机响应于用户对第一图标的第一操作,在第一主界面显示第一应用的快捷菜单,该第一应用的快捷菜单中不包括用于触发手机设置第一应用的延时时长的控件。例如,在图6的(a)中,若手机接收到用户对电子邮箱应用的应用图标的长按操作,在弹出的该电子邮箱应用的快捷菜单中并不会显示“限时”控件。换言之,显示的该电子邮箱应用的快捷菜单可能如图5中的(b)示出的快捷菜单502一样,没有“限时”控件。
S304、手机响应于用户对该第一控件的点击操作,显示第二界面;手机接收用户在该第二界面设置的第一延时时长。
其中,第二界面可以为任意可提供延时设置功能的界面。也就是说,手机响应于用户对第一控件的点击操作,可直接进入延时设置界面。如此,手机则可以为用户提供进入延时设置界面的快捷入口,无需用户通过繁琐的操作来进入该页面。
以及,第二界面中的延时设置功能可由第二界面本身提供。例如,第二界面为屏幕时间管理中心中该第二应用的延时设置界面。或者,第二界面中的延时设置功能由第二界面上的延时设置窗口来提供,下文中主要以这种方式来详细说明显示第二界面,以及设置延时时长的过程:
在一些实施例中,第二界面可以是主界面,第二界面包括用于设置延时时长的延时设置窗口。例如,手机可以接收用户对图6中的(b)示出的第一主界面601中“限时”控件604的单击操作。响应于用户对“限时”控件604的单击操作,手机可以显示图7所示的第二界面701。此处,第二界面701是显示多个应用图标的主界面,该第二界面701包括延时设置窗口702。
其中,手机可接收用户在延时设置窗口设置的第一延时时长。在手机完成第一延时时长的设置后,可直接显示第二应用的应用界面供用户使用。如此,手机则可以快速进入第二应用。或者,在手机完成第一延时时长的设置后,关闭延时设置窗口,而在手机接收到用户对该第二应用的使用请求(如点击第二图标的操作触发的使用请求,唤醒后台的第二应用的操作触发的使用请求等)后,才显示第二应用的应用界面,如此则可以准确贴合用户的使用需求。
或者,手机可接收用户在延时设置窗口中取消设置时长的操作,手机响应于用户在延时设置窗口中取消设置时长的操作,关闭主界面上的该延时设置窗口。
例如,如图7所示,手机可接收用户在第二界面701的延时设置窗口702中选择延时时长15分钟,并点击“确定”的操作,完成15分钟第一延时时长的设置。手机可接收用户对延时设置窗口702中“取消”按钮的点击操作,手机响应于用户对延时 设置窗口702中“取消”按钮的点击操作,关闭延时设置窗口702。
在另一些实施例中,第二界面可以是第二应用的应用界面,第二界面包括用于设置延时时长的延时设置窗口。例如,手机可以接收用户对图6中的(b)示出的第一主界面601中“限时”控件604的单击操作。响应于用户对“限时”控件604的单击操作,手机可以显示如图8所示的第二界面801。此处,第二界面801是视频应用的应用界面,该第二界面801中显示有延时设置窗口802。
其中,手机可以接收用户在延时设置窗口设置的第一延时时长。在手机完成第一延时时长的设置后,手机关闭延时设置窗口,进而可以完全显示应用界面供用户使用。
或者,手机可以接收用户在延时设置窗口执行的取消设置时长的操作。手机响应于用户在延时设置窗口执行的取消设置时长的操作,关闭应用界面上的该延时设置窗口,退出限时使用模式,或者直接退出应用界面。其中,手机在接收到用户对第一控件的点击操作后,则进入第二应用的限时使用模式。在手机退出限时使用模式之后,手机可在前台长时间运行该第二应用,不受时间限制。
例如,手机可接收用户在图8示出的第二界面801的延时设置窗口802中选择延时时长15分钟,并点击“确定”的操作,完成15分钟第一延时时长的设置。手机可接收用户对图8示出的第二界面801的延时设置窗口802中“取消”按钮的点击操作,手机响应于用户对延时设置窗口802中“取消”按钮的点击操作,关闭延时设置窗口802,退出限时使用模式。
可以理解的是,图7和图8示出的第二界面中提供的时长设置的形式仅为示例性的,实际中,手机也可以提供由用户输入时长数字的设置形式,或者提供通过“+”“-”控件来调节时长的形式等,本申请实施例对此不作具体限定。
需要说明的是,第一延时时长可以是单次在前台运行的运行时长上限。如此,手机则可以准确的限制用户每次使用第二应用的时长。或者,第一延时时长也可以是累计在前台运行的运行时长上限。如此,手机则可以从整体上控制用户使用第二应用的时长。本申请实施例对此不作具体限定。在本申请实施例中,主要以前者来说明,具体地,第一延时时长是在预设时间段的剩余时间内,第二应用每次在前台运行的运行时长上限。
S305、手机在该第一延时时长到达时,发出第一提示信息。其中,第一提示信息用于提示第二应用已延时使用达到该第一延时时长。
其中,以第一延时时长是在预设时间段的剩余时间内,第二应用每次在前台运行的运行时长上限来说,则第一延时时长到达是指,在预设时间段的剩余时间内,第二应用单次在前台运行的运行时长达到第一延时时长。
例如,9:01:00设置第一延时时长为15分钟,而后直接进入视频应用的使用,则当使用到9:14:59时,第一延时时长到达。或者,当使用到9:12:00退出视频应用,则此次使用未到达第一延时时长,此后,在9:13:00再次进入视频应用,则当使用到9:27:59时,第一延时时长到达。
在一些实施例中,该第一提示信息显示在当前时刻使用的应用界面上。例如,如图9所示,手机在该第一延时时长到达时,显示当前时刻使用的应用界面901(如播放视频的界面),并在该应用界面901上显示第一提示信息902。该方式只是在当前 时刻显示的应用界面上,进一步显示第一提示信息,界面内容变化较小。如此,则可以提高信息显示的连贯性。
在另一些实施例中,该第一提示显示在手机黑屏界面上。例如,如图10所示,手机在在该第一延时时长到达时,显示黑屏界面1001,并在黑屏界面1001上进一步显示第一提示信息1002。该手机黑屏界面具有较强的视觉冲击力。如此,则可以增强提示的效果。
在一些实施例中,为了引导用户配合完成控制使用的操作,该第一提示信息中不仅包括延时结束的提示语或标识,还包括历史运行记录、延时提示信息和/或选择控件,其中,历史运行记录包括但不限于历史运行次数、历史平均运行时长和/或历史累计运行时长。例如,如图9和图10所示,第一提示信息中的文字“您使用当前APP的平均时长为20分钟”为历史平均运行时长,“是否继续延时”为延时提示信息。选择控件包括第一选择控件和第二选择控件。第一选择控件用于触发继续延时使用第二应用,如该第一选择控件可以是图9和图10所示的“是”按钮。第二选择控件用于触发结束使用第二应用,如该第二选择控件可以是图9和图10所示的“否”按钮。采用本实施例,手机可以在提示用户延时结束的基础上,进一步引导用户配合完成继续延时、退出使用等操作,进而更好的实现对第二应用的使用控制。
其中,手机可以接收用户对上述第一提示信息中第一选择控件的操作。手机响应于用户对上述第一提示信息中第一选择控件的操作,可以再次为第二应用延长使用时长,并在延长的使用时长到达后关闭该第二应用。例如,手机接收用户对图10中“是”按钮的点击操作,为视频应用延时1分钟,1分钟到达后则关闭视频应用。或者,手机响应于用户对上述第一提示信息中第一选择控件的操作,显示延时设置窗口,该延时设置窗口用于向用户提供延时设置功能。而且,手机在再次到达延时时长后,会再次显示第一提示信息,如此重复。采用该实现方式,手机可在第一延时时长到达后,为用户提供继续延时的操作入口,满足用户继续使用第二应用的需求。
其中,关于延时设置窗口,可参见前文中图7和图8,以及相关的文字说明,此处不再赘述。唯一不同的是,该延时设置窗口显示在当前时刻使用的应用界面上,即与第一提示信息的显示位置相似,而不是显示在第一主界面或者是进入应用后的应用界面上。
或者,手机可以接收用户对上述第一提示信息中第二选择控件的操作。手机响应于用户对上述第一提示信息中第二选择控件的操作,关闭该第二应用。例如,手机可接收用户对图10示出的黑屏界面1001中“否”按钮的单击操作。手机响应于用户对黑屏界面1001中“否”按钮的单击操作,退出视频应用在前台的运行。如此,手机可以在达到第一延时时长后,响应用户的操作而退出应用,达到控制使用的效果。
综上所述,采用本申请实施例的方法,手机统计多个应用的运行记录和应用类型,用于识别手机中需要控制使用的第二应用,则可以智能识别出第二应用;在手机的主界面上对第二的应用图标区别标识,以供用户从主界面上直观的区分需要控制使用的应用和无需控制使用的应用。以及,手机响应用户对第二应用的应用图标的操作,可显示提供有限时设置入口的第二界面,供用户设置第一延时时长,无需用户复杂的操作来触发时长设置,提高了延时设置的便捷性。并且,在第一延时时长到达后,可提 供超时提醒服务。
可以理解的是,手机中统计得到的运行记录可能会发生变化。例如,手机执行S302显示第一主界面时,该第二应用使用超时,是需要控制使用的应用。但是,在手机执行S302前的一段时间内,该第二应用可能并未使用超时,是不需要控制使用的应用。在这段时间之后,手机响应于用户的操作在前台运行了第二应用,使得该第二应用使用超时,则手机在上述第一主界面显示包括预设标记的第二图标。具体的,如图11所示,在图3所示的S302之前,本申请实施例的方法还包括S1101-S1103,图3中的S302进一步包括S1104。
S1101、手机显示第二主界面,该第二主界面包括第二图标,在第二主界面中该第二图标的预设位置处未显示预设标记。
其中,第二主界面和第一主界面是相对而言的,而并不存在绝对的第一主界面和第二主界面。针对任一应用,第一界面是将该应用识别为需要控制使用的应用后,手机的主界面,在该第一主界面中,该应用的应用图标(即第二图标)的预设位置处显示有预设标记。而第二界面是将该应用识别为需要控制使用的应用之前,手机的主界面,在该第二主界面中,该应用的应用图标的预设位置处未显示有预设标记。
例如,对于浏览器应用而言,图4中的(a)示出的手机的主界面为第二主界面,图4中的(b)示出的手机的主界面为第一主界面。而对于视频应用和音乐应用而言,图4中的(a)示出的手机的主界面和图4中的(b)示出的手机的主界面均为第一主界面。
S1102、手机响应于用户对第二主界面中第二图标的点击操作,显示第二应用的应用界面。
其中,第二图标是第二应用的应用图标。用户对第二主界面中第二图标的点击操作,用于触发手机在前台运行第二应用。因此,手机响应于用户对第二图标的点击操作,可以显示第二应用的应用界面。
S1103、手机在前台运行该第二应用的过程中,若该第二应用截止当前时刻、在预设时间段内在前台运行的运行时长和/或运行次数超过预设阈值,则显示第三界面,该第三界面用于提示该第二应用使用超时。
其中,该第三界面可以为第二应用当前正在使用的应用界面,或者为手机黑屏界面,例如,全黑或全白的应用界面。其中,在该第三界面中,手机显示第三提示信息。第三提示信息用于提示第二应用使用超时。
例如,识别出视频应用为需要控制使用的应用(即视频应用截止当前时刻、在预设时间段内在前台运行的运行时长和/或运行次数超过预设阈值)时,如图,该视频应用正在手机的前台横屏播放如图12中的(a)所示的视频,也就是说视频应用正在前台运行,此时暂无法利用图3所示的流程来实现对视频应用的使用控制。针对这种情况,手机执行S1103,在视频应用当前正在使用的视频播放界面1201上显示第三提示信息1202,及时提示用户使用超时。其中,视频应用是第二应用。如此,手机则可以在应用在前台运行的过程中,被识别为需要控制使用的应用后,及时提示用户使用超时。
在上述S1103中,手机需要识别第二应用是否为需要控制使用的应用,即识别第 二应用截止当前时刻、在预设时间段内在前台运行的运行时长和/或运行次数是否超过预设阈值。
在一些实施例中,为降低识别过程中的数据运算量,可以先识别应用类型,而后检测截止当前时刻、在预设时间段内对应应用在前台运行的运行时长和/或运行次数是否超过预设阈值。具体地,手机识别多个应用中每个应用的应用类型,其中,应用类型包括办公应用和非办公应用,并统计该预设时间段内,其上安装的多个应用中每个非办公应用在该前台的运行时长和/或运行次数,若该多个应用中的第一非办公应用截止当前时刻,在该预设时间段内在该前台运行的运行时长和/或运行次数超过预设阈值,则确定该第一非办公应用是第二应用,第一非办公应用是多个应用中的任一个非办公应用。
在上述检测截止当前时刻、在预设时间段内对应应用在前台运行的运行时长和/或运行次数是否超过预设阈值的过程中,可仅针对运行时长或者运行次数检测,当超过相应的预设阈值时,则确定出第二应用。也可针对运行时长和运行次数两者进行检测,当两者均超过相应的预设阈值时,才确定出第二应用。也就是说,运行时长和/或运行次数超过预设阈值,包括:运行时长超过预设时长阈值,和/或,所述运行次数超过预设次数阈值。
而实际中,相较于持续长时间使用同一款应用,频繁使用同一应用,会将用户的整段时间划分的更加零碎,对用户的学习、工作将造成极大的影响。
基于此,在一些具体的实现方式中,针对任一应用,手机先识别应用类型,而后结合运行次数和运行时长来检测,最终将使用频繁,且使用时长较长的非办公应用,确定为需要控制使用的应用。参见图13,图13示例性的说明了该具体的实现方式中,识别需要控制使用的应用的流程。其中,该需要控制使用的应用根据运行记录和应用类型来识别得到。如图13所示,S1103识别流程包括S1301-S1304。
S1301、检测多个应用中的每个应用是否为白名单应用。
其中,白名单中包括一个或多个办公应用的应用标识。应用不是办公应用,则不是白名单应用。
若应用不是白名单应用,则执行S1302;若应用是白名单应用,则无需限制其使用,进而针对当前应用的识别结束。
S1302、若不是白名单应用,检测截止当前时刻、预设时间段内该应用在前台的运行次数是否超过预设次数阈值。
若超过预设次数阈值,则执行S1303;若未超过预设次数阈值,则重复执行S1302,直至超过预设次数阈值,或者直至预设时间段结束。其中,预设时间段结束时还未超过预设次数阈值,则针对当前应用的识别结束。
S1303、若超过预设次数阈值,检测截止当前时刻、预设时间段内该应用在前台的运行时长是否超过预设时长阈值。
若超过预设时长阈值,则执行S1304;若未超过预设时长阈值,则重复执行S1303,直至超过预设时长阈值,或者直至预设时间段结束,其中,若预设时间段结束时还未超过预设时长阈值,则针对当前应用的识别结束。
S1304、若超过预设时长阈值,则确定该应用为需要控制使用的应用。
采用本实施例,结合运行时长和运行次数来识别需要控制使用的应用,将零散、且长时间占用用户时间的应用确定为需要控制使用的应用。如此,手机后续则可控制该类应用的使用,进一步提高限制的针对性。
通常而言,应用程序推陈出新的速度非常快,随时都有新的应用出现,这些短期内出现的新应用,手机本地中往往缺失应用类型的记录,进而会影响手机识别第二应用的准确性。
对于这种情况,在一些实施例中,手机从云服务器获取该多个应用中每个应用的应用类型,而后根据运行记录和该从云服务器获取的应用类型来识别得到第二应用,其中,云服务器是应用市场的后台服务器。或者,考虑到手机中安装的多个应用中,仅有极个别应用的应用类型,在手机本地的应用市场中不存在记录,基于此,在一种实现方式中,电子设备从手机本地中获取多个应用的应用类型,对于获取不到应用类型的第四应用,则进一步从云服务器获取该第四应用的应用类型,其中,第四应用为多个应用中的任一应用。
采用本实施例,手机借助云服务器来完善应用类型,提高识别结果的准确性。
S1104、手机响应于用户的第二操作,显示第一主界面,该第二操作用于触发手机在后台运行该第二应用,并显示手机的主界面。
例如,手机可接收用户对图12中的(a)示出的应用界面1201中第三提示信息1202中“停止使用”按钮的单击操作。手机响应于用户对该第三提示信息1202中“停止使用”按钮的单击操作,关闭该视频应用在前台的运行,此时手机显示第一主界面。
在显示第一主界面后,则可利用S303-S305实现对第二应用的使用限制。
采用本实施例,对于在前台运行过程中识别为需要控制使用的应用,手机在将其识别为需要控制使用的应用后,在应用界面上提示用户使用超时,提高控制使用的及时性。
进一步的,对于在前台运行过程中识别为需要控制使用的应用,手机为了对运行过程中的该应用实现定时控制,S1103中的第三界面包括用于设置延时时长的延时设置窗口。该手机接收用户在第三界面中该延时设置窗口设置的第二延时时长;该手机在第二延时时长到达时,发出第二提示信息,该第二提示信息用于提示第二应用已延时使用达到该第二延时时长。
例如,手机接收用户对图12中的(a)示出的应用界面1201中第三提示信息1202中的“继续使用”按钮的单击操作。手机响应于用户对该第三提示信息1202中“继续使用”按钮的单击操作,手机可以显示图12中的(b)示出的延时设置窗口1203,供用户设置继续使用的第二延时时长。手机接收到用户对延时设置窗口1203中“确定”控件的单击操作后,完成第二延时时长的设置。而后,手机在第二延时时长到达时,发出第二提示信息,该第二提示信息的具体显示可参见图9和图10,以及相关文字部分中关于第一延时时长到达时发起第一提示信息的相关说明,此处不再赘述。
采用本实施例,针对在前台运行过程中识别为需要控制使用的应用的情况,不仅可以及时提示该应用使用超时,还可以接收用户的延时设置,进而实现该种情况下的定时控制。
在另一些实施例中,为了更加全方位的对第二应用实现使用控制,针对任一第二 应用,还提供有如下限制方式:当手机检测到用户通过点击第二图标触发使用该第二应用时,手机对用户执行使用劝阻操作。例如,手机可接收用户对图4中的(a)示出的主界面中视频应用的应用图标402的单击操作。手机响应于用户对应用图标402的单击操作,对用户执行使用劝阻操作。具体的,如图14所示,响应于用户对第二图标的点击操作触发使用劝阻的过程包括S1401-1403。
S1401、手机响应于用户对第二图标的点击操作,显示第二应用的应用界面,该应用界面包括第四提示信息,该第四提示信息用于提示该第二应用使用超时。
在本实施例中,显示第二应用的应用界面的同时,还在该应用界面中显示第四提示信息,以在进入使用该第二应用之前,劝阻用户停止使用该第二应用。
例如,如图15所示,在应用界面1501上显示第四提示信息1502,该第四提示信息1502中包括使用选择控件“是”和“否”,以供用户触发选择是否继续使用该第二应用。
S1402、手机响应于用户对第四提示信息的第三操作,显示延时设置窗口,其中,第三操作用于触发继续使用第二应用。
例如,手机接收用户对图15示出的应用界面1501中第四提示信息1502上“是”按钮的单击操作,手机响应于用户对第三提示信息1502上“是”按钮的单击操作,显示如图8所示的应用界面801,该应用界面801中包括延时设置窗口802。
S1403、手机接收用户在延时设置窗口设置的第三延时时长,手机在该第三延时时长到达时,发出第五提示信息,该第五提示信息用于提示延时时长结束。
关于S1403的界面变化情况,可参见图9和图10及其相关文字说明的部分,此处不再赘述。
上述S1401-S1403的限制方式,可在确定出第二应用并显示第一主界面后单独使用。或者,也可以与图3的控制方式结合使用,在结合使用的方式中,还包括S1404:
S1404、在手机关闭第二应用在前台的运行后,显示第一主界面。
在手机接收到用户退出第二应用的操作后,手机关闭第二应用在前台的运行。例如,手机接收到用户对图10示出的手机黑屏界面1001中第一提示信息1002中“否”按钮的单击操作后,关闭视频应用。或者是手机自动触发第二应用关闭条件后,关闭第二应用在前台的运行。例如,手机接收到用户对图10示出的手机黑屏界面1001中第一提示信息1002中“是”按钮的单击操作,并到达预设的延时时长(如1分钟)后,自动触发关闭视频应用。
在结合使用时,S1401-S1404在S302-S303之间执行。具体地,参见图14,针对任一识别出的第二应用,当手机首次接收到用户对该第二应用的应用图标的单击操作后,执行S1401-S1404来劝阻用户使用(包括设置第三延时时长),并在退出前台运行后,显示第一主界面。而后,手机接收到用户对该第二应用的应用图标的单击操作后,则不再引导用户设置第三延时时长。该场景下,手机可通过执行S303-S305来修改延时时长,即将第三延时时长修改为第一延时时长,并依据修改后的第一延时时长来控制用户对该第二应用的使用。
采用本实施例,手机响应于用户对第二应用的应用图标的单击操作,不是直接提供应用界面给用户使用,而是触发对用户使用该第二应用的劝阻,更主动的引导用户 放弃使用或者限时使用该第二应用。
最后,需要在此声明的是,在前文的说明中,以在快捷菜单直接显示在手机的主界面上来说明了快捷菜单的显示。例如,如图6中的(a)和图6中的(b)所示,第二应用的快捷菜单都是直接显示在第一主界面601上。但是,本申请实施例并不以此为限。
在本申请的另一些实施例中,手机响应于用户对应用图标的长按或双击操作,在手机的主界面上覆盖显示具有预设透明度值的图层,在该图层上进一步显示第三应用的应用图标和第三应用的快捷菜单。其中,第三应用是该长按或双击操作所操作的应用。也就是说,快捷菜单显示手机的主界面上覆盖具有预设透明度值的图层上。对应的,在本实施例中,手机响应于用户对第二图标的第一操作,在第一主界面显示所述第二应用的快捷菜单,包括:手机响应于用户对第二图标的第一操作,在第一主界面上覆盖显示具有预设透明度值的图层,在该图层上进一步显示第二应用的应用图标和第二应用的快捷菜单。
例如,如图16所示,手机响应于用户对视频应用的应用图标的长按操作,在手机的第一主界面上覆盖显示具有预设透明度值的图层1601,并在该图层1601上显示视频应用的应用图标1602,加锁标记1603和快捷菜单1604。
本申请另一些实施例提供了一种电子设备,该电子设备可以包括:上述显示屏(如触摸屏)、存储器和一个或多个处理器。该显示屏、存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。该电子设备的结构可以参考图2所示的电子设备200的结构。
本申请实施例还提供一种芯片系统,如图17所示,该芯片系统1700包括至少一个处理器1701和至少一个接口电路1702。处理器1701和接口电路1702可通过线路互联。例如,接口电路1702可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1702可用于向其它装置(例如处理器1701)发送信号。示例性的,接口电路1702可读取存储器中存储的指令,并将该指令发送给处理器1701。当所述指令被处理器1701执行时,可使得电子设备执行上述实施例中的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在上述电子设备上运行时,使得该电子设备执行上述方法实施例中手机执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中手机执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块 或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (15)

  1. 一种控制应用程序限时使用的方法,其特征在于,应用于电子设备,所述电子设备中安装有多个应用,所述方法包括:
    所述电子设备显示第一主界面,所述第一主界面包括第一图标和第二图标,所述第一图标是第一应用的应用图标,所述第二图标是第二应用的应用图标,在所述第一主界面中所述第二图标的预设位置处显示有预设标记,所述预设标记用于指示所述第二应用使用超时;
    所述电子设备响应于用户对所述第二图标的第一操作,在所述第一主界面显示所述第二应用的快捷菜单,所述第二应用的快捷菜单中包括第一控件,所述第一控件用于触发所述电子设备设置所述第二应用的延时时长,所述第一操作是长按操作或双击操作;
    所述电子设备响应于用户对所述第一控件的点击操作,所述电子设备显示第二界面;
    所述电子设备接收用户在所述第二界面设置的第一延时时长;
    所述电子设备在所述第一延时时长到达时,发出第一提示信息,所述第一提示信息用于提示所述第二应用已延时使用达到所述第一延时时长;
    其中,所述第二应用是所述电子设备根据所述多个应用的运行记录和应用类型,从所述多个应用中确定出的;所述应用类型包括办公应用和非办公应用,所述运行记录包括截止当前时刻、预设时间段内对应应用在所述电子设备的前台的运行时长和/或运行次数;所述第二应用为在所述前台的运行时长和/或运行次数超过预设阈值的非办公应用;所述第一应用是所述多个应用中除所述第二应用之外的其他应用。
  2. 根据权利要求1所述的方法,其特征在于,所述第二界面是所述电子设备的主界面,所述第二界面包括用于设置延时时长的延时设置窗口;或者,所述第二界面是所述第二应用的应用界面,所述第二界面包括用于设置延时时长的延时设置窗口;
    其中,所述电子设备接收用户在所述第二界面设置的第一延时时长,包括:
    所述电子设备接收用户在所述延时设置窗口设置的所述第一延时时长。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备显示第一主界面之前,所述方法还包括:
    所述电子设备显示第二主界面,所述第二主界面包括所述第二图标,在所述第二主界面中所述第二图标的预设位置处未显示所述预设标记;
    所述电子设备响应于用户对所述第二主界面中第二图标的点击操作,显示所述第二应用的应用界面;
    所述电子设备在所述前台运行所述第二应用的过程中,所述第二应用截止当前时刻、在所述预设时间段内在所述前台运行的运行时长和/或运行次数超过所述预设阈值,则显示第三界面,所述第三界面用于提示所述第二应用使用超时;
    其中,所述电子设备显示第一主界面,包括:
    所述电子设备响应于用户的第二操作,所述电子设备显示所述第一主界面,所述第二操作用于触发所述电子设备在后台运行所述第二应用,并显示所述电子设备的主界面。
  4. 根据权利要求3所述的方法,其特征在于,所述第三界面包括用于设置延时时长的延时设置窗口;所述方法还包括:
    所述电子设备接收用户在所述第三界面中所述延时设置窗口设置的第二延时时长;
    所述电子设备在所述第二延时时长到达时,发出第二提示信息,所述第二提示信息用于提示所述第二应用已延时使用达到所述第二延时时长。
  5. 根据权利要求1或2所述的方法,其特征在于,所述电子设备根据所述多个应用的使用记录和应用类型,从所述多个应用中确定出所述第二应用,包括:
    所述电子设备从云服务器获取所述多个应用中每个应用的应用类型,所述应用类型包括办公应用和非办公应用;
    所述电子设备统计所述预设时间段内,所述多个应用中每个非办公应用在所述前台的运行时长和/或运行次数;
    若所述多个应用中的第一非办公应用截止当前时刻,在所述预设时间段内在所述前台运行的运行时长和/或运行次数超过所述预设阈值,确定所述第一非办公应用是所述第二应用,所述第一非办公应用是所述多个应用中的任一个非办公应用。
  6. 根据权利要求5所述的方法,其特征在于,所述运行时长和/或运行次数超过所述预设阈值,包括:所述运行时长超过预设时长阈值,和/或,所述运行次数超过预设次数阈值。
  7. 根据权利要求1或2所述的方法,其特征在于,在所述电子设备显示第一主界面之后,所述方法还包括:
    所述电子设备响应于用户对所述第一图标的所述第一操作,在所述第一主界面显示所述第一应用的快捷菜单,所述第一应用的快捷菜单中不包括用于触发所述电子设备设置所述第一应用的延时时长的控件。
  8. 一种电子设备,其特征在于,所述电子设备中安装有多个应用,所述电子设备包括显示屏、存储器和一个或多个处理器;所述显示屏、所述存储器和所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如下步骤:
    显示第一主界面,所述第一主界面包括第一图标和第二图标,所述第一图标是第一应用的应用图标,所述第二图标是第二应用的应用图标,在所述第一主界面中所述第二图标的预设位置处显示有预设标记,所述预设标记用于指示所述第二应用使用超时;
    响应于用户对所述第二图标的第一操作,在所述第一主界面显示所述第二应用的快捷菜单,所述第二应用的快捷菜单中包括第一控件,所述第一控件用于触发所述电子设备设置所述第二应用的延时时长,所述第一操作是长按操作或双击操作;
    响应于用户对所述第一控件的点击操作,显示第二界面;
    接收用户在所述第二界面设置的第一延时时长;
    在所述第一延时时长到达时,发出第一提示信息,所述第一提示信息用于提示所述第二应用已延时使用达到所述第一延时时长;
    其中,所述第二应用是所述处理器根据所述多个应用的运行记录和应用类型,从所述多个应用中确定出的;所述应用类型包括办公应用和非办公应用,所述运行记录 包括截止当前时刻、预设时间段内对应应用在所述电子设备的前台的运行时长和/或运行次数;所述第二应用为在所述前台的运行时长和/或运行次数超过预设阈值的非办公应用;所述第一应用是所述多个应用中除所述第二应用之外的其他应用。
  9. 根据权利要求8所述的电子设备,其特征在于,所述第二界面是所述电子设备的主界面,所述第二界面包括用于设置延时时长的延时设置窗口;或者,所述第二界面是所述第二应用的应用界面,所述第二界面包括用于设置延时时长的延时设置窗口;
    当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:
    接收用户在所述延时设置窗口设置的所述第一延时时长。
  10. 根据权利要求8或9所述的电子设备,其特征在于,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:
    在显示所述第一主界面之前,显示第二主界面,所述第二主界面包括所述第二图标,在所述第二主界面中所述第二图标的预设位置处未显示所述预设标记;
    响应于用户对所述第二主界面中第二图标的点击操作,显示所述第二应用的应用界面;
    在所述前台运行所述第二应用的过程中,所述第二应用截止当前时刻、在所述预设时间段内在所述前台运行的运行时长和/或运行次数超过所述预设阈值,则显示第三界面,所述第三界面用于提示所述第二应用使用超时;
    当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:
    响应于用户的第二操作,所述电子设备显示所述第一主界面,所述第二操作用于触发所述电子设备在后台运行所述第二应用,并显示所述电子设备的主界面。
  11. 根据权利要求10所述的电子设备,其特征在于,所述第三界面包括用于设置延时时长的延时设置窗口;
    当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:
    接收用户在所述第三界面中所述延时设置窗口设置的第二延时时长;
    在所述第二延时时长到达时,发出第二提示信息,所述第二提示信息用于提示所述第二应用已延时使用达到所述第二延时时长。
  12. 根据权利要求8或9所述的电子设备,其特征在于,当所述计算机指令被所述处理器执行时,使得所述电子设备还执行如下步骤:
    从云服务器获取所述多个应用中每个应用的应用类型,所述应用类型包括办公应用和非办公应用;
    统计所述预设时间段内,所述多个应用中每个非办公应用在所述前台的运行时长和/或运行次数;
    若所述多个应用中的第一非办公应用截止当前时刻,在所述预设时间段内在所述前台运行的运行时长和/或运行次数超过所述预设阈值,确定所述第一非办公应用是所述第二应用,所述第一非办公应用是所述多个应用中的任一个非办公应用。
  13. 根据权利要求12所述的电子设备,其特征在于,所述运行时长和/或运行次数超过所述预设阈值,包括:所述运行时长超过预设时长阈值,和/或,所述运行次数超过预设次数阈值。
  14. 根据权利要求8或9所述的电子设备,其特征在于,当所述计算机指令被所述 处理器执行时,使得所述电子设备还执行如下步骤:
    在显示所述第一主界面之后,响应于用户对所述第一图标的所述第一操作,在所述第一主界面显示所述第一应用的快捷菜单,所述第一应用的快捷菜单中不包括用于触发所述电子设备设置所述第一应用的延时时长的控件。
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-7中任一项所述的方法。
PCT/CN2022/072549 2021-03-31 2022-01-18 一种控制应用程序限时使用的方法及电子设备 WO2022206130A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/031,048 US20230367634A1 (en) 2021-03-31 2022-01-18 Method for Controlling Time-Limited Use of Application, and Electronic Device
EP22778319.8A EP4206933A4 (en) 2021-03-31 2022-01-18 CONTROL METHOD OF USE LIMITED IN APPLICATION TIME, AND ELECTRONIC DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110349196.5A CN112732535B (zh) 2021-03-31 2021-03-31 一种控制应用程序限时使用的方法及电子设备
CN202110349196.5 2021-03-31

Publications (1)

Publication Number Publication Date
WO2022206130A1 true WO2022206130A1 (zh) 2022-10-06

Family

ID=75596226

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/072549 WO2022206130A1 (zh) 2021-03-31 2022-01-18 一种控制应用程序限时使用的方法及电子设备

Country Status (4)

Country Link
US (1) US20230367634A1 (zh)
EP (1) EP4206933A4 (zh)
CN (1) CN112732535B (zh)
WO (1) WO2022206130A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732535B (zh) * 2021-03-31 2021-06-22 荣耀终端有限公司 一种控制应用程序限时使用的方法及电子设备
CN113254142B (zh) * 2021-07-09 2021-11-09 统信软件技术有限公司 一种系统桌面区域的划分方法及计算设备
CN116302295B (zh) * 2023-05-22 2023-10-20 荣耀终端有限公司 一种界面显示方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383628A (zh) * 2013-07-09 2013-11-06 广东欧珀移动通信有限公司 一种更改图标的方法及装置
CN108984243A (zh) * 2018-06-08 2018-12-11 珠海格力电器股份有限公司 一种应用使用超时的提醒方法、设备及可读存储介质
US20190065240A1 (en) * 2017-08-22 2019-02-28 Samsung Electronics Co., Ltd. Electronic device for controlling multiple-windows and operation method thereof
CN111240620A (zh) * 2019-12-31 2020-06-05 创维集团有限公司 智能终端投屏处理方法及装置、计算机设备、介质
CN111240624A (zh) * 2020-01-08 2020-06-05 维沃移动通信有限公司 显示应用图标的方法及电子设备
CN112732535A (zh) * 2021-03-31 2021-04-30 荣耀终端有限公司 一种控制应用程序限时使用的方法及电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140073305A1 (en) * 2012-09-11 2014-03-13 Apple Inc. Preemptive hardware activation
US9270674B2 (en) * 2013-03-29 2016-02-23 Citrix Systems, Inc. Validating the identity of a mobile application for mobile application management
US9069458B2 (en) * 2013-05-16 2015-06-30 Barnes & Noble College Booksellers, Llc Kid mode user interface with application-specific configurability
US10182103B2 (en) * 2014-10-16 2019-01-15 Amazon Technologies, Inc. On-demand delivery of applications to virtual desktops
JP6711916B2 (ja) * 2016-03-22 2020-06-17 華為技術有限公司Huawei Technologies Co.,Ltd. アプリケーションの使用を制限する方法、および端末
CN106940652A (zh) * 2017-03-22 2017-07-11 广东小天才科技有限公司 控制应用程序的方法及移动终端
CN108304108B (zh) * 2018-01-22 2020-06-02 维沃移动通信有限公司 一种应用程序的图标显示方法及移动终端
US10872024B2 (en) * 2018-05-08 2020-12-22 Apple Inc. User interfaces for controlling or presenting device usage on an electronic device
CN110266875B (zh) * 2019-04-29 2020-12-15 华为技术有限公司 一种提示信息的显示方法及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383628A (zh) * 2013-07-09 2013-11-06 广东欧珀移动通信有限公司 一种更改图标的方法及装置
US20190065240A1 (en) * 2017-08-22 2019-02-28 Samsung Electronics Co., Ltd. Electronic device for controlling multiple-windows and operation method thereof
CN108984243A (zh) * 2018-06-08 2018-12-11 珠海格力电器股份有限公司 一种应用使用超时的提醒方法、设备及可读存储介质
CN111240620A (zh) * 2019-12-31 2020-06-05 创维集团有限公司 智能终端投屏处理方法及装置、计算机设备、介质
CN111240624A (zh) * 2020-01-08 2020-06-05 维沃移动通信有限公司 显示应用图标的方法及电子设备
CN112732535A (zh) * 2021-03-31 2021-04-30 荣耀终端有限公司 一种控制应用程序限时使用的方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4206933A4

Also Published As

Publication number Publication date
US20230367634A1 (en) 2023-11-16
CN112732535B (zh) 2021-06-22
EP4206933A1 (en) 2023-07-05
EP4206933A4 (en) 2024-06-05
CN112732535A (zh) 2021-04-30

Similar Documents

Publication Publication Date Title
WO2022206130A1 (zh) 一种控制应用程序限时使用的方法及电子设备
US20230104745A1 (en) Display Method and Apparatus
KR102449666B1 (ko) 알림 처리 방법 및 전자 기기
US20220357845A1 (en) Split-screen display method and electronic device
CN109753159B (zh) 用于控制电子装置的方法和设备
CN110839096B (zh) 一种具有折叠屏的设备的触控方法与折叠屏设备
US11243657B2 (en) Icon display method, and apparatus
KR20160143429A (ko) 이동단말기 및 그 제어방법
AU2017440899B2 (en) Photographing method and terminal
WO2020011074A1 (zh) 锁屏方法及电子设备
US10389867B2 (en) Information processing device and information processing method for controlling a transition between a lock screen and an unlocked return screen
EP2690547A1 (en) Terminal and method of sharing a handwriting therein
CN112087545A (zh) 在通知栏下拉菜单中管理多个自由窗口
WO2023284415A1 (zh) 电源键误触检测方法及电子设备
WO2021068627A1 (zh) 一种电子设备的交互方法及电子设备
EP4123437A1 (en) Screen projection display method and system, terminal device, and storage medium
EP4280058A1 (en) Information display method and electronic device
EP4177722A1 (en) Keyboard display method, foldable screen device, and computer-readable storage medium
WO2024082913A1 (zh) 多任务管理方法及电子设备
CN109947325B (zh) 应用图标显示方法、可穿戴设备以及计算机可读存储介质
EP4020199A1 (en) Method and apparatus for reading and writing clipboard information and storage medium
CN111787157A (zh) 移动终端及其操作响应方法
CN110086932B (zh) 一种进程启动控制方法、穿戴式设备及存储介质
WO2021068630A1 (zh) 一种电子设备的交互方法及电子设备
WO2019061248A1 (zh) 虚拟按键操作方法、终端、存储介质及计算机程序

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22778319

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022778319

Country of ref document: EP

Effective date: 20230327

NENP Non-entry into the national phase

Ref country code: DE