WO2018032581A1 - Method and apparatus for application program control - Google Patents

Method and apparatus for application program control Download PDF

Info

Publication number
WO2018032581A1
WO2018032581A1 PCT/CN2016/100623 CN2016100623W WO2018032581A1 WO 2018032581 A1 WO2018032581 A1 WO 2018032581A1 CN 2016100623 W CN2016100623 W CN 2016100623W WO 2018032581 A1 WO2018032581 A1 WO 2018032581A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
terminal device
level application
current time
time
Prior art date
Application number
PCT/CN2016/100623
Other languages
French (fr)
Chinese (zh)
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 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018032581A1 publication Critical patent/WO2018032581A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/442Shutdown
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

A method and an apparatus for application program control. The method comprises: detecting the current screen state of a terminal device (S101); if it is detected that the screen of the terminal device is in a black screen state, acquiring the current time (S102); if it is determined that the current time is within a first time period of a target date, then closing a first-level application program (S103); if it is determined that the current time is within a second time period of the target date, then starting a second-level application program (S104), the second-level application program having historically been used more frequently than the first-level application program. The described method can solve the problem in the prior art that the starting or closing of an application program in a terminal device is cumbersome.

Description

一种应用程序控制方法及装置Application control method and device
本申请要求于2016年8月15日提交中国专利局,申请号为201610672051.8、发明名称为“一种应用程序控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610672051.8, entitled "Application Control Method and Apparatus" on August 15, 2016, the entire contents of which is incorporated herein by reference. in.
技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种应用程序控制方法及装置。The present invention relates to the field of electronic technologies, and in particular, to an application control method and apparatus.
背景技术Background technique
随着智能终端的迅速普及,越来越多的人通过智能手机或平板电脑等智能终端进行通话、短信、上网和各类应用服务,使得智能终端成为了人们生活中不可或缺的一部分。With the rapid spread of smart terminals, more and more people use smart terminals such as smart phones or tablet computers to make calls, text messages, Internet access and various application services, making smart terminals an indispensable part of people's lives.
现有技术中,当用户晚上需要休息时,通常需要关闭各类应用程序,即需要用户点击操作退出该应用程序,步骤繁琐,并且如果用户忘记关闭退出,则可能会导致该智能终端功耗的浪费,从而影响该智能终端的电池续航能力。此外,当智能终端处于黑屏状态时,若用户需要使用该智能终端中的某个应用程序,则需要通过按压电源键或输入相关手势来唤醒终端屏幕,然后再打开该应用程序,步骤繁琐,同时,等待应用程序的初始化开启又需要浪费一定的时间,给用户带来不便,智能化效果不佳。In the prior art, when a user needs to rest at night, it is usually necessary to close various applications, that is, the user needs to click the operation to exit the application, the steps are cumbersome, and if the user forgets to close and exit, the power consumption of the smart terminal may be caused. Waste, which affects the battery life of the smart terminal. In addition, when the smart terminal is in a black screen state, if the user needs to use an application in the smart terminal, the user needs to wake up the terminal screen by pressing the power button or inputting a related gesture, and then open the application, which is cumbersome and cumbersome. Waiting for the initialization of the application to start and waste a certain amount of time, causing inconvenience to the user, and the intelligent effect is not good.
发明内容Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种应用程序控制方法及装置,可以解决现有技术中终端设备中应用程序的开启或关闭操作较为繁琐的问题。The technical problem to be solved by the embodiments of the present invention is to provide an application control method and device, which can solve the problem that the opening or closing operation of the application program in the terminal device in the prior art is cumbersome.
第一方面,本发明实施例提供了一种应用程序控制方法,可包括:In a first aspect, an embodiment of the present invention provides an application control method, which may include:
监测终端设备当前的屏幕状态;Monitoring the current screen state of the terminal device;
当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;Obtaining the current time when the screen of the terminal device is monitored to be in a black screen state;
若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序; If it is determined that the current time is within the first time period of the target date, the first level application is closed;
若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。If it is determined that the current time is within the second time period of the target date, the second level application is started, and the historical usage frequency of the second level application is higher than the historical use frequency of the first level application.
结合第一方面,在第一种可能的实现方式中,所述若判断出所述当前时刻位于目标日期的第一时间段内,所述方法还包括:With reference to the first aspect, in a first possible implementation, if the determining that the current time is in a first time period of the target date, the method further includes:
在所述当前时刻之后,当所述终端设备的屏幕处于黑屏状态的持续时间达到第一时间长度时,关闭第三等级应用程序,其中,所述第三等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。After the current time, when the duration of the screen of the terminal device is in the black screen state reaches the first time length, the third level application is closed, wherein the historical usage frequency of the third level application is higher than The historical usage frequency of the first level application.
结合第一方面,在第二种可能的实现方式中,所述若判断出所述当前时刻位于目标日期的第二时间段内,所述方法还包括:With reference to the first aspect, in a second possible implementation manner, if the determining that the current time is in a second time period of the target date, the method further includes:
在所述当前时刻之后,当所述终端设备的屏幕始终处于黑屏状态且持续时间达到第二时间长度时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。After the current time, when the screen of the terminal device is always in a black screen state and the duration reaches a second time length, the fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than The historical usage frequency of the second level application.
结合第一方面,在第三种可能的实现方式中,所述若判断出所述当前时刻位于目标日期的第二时间段内,所述方法还包括:With reference to the first aspect, in a third possible implementation manner, if the determining that the current time is in a second time period of the target date, the method further includes:
在所述当前时刻之后,当监测到所述终端设备的屏幕处于点亮状态时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。After the current time, when it is detected that the screen of the terminal device is in a lighting state, the fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than the second level application The historical frequency of use of the program.
结合第一方面,在第四种可能的实现方式中,所述方法还包括:In conjunction with the first aspect, in a fourth possible implementation, the method further includes:
当监测到所述终端设备的屏幕处于点亮状态时,获取当前时刻,若判断出所述当前时刻位于目标日期的第二时间段内时,则开启所述第二等级应用程序。When it is detected that the screen of the terminal device is in the lighting state, the current time is acquired, and if it is determined that the current time is within the second time period of the target date, the second level application is started.
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种可能的实现方式或第一方面的第三种可能的实现方式或第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述方法还包括:Combining the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect or the third possible implementation of the first aspect or the fourth possible implementation of the first aspect In a fifth possible implementation manner, the method further includes:
预先统计终端设备中的应用程序的使用频率,并根据统计的所述使用频率的高低对所述应用程序等级划分。The frequency of use of the application in the terminal device is pre-stated, and the application level is divided according to the statistical use frequency.
第二方面,本发明实施例提供了一种应用程序控制装置,可包括:In a second aspect, an embodiment of the present invention provides an application control apparatus, which may include:
监测模块,设置为监测终端设备当前的屏幕状态;a monitoring module configured to monitor a current screen state of the terminal device;
获取模块,设置为当监测到所述终端设备的屏幕处于黑屏状态时,获取当 前时刻;Obtaining a module, configured to acquire when the screen of the terminal device is monitored to be in a black screen state Before time
第一关闭模块,设置为若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;a first closing module, configured to close the first level application if it is determined that the current time is within a first time period of the target date;
第一开启模块,设置为若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。a first opening module, configured to: if it is determined that the current time is within a second time period of the target date, start a second level application, where the historical usage frequency of the second level application is higher than the first level The historical usage frequency of the application.
结合第二方面,在第一种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a first possible implementation, the device further includes:
第二关闭模块,设置为若判断出所述当前时刻位于目标日期的第一时间段内,在所述当前时刻之后,当所述终端设备的屏幕处于黑屏状态的持续时间达到第一时间长度时,关闭第三等级应用程序,其中,所述第三等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。a second closing module, configured to determine that the current time is within a first time period of the target date, after the current time, when the duration of the black screen state of the terminal device reaches a first time length The third level application is closed, wherein the history usage frequency of the third level application is higher than the historical usage frequency of the first level application.
结合第二方面,在第二种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a second possible implementation manner, the device further includes:
第二开启模块,设置为若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当所述终端设备的屏幕始终处于黑屏状态且持续时间达到第二时间长度时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。a second opening module, configured to determine that the current time is within a second time period of the target date, after the current time, when the screen of the terminal device is always in a black screen state and the duration reaches a second time length The fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than the historical usage frequency of the second level application.
结合第二方面,在第三种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a third possible implementation, the device further includes:
第三开启模块,设置为若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当监测到所述终端设备的屏幕处于点亮状态时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。a third opening module, configured to: if it is determined that the current time is in a second time period of the target date, after the current time, when the screen of the terminal device is detected to be in a lighting state, the fourth level is turned on An application, wherein a history usage frequency of the fourth level application is lower than a history usage frequency of the second level application.
结合第二方面,在第四种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a fourth possible implementation, the device further includes:
第四开启模块,设置为当监测到所述终端设备的屏幕处于点亮状态时,获取当前时刻,若判断出所述当前时刻位于目标日期的第二时间段内时,则开启所述第二等级应用程序。a fourth opening module, configured to acquire a current time when the screen of the terminal device is detected to be in a lighting state, and to open the second time if it is determined that the current time is within a second time period of the target date Level application.
结合第二方面或第二方面的第一种可能的实现方式或第二方面的第二种可能的实现方式或第二方面的第三种可能的实现方式或第二方面的第四种可能的实现方式,在第五种可能的实现方式中,所述装置还包括:Combining the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect or the third possible implementation of the second aspect or the fourth possible implementation of the second aspect In a fifth possible implementation manner, the apparatus further includes:
划分模块,设置为预先统计终端设备中的应用程序的使用频率,并根据统计的所述使用频率的高低对所述应用程序等级划分。 The dividing module is configured to pre-count the frequency of use of the application in the terminal device, and divide the application level according to the statistical use frequency.
第三方面,本发明实施例提供了一种终端设备,包括:In a third aspect, an embodiment of the present invention provides a terminal device, including:
存储有可执行程序代码的存储器;a memory storing executable program code;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如本发明实施例第一方面任一方法中所描述的部分或全部步骤。The processor invokes the executable program code stored in the memory to perform some or all of the steps as described in any of the first aspects of the embodiments of the present invention.
第四方面,本发明提供一种计算机存储介质,设置为储存为本发明实施例第二方面提供的主控智能终端所用的计算机软件指令,其包含设置为执行上述方面所设计的程序。In a fourth aspect, the present invention provides a computer storage medium, configured to store computer software instructions for use by a master intelligent terminal provided by the second aspect of the embodiments of the present invention, comprising a program designed to perform the above aspects.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
本发明实施例,通过监测终端设备当前的屏幕状态;当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。本发明实施例通对终端设备中的应用程序的开启和关闭进行智能控制,使得用户无需手动操作,即可以根据用户的作息时间来进行终端设备中的应用程序的控制,不仅可以通过减少用户的操作提升用户体验,还可以通过及时关闭应用程序来节省终端设备的功耗,提升终端设备的性能。In the embodiment of the present invention, the current screen state of the terminal device is monitored; when the screen of the terminal device is detected to be in a black screen state, the current time is obtained; if it is determined that the current time is within the first time period of the target date, Turning off the first level application; if it is determined that the current time is within the second time period of the target date, turning on the second level application, the historical use frequency of the second level application is higher than the first level The historical usage frequency of the application. The embodiment of the present invention performs intelligent control on the opening and closing of the application in the terminal device, so that the user does not need to manually operate, that is, the application program in the terminal device can be controlled according to the user's working time, not only by reducing the user's The operation improves the user experience, and can also save power consumption of the terminal device and improve the performance of the terminal device by closing the application in time.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种应用程序控制方法的流程示意图;1 is a schematic flowchart of an application control method according to an embodiment of the present invention;
图2是本发明实施例提供的另一种应用程序控制方法的流程示意图;2 is a schematic flowchart of another application control method according to an embodiment of the present invention;
图3是本发明实施例提供的应用程序控制方法的一种具体应用场景示意图; 3 is a schematic diagram of a specific application scenario of an application control method according to an embodiment of the present invention;
图4是本发明实施例提供的应用程序控制方法的另一种具体应用场景示意图;4 is a schematic diagram of another specific application scenario of an application control method according to an embodiment of the present invention;
图5是本发明实施例提供的一种应用程序控制装置的结构示意图;FIG. 5 is a schematic structural diagram of an application program control apparatus according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的另一种应用程序控制装置的结构示意图;FIG. 6 is a schematic structural diagram of another application control apparatus according to an embodiment of the present invention; FIG.
图7是本发明实施例提供的又一种应用程序控制装置的结构示意图;FIG. 7 is a schematic structural diagram of still another application control apparatus according to an embodiment of the present invention; FIG.
图8是本发明实施例提供的一种终端设备的结构示意图。FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
以下分别进行详细说明。The details are described below separately.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some of the terms in the present application will be explained to be understood by those skilled in the art.
1)、智能终端,可以为用户设备(User Equipment,UE),即一种向用户提供语音和/或数据连通性的设备,如,具有无线连接功能的手持式设备、车载设备等。常见的终端设备包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile Internet Device,MID)、可穿戴设备、智能手环、计步器、 MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面3)播放器、个人数字助理(Personal Digital Assistant,PDA)和膝上型便携计算机等。1) The intelligent terminal may be a User Equipment (UE), that is, a device that provides voice and/or data connectivity to the user, such as a handheld device with a wireless connection function, an in-vehicle device, and the like. Common terminal devices include: mobile phones, tablets, laptops, PDAs, mobile Internet devices (MIDs), wearable devices, smart bracelets, pedometers, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) player, personal digital assistant (Personal Digital) Assistant, PDA) and laptop portable computers.
2)、应用程序,可以是应用软件(Application,APP),指为完成某项或多项特定工作的计算机程序,即用户可以使用的各种程序设计语言,以及用各种程序设计语言编制的应用程序的集合,分为应用软件包和用户程序,例如手机或电脑上各类操作系统下的应用软件;也可以是指终端设备的操作系统本身带有某些功能的可执行应用程序。2) An application, which can be an application (APP), refers to a computer program that performs one or more specific tasks, that is, various programming languages that the user can use, and is compiled in various programming languages. The collection of applications is divided into application software packages and user programs, such as application software under various operating systems on a mobile phone or a computer; or an executable application with certain functions of the operating system itself of the terminal device.
3)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。3) "Multiple" means two or more. "and/or", describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character "/" generally indicates that the contextual object is an "or" relationship.
图1是本发明实施例提供的一种应用程序控制方法的流程示意图,下面将结合附图1从终端设备侧对本发明实施例中的一种应用程序控制方法进行详细介绍,该方法包括以下步骤S101-步骤S104。1 is a schematic flowchart of an application control method according to an embodiment of the present invention. A method for controlling an application program in an embodiment of the present invention is described in detail in the following with reference to FIG. S101 - step S104.
步骤S101:监测终端设备当前的屏幕状态。Step S101: Monitor the current screen state of the terminal device.
具体地,终端设备或者终端设备的处理器或者相关处理模块(后续相同,不再赘述),实时监测终端设备当前的屏幕状态,其中,屏幕状态主要包括黑屏状态和点亮状态。可以理解的是,监测终端设备的屏幕状态的周期可以是实时的,也可以是按照一定的时间间隔来进行的,本发明对此不作具体限定。一般情况下,认为屏幕状态处于黑屏状态时,则是用户当前没有使用,当屏幕状态为点亮状态时则是用户当前正在使用。可以理解的是,在一些特殊情况下,对于一些音乐类或者是不需要视觉参与的应用程序可能会存在终端设备的屏幕处于黑屏状态,但是实际上用户还是在使用的情况。Specifically, the processor of the terminal device or the terminal device or the related processing module (following the same, no further description), monitors the current screen state of the terminal device in real time, wherein the screen state mainly includes a black screen state and a lighting state. It can be understood that the period of monitoring the screen state of the terminal device may be real-time or may be performed according to a certain time interval, which is not specifically limited by the present invention. In general, when the screen status is considered to be in a black screen state, the user is not currently using it. When the screen status is lit, the user is currently using it. It can be understood that, in some special cases, for some music classes or applications that do not require visual participation, there may be cases where the screen of the terminal device is in a black screen state, but the user is actually using it.
步骤S102:当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻。Step S102: When it is detected that the screen of the terminal device is in a black screen state, the current time is acquired.
具体地,终端设备在监测过程中,若监测到该终端设备的屏幕进入黑屏状态时,则获取当前对应的时刻。其中,时刻是指具体的某一时间,在时间轴上用点表示。Specifically, when the terminal device detects that the screen of the terminal device enters a black screen state during the monitoring process, the current corresponding time is obtained. Among them, the moment refers to a specific time, and is represented by a point on the time axis.
步骤S103:若判断出所述当前时刻位于目标日期的第一时间段内,则关闭 第一等级应用程序。Step S103: If it is determined that the current time is within the first time period of the target date, then close First level application.
具体地,判断当前时刻是否位于目标日期的第一时间段内,该第一时间段表示用户需要休息的时间段或者是不需要使用应用程序的时间段,即在该第一时间段内自动关闭第一等级应用程序(例如用户使用频率较低的应用程序)。其中,目标日期的本质可以理解为一个自然日,但是由于本发明实施例中的方法流程可以周期性的重复,并且考虑到用户的个性化体验,因此可以由用户自行设定,例如,本发明实施例中所提及的所有当前时刻、第一时间段、第二时间段等,可以指处在同一天或者同一个时间周期内的时刻,同一天即指同一个自然日,时间周期则不局限于同一天的0:00到24:00(以24小时为周期),也可以是指当日的12:00到次日的12:00(以24小时为周期)或者是当日22:00到次日22:00(以24小时为周期),可以灵活设置,不拘泥于传统意义上的自然日,即只要是一个完整的24小时长度的时间周期即可,而其时间周期的起始时刻和终止时刻都是可以根据用户的个人习惯进行自定义的调整的。Specifically, determining whether the current time is within a first time period of the target date, the first time period represents a time period during which the user needs to rest or a time period in which the application is not required to be used, that is, automatically shuts down in the first time period. First-level applications (such as applications that users use less frequently). The nature of the target date can be understood as a natural day, but since the method flow in the embodiment of the present invention can be periodically repeated, and considering the personalized experience of the user, it can be set by the user, for example, the present invention. All current moments, first time period, second time period, etc. mentioned in the embodiments may refer to moments on the same day or in the same time period, the same day refers to the same natural day, and the time period is not Limited to the same day from 0:00 to 24:00 (in a 24-hour period), it can also be from 12:00 on the current day to 12:00 on the next day (with a 24-hour period) or 22:00 on the same day. At 22:00 the next day (with a 24-hour period), it can be flexibly set up, not limited to the natural day in the traditional sense, that is, as long as it is a complete 24-hour time period, and the start time of its time period And the termination time can be customized according to the user's personal habits.
例如,该第一时间段为晚上22:00到第二天早上的8:00,可以认为是用户的常规休息时间,在该休息时间段(第一时间段)内,用户需要休息,因此需要将终端设备上的应用程序进行关闭退出,但是如果一到22:00就关闭所有的应用程序可能会对用户造成一些不便的影响,比如,用户通常是晚上22:00休息,此时终端设备在22:00将所有应用程序都进行退出关闭,若此时用户忽然推迟十分钟睡觉,并且在该时间段内需要用到刚刚已经退出关闭的应用程序,那此时终端设备的退出关闭操作,则恰恰起了反作用,导致用户需要重新打开退出关闭的应用程序,操作复杂。因此,本发明实施例通过在第一时间段内,只关闭第一等级的应用程序,该第一等级应用程序主要包括用户使用频率较为低的应用程序,就是用户很有可能在该休息时间段内无需再用到的应用程序,避免过早的将用户可能在短时间内需要用到使用频率较高的应用程序关闭。For example, the first time period is from 22:00 in the evening to 8:00 in the morning of the next day, and can be regarded as the normal rest time of the user. During the rest period (the first time period), the user needs to rest, so it is required Close the application on the terminal device, but if you close all the applications from 12:00 to 22:00, it may cause some inconvenience to the user. For example, the user usually rests at 22:00 in the evening, at which time the terminal device is At 22:00, all applications are quit and closed. If the user suddenly delays sleeping for ten minutes and needs to use the application that has just been closed during this time period, then the terminal device exits and closes. It is just a reaction that causes the user to reopen the application that exits the shutdown, which is complicated. Therefore, in the embodiment of the present invention, only the first level application is closed in the first time period, and the first level application mainly includes an application whose user frequency is relatively low, that is, the user is likely to be in the rest period. Applications that are no longer needed, avoid prematurely shutting down applications that users may need to use more frequently in a short period of time.
步骤S104:若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序。Step S104: If it is determined that the current time is within the second time period of the target date, the second level application is started.
具体地,例如该第二时间段为早上8:00到上午12:00,可以认为是用户的常规起床工作时间,在起床工作时间段(第二时间段)内,用户需要起床工作,因此极大可能性会开启终端设备上常用的应用程序,因此,本发明实施例通过在该第二时间段内自动的开启第二等级应用程序(例如用户使用频率较高的应 用程序),可以减少用户操作,节省用户等待应用程序开启的时间,提升用户体验。Specifically, for example, the second time period is 8:00 am to 12:00 am, which can be regarded as the normal wake-up working time of the user, and during the working time period (second time period), the user needs to get up, so the pole A high probability is that the application that is commonly used on the terminal device is enabled. Therefore, the embodiment of the present invention automatically turns on the second-level application during the second time period (for example, the user should use a higher frequency. With the program), user operations can be reduced, saving users time waiting for the application to be opened, and improving the user experience.
例如,若终端屏幕处于黑屏状态,当前时刻到了早上8:00时,则可以将第二等级应用程序进行开启,以便于用户可以在起床后可以立即使用该第二等级应用程序。可以理解的是,该第二等级应用程序是用户较为常用的应用程序,即所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。For example, if the terminal screen is in a black screen state and the current time is 8:00 in the morning, the second level application can be turned on so that the user can use the second level application immediately after getting up. It can be understood that the second-level application is an application that is more commonly used by the user, that is, the historical usage frequency of the second-level application is higher than the historical usage frequency of the first-level application.
总而言之,本发明实施例中的开启应用程序的先后原则可以是按照从使用频率高到使用频率低的应用程序进行开启,以便于最常用的应用程序最先开启,最不常用的应用程序最后开启;而关闭应用程序则可以是按照从使用频率较低到使用频率较高的应用程序进行关闭,以便于保证最不常用的应用程序最先关闭,较为常用的应用程序最后关闭。In summary, the principle of opening an application in the embodiment of the present invention may be based on an application that is used from a high frequency to a low frequency of use, so that the most commonly used application is first turned on, and the least frequently used application is finally turned on. The application can be closed according to the application from the lower frequency to the higher frequency, so as to ensure that the least frequently used application is closed first, and the more commonly used application is closed.
本发明实施例,通过监测终端设备当前的屏幕状态;当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。本发明实施例通对终端设备中的应用程序的开启和关闭进行智能控制,使得用户无需手动操作,即可以根据用户的作息时间来进行终端设备中的应用程序的控制,不仅可以通过减少用户的操作提升用户体验,还可以通过及时关闭应用程序来节省终端设备的功耗,提升终端设备的性能。In the embodiment of the present invention, the current screen state of the terminal device is monitored; when the screen of the terminal device is detected to be in a black screen state, the current time is obtained; if it is determined that the current time is within the first time period of the target date, Turning off the first level application; if it is determined that the current time is within the second time period of the target date, turning on the second level application, the historical use frequency of the second level application is higher than the first level The historical usage frequency of the application. The embodiment of the present invention performs intelligent control on the opening and closing of the application in the terminal device, so that the user does not need to manually operate, that is, the application program in the terminal device can be controlled according to the user's working time, not only by reducing the user's The operation improves the user experience, and can also save power consumption of the terminal device and improve the performance of the terminal device by closing the application in time.
图2是本发明实施例提供的另一种应用程序控制方法的流程示意图,下面将结合附图2从终端设备侧对本发明实施例中的另一种应用程序控制方法进行详细介绍,该方法包括以下步骤S201-步骤S209。FIG. 2 is a schematic flowchart of another application control method according to an embodiment of the present invention. The following is a detailed description of another application control method in the embodiment of the present invention from a terminal device side, which includes The following steps S201 to S209.
步骤S201:预先统计终端设备中的应用程序的使用频率,并根据统计的所述使用频率的高低对所述应用程序等级划分。Step S201: Pre-stating the frequency of use of the application in the terminal device, and dividing the application level according to the statistical use frequency.
具体地,预先对用户的使用习惯进行采集和分析,并生成关于该终端设备的使用用户的应用程序的使用习惯数据,例如,可以包括用户使用的应用程序的种类,以及每一个应用程序使用的频率,然后再将所有的应用程序划分为多 个等级,例如第一等级代表使用频率最低,第二等级使用频率较高等。可以理解的是,可以划分多个等级的应用程序,具体可由用户的使用习惯或偏好决定。Specifically, the usage habits of the user are collected and analyzed in advance, and usage habit data of the application of the user who uses the terminal device is generated, for example, may include the kind of the application used by the user, and the usage of each application. Frequency, then divide all applications into multiple Levels, for example, the first level represents the lowest frequency of use, and the second level uses a higher frequency. It can be understood that multiple levels of applications can be divided, which can be determined by the user's usage habits or preferences.
步骤S202:监测终端设备当前的屏幕状态。Step S202: Monitor the current screen state of the terminal device.
步骤S203:当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻。Step S203: When it is detected that the screen of the terminal device is in a black screen state, the current time is acquired.
步骤S204:若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序。Step S204: If it is determined that the current time is within the first time period of the target date, the first level application is closed.
步骤S205:若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。Step S205: If it is determined that the current time is within the second time period of the target date, the second level application is started, and the historical usage frequency of the second level application is higher than the history of the first level application. usage frequency.
具体地,步骤S202至步骤S205可参考上述图1实施例中的步骤S101至步骤S104,这里不再赘述。Specifically, step S202 to step S205 may refer to step S101 to step S104 in the foregoing embodiment of FIG. 1, and details are not described herein again.
步骤S206:若判断出所述当前时刻位于目标日期的第一时间段内,在所述当前时刻之后,当所述终端设备的屏幕处于黑屏状态的持续时间达到第一时间长度时,关闭第三等级应用程序。Step S206: If it is determined that the current time is within the first time period of the target date, after the current time, when the duration of the black screen state of the screen of the terminal device reaches the first time length, the third time is closed. Level application.
具体地,在当前时刻位于目标日期的第一时间段内的前提下,如果在当前时刻后的一段时间里,终端设备的屏幕从当前时刻后始终处于黑屏状态,且黑屏状态的时间超过一定阈值(即第一时间长度)时,则可以间接说明用户很大的可能是休息了或暂时不需要使用终端设备中的应用程序了,因此,在已经关闭了第一等级应用的情况下,继续关闭第三等级应用程序,可以进一步地节省终端设备的功耗。可以理解的是,第三等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。即遵循图1对应的实施例中所述的按照使用频率由低到高的顺序进行关闭。在另外一种实施方式中,若终端设备的屏幕从当前时刻后不是一直处于黑屏状态,而是中间间歇的有点亮屏幕,在该种情况下,只要在其中的某一个时间段的黑屏状态的时间超过一定阈值(即第一时间长度)时,则也可以间接说明用户暂时不需要使用终端设备中的应用程序了,因此在已经关闭了第一等级应用的情况下,继续关闭第三等级应用程序。如图3所示,图3是本发明实施例提供的应用程序控制方法的一种具体应用场景示意图,当监测到屏幕处于黑屏状态时,获取当前时刻为10:30,该时刻处于第一时间段内,则执行步骤S204中的关闭使用频率较低的第一等级应用程序,当终端设备在22:30到23:00之间始终处于黑屏状态时(第一时间长度为半小时), 则继续关闭使用频率较高的第三等级应用程序。Specifically, if the current time is within the first time period of the target date, if the screen of the terminal device is in a black screen state after the current time, and the time of the black screen state exceeds a certain threshold, (that is, the first length of time), it can be indirectly stated that the user may be a break or temporarily not need to use the application in the terminal device, therefore, if the first level application has been closed, continue to close The third level application can further save power consumption of the terminal device. It can be understood that the historical usage frequency of the third level application is higher than the historical usage frequency of the first level application. That is, the shutdown is performed in the order of low to high according to the frequency of use, as described in the embodiment corresponding to FIG. 1. In another embodiment, if the screen of the terminal device is not always in the black screen state after the current time, but the screen is lit in the middle interval, in this case, as long as the black screen state is in a certain period of time. When the time exceeds a certain threshold (that is, the first time length), it may also indirectly indicate that the user does not need to use the application in the terminal device temporarily, so if the first level application has been closed, the third level is continued to be closed. application. As shown in FIG. 3, FIG. 3 is a schematic diagram of a specific application scenario of an application control method according to an embodiment of the present invention. When the screen is in a black screen state, the current time is 10:30, and the time is at the first time. In the segment, the first-level application with a lower frequency of use in step S204 is executed, and when the terminal device is always in a black screen state between 22:30 and 23:00 (the first time is half an hour), Then continue to close the third-level application that is used more frequently.
步骤S207:若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当所述终端设备的屏幕始终处于黑屏状态且持续时间达到第二时间长度时,开启第四等级应用程序。Step S207: If it is determined that the current time is located in the second time period of the target date, after the current time, when the screen of the terminal device is always in a black screen state and the duration reaches the second time length, the first time is turned on. Four-level application.
具体地,在当前时刻位于目标日期的第二时间段内的前提下,在当前时刻之后,若终端设备的屏幕一直处于黑屏状态(即中途没有任何的点亮操作),且该持续黑屏时间达到了第二时间长度时,开启第四等级应用程序。原因在于,若在第二时间段(例如用户的起床工作时间段)里,终端设备有被点亮的操作,则很有可能是用户需要使用终端设备中的应用程序,即如果在第二时间段内,有点亮操作,则需要立即开启第四等级应用程序,以便于用户可以进行操作使用。因此本方法步骤中检测终端设备的屏幕处于黑屏状态的持续时间是否达到第二时间长度的目的在于,在用户当前还没点亮终端的情况下,循序渐进的打开各类应用程序。其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。需要说明的是,该第四等级应用程序也可以是第一应用程序,只要是使用频率低于第二等级应用程序的即可。如图4所示,图4是本发明实施例提供的应用程序控制方法的另一种具体应用场景示意图,当监测到屏幕处于黑屏状态时,获取当前时刻为9:00,该时刻处于第二时间段内,则执行步骤S205中的开启使用频率较高的第二等级应用程序,当终端设备在9:00到9:30之间始终处于黑屏状态时(第二时间长度为半小时),则继续开启使用频率较低的第四等级应用程序。Specifically, under the premise that the current time is within the second time period of the target date, after the current time, if the screen of the terminal device is always in a black screen state (ie, there is no lighting operation in the middle), and the continuous black screen time is reached. When the second time length is reached, the fourth level application is started. The reason is that if the terminal device has an illuminated operation during the second time period (for example, the user's wake-up working time period), it is likely that the user needs to use the application in the terminal device, that is, if at the second time In the segment, if there is a lighting operation, the fourth level application needs to be opened immediately so that the user can use the operation. Therefore, the purpose of detecting whether the duration of the black screen state of the screen of the terminal device reaches the second time length in the method step is to gradually open various applications in a case where the user has not yet lit the terminal. The historical usage frequency of the fourth level application is lower than the historical usage frequency of the second level application. It should be noted that the fourth level application may also be the first application, as long as the usage frequency is lower than the second level application. As shown in FIG. 4, FIG. 4 is a schematic diagram of another specific application scenario of the application control method according to the embodiment of the present invention. When the screen is in a black screen state, the current time is 9:00, and the time is at the second time. During the time period, the second-level application with the higher use frequency in step S205 is executed, and when the terminal device is always in the black screen state between 9:00 and 9:30 (the second time length is half an hour), Then continue to open the fourth-level application with lower frequency.
需要说明的是,本发明中所有涉及到关闭或开启应用程序的操作,都包含了如下执行原则或判断过程:若需要关闭的或开启的应用程序已经关闭或开启,则不需要再执行关闭或开启的操作;或者,在进行关闭的操作之前事先判断一下,需要关闭的对应等级的应用程序中有哪些处于开启状态,则关闭这些开启的应用程序,而当前没有开启的对应等级的应用程序,则可以不予执行开启操作;同理,需要开启应用程序之前,可以事先判断一下,需要开启的对应等级的应用程序中哪些是处于关闭状态,则开启这些处于关闭状态的应用程序,而针对已经开启的应用程序则可以不予执行开启操作。It should be noted that all operations related to closing or opening an application in the present invention include the following execution principles or judging process: if the application to be closed or opened has been closed or turned on, it is not necessary to perform the shutdown or The operation that is turned on; or, before the operation to close, determine in advance which of the corresponding levels of applications that need to be closed are turned on, then close the open applications, and the corresponding level of applications that are not currently open, The open operation may not be performed; similarly, before the application needs to be opened, it may be determined in advance which of the corresponding levels of applications that need to be turned on are turned off, and then those applications that are in the closed state are turned on, and The open application can not perform the open operation.
步骤S208:若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当监测到所述终端设备的屏幕处于点亮状态时,开启第四等级 应用程序。Step S208: If it is determined that the current time is located in the second time period of the target date, after the current time, when the screen of the terminal device is detected to be in the lighting state, the fourth level is turned on. application.
具体地,在当前时刻位于目标日期的第二时间段(例如起床、活动或工作时间段)内,在所述当前时刻之后,若监测到所述终端设备的屏幕处于点亮状态时,则直接开启第四等级应用程序(此时已经开启了第二等级应用程序)。即只要监测到终端设备的屏幕一旦被点亮,即使终端设备的屏幕处于黑屏状态的时间没有达到预定时间(第二时间长度),也说明用户当前已经需要使用或正要使用某个应用程序,因此可以不需要其他细节的判断,而直接打开第四等级应用程序。其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率,即遵循图1对应的实施例中所述的按照使用频率由高到低的顺序进行开启。Specifically, when the current time is located in the second time period of the target date (for example, getting up, active, or working time period), after the current time, if the screen of the terminal device is detected to be in the lighting state, Open the fourth level application (the second level application is already open). That is, as long as the screen of the terminal device is detected to be lit, even if the time when the screen of the terminal device is in the black screen state does not reach the predetermined time (the second time length), it indicates that the user currently needs to use or is about to use an application. Therefore, the fourth level application can be directly opened without judging other details. Wherein, the historical usage frequency of the fourth-level application is lower than the historical usage frequency of the second-level application, that is, the high-to-low frequency is used according to the usage frequency as described in the embodiment corresponding to FIG. .
步骤S209:当监测到所述终端设备的屏幕处于点亮状态时,获取当前时刻,若判断出所述当前时刻位于目标日期的第二时间段内时,则开启所述第二等级应用程序。Step S209: When it is detected that the screen of the terminal device is in the lighting state, the current time is acquired, and if it is determined that the current time is within the second time period of the target date, the second level application is started.
具体地,在第二时间段(用户起床工作时间段)中不管在哪个时刻,只要是监测到终端设备点亮了,则说明用户此时可能需要使用终端设备中的应用程序了,此时可以主动开启用户平时较为常用的应用程序,以免用户还需要自己手动操作。需要说明的是,本发明实施例中的时间段还可以进行进一步地细分,例如针对不同的时间段,其对应的相同等级的应用程序为不同的应用程序,还可以针对不同的日期在同一等级的应用程序中对应不同的应用程序,如周末的上午使用频率最高的应用程序可能是新闻类,晚上使用频率最高的可能是视频类,而平时可能更偏向于办公类或聊天类应用程序,本发明对此不作具体限定。Specifically, in the second time period (the user wakes up the working time period), at any time, as long as the terminal device is detected to be lit, it indicates that the user may need to use the application in the terminal device at this time. Actively open the application that users usually use, so that users do not need to manually operate it. It should be noted that the time period in the embodiment of the present invention may further be subdivided. For example, for different time periods, the corresponding applications of the same level are different applications, and may be the same for different dates. Level-level applications correspond to different applications. For example, the most frequently used application in the morning may be news. The most frequently used in the evening may be video. In general, it may be more biased towards office or chat applications. The present invention is not specifically limited thereto.
本发明实施例,通过监测终端设备当前的屏幕状态;当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。本发明实施例通对终端设备中的应用程序的开启和关闭进行智能控制,使得用户无需手动操作,即可以根据用户的作息时间来进行终端设备中的应用程序的控制,不仅可以通过减少用户的操作提升用户体验,还可以通过及时关闭应用程序来节省终端设备的功耗,提升终端设备的性能。 In the embodiment of the present invention, the current screen state of the terminal device is monitored; when the screen of the terminal device is detected to be in a black screen state, the current time is obtained; if it is determined that the current time is within the first time period of the target date, Turning off the first level application; if it is determined that the current time is within the second time period of the target date, turning on the second level application, the historical use frequency of the second level application is higher than the first level The historical usage frequency of the application. The embodiment of the present invention performs intelligent control on the opening and closing of the application in the terminal device, so that the user does not need to manually operate, that is, the application program in the terminal device can be controlled according to the user's working time, not only by reducing the user's The operation improves the user experience, and can also save power consumption of the terminal device and improve the performance of the terminal device by closing the application in time.
本发明实施例还提供了一种应用程序控制装置,如图5所示,图5是本发明实施例提供的一种应用程序控制装置的结构示意图,下面将结合附图5对一种应用程序控制装置10的结构进行详细介绍。所述应用程序控制装置10包括:监测模块101、获取模块102、第一关闭模块103和第一开启模块104,其中The embodiment of the present invention further provides an application control device, as shown in FIG. 5, FIG. 5 is a schematic structural diagram of an application control device according to an embodiment of the present invention, and an application program will be described below with reference to FIG. The structure of the control device 10 will be described in detail. The application control device 10 includes: a monitoring module 101, an obtaining module 102, a first closing module 103, and a first opening module 104, wherein
监测模块101,设置为监测终端设备当前的屏幕状态;The monitoring module 101 is configured to monitor a current screen state of the terminal device;
获取模块102,设置为当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;The obtaining module 102 is configured to acquire a current time when the screen of the terminal device is monitored to be in a black screen state;
第一关闭模块103,设置为若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;The first closing module 103 is configured to: if it is determined that the current time is within a first time period of the target date, close the first level application;
第一开启模块104,设置为若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。The first opening module 104 is configured to: if it is determined that the current time is within a second time period of the target date, start a second level application, where the historical usage frequency of the second level application is higher than the first The historical usage frequency of the level application.
具体地,如图6所示,图6是本发明实施例提供的另一种应用程序控制装置的结构示意图,所述装置还包括:Specifically, as shown in FIG. 6, FIG. 6 is a schematic structural diagram of another application control apparatus according to an embodiment of the present invention, where the apparatus further includes:
第二关闭模块105,设置为若判断出所述当前时刻位于目标日期的第一时间段内,在所述当前时刻之后,当所述终端设备的屏幕处于黑屏状态的持续时间达到第一时间长度时,关闭第三等级应用程序,其中,所述第三等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。The second closing module 105 is configured to: if it is determined that the current time is within a first time period of the target date, after the current time, when the screen of the terminal device is in a black screen state, the duration reaches a first time length The third level application is closed, wherein the history usage frequency of the third level application is higher than the historical usage frequency of the first level application.
进一步地,所述装置还包括:Further, the device further includes:
第二开启模块106,设置为若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当所述终端设备的屏幕始终处于黑屏状态且持续时间达到第二时间长度时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。The second opening module 106 is configured to: if it is determined that the current time is located in the second time period of the target date, after the current time, when the screen of the terminal device is always in a black screen state and the duration reaches the second time In the case of a length, a fourth level application is started, wherein the history usage frequency of the fourth level application is lower than the historical usage frequency of the second level application.
再进一步地,所述装置还包括:Further, the device further includes:
第三开启模块107,设置为若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当若监测到所述终端设备的屏幕处于点亮状态时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。The third opening module 107 is configured to: if it is determined that the current time is located in the second time period of the target date, after the current time, when the screen of the terminal device is detected to be in the lighting state, A four-level application, wherein the historical usage frequency of the fourth-level application is lower than the historical usage frequency of the second-level application.
再进一步地,所述装置还包括: Further, the device further includes:
第四开启模块108,设置为当监测到所述终端设备的屏幕处于点亮状态时,获取当前时刻,若判断出所述当前时刻位于目标日期的第二时间段内时,则开启所述第二等级应用程序。The fourth opening module 108 is configured to acquire a current time when the screen of the terminal device is detected to be in a lighting state, and if the current time is determined to be within a second time period of the target date, the Two-level application.
再进一步地,所述装置还包括:Further, the device further includes:
划分模块109,设置为预先统计终端设备中的应用程序的使用频率,并根据统计的所述使用频率的高低对所述应用程序等级划分。The dividing module 109 is configured to pre-count the frequency of use of the application in the terminal device, and divide the application level according to the statistical use frequency.
可理解的是,应用程序控制装置10中各模块的功能可对应参考上述图1至图4中的各方法实施例中的具体实现方式,这里不再赘述。It can be understood that the functions of the modules in the application control device 10 can be referred to the specific implementation manners in the foregoing method embodiments in FIG. 1 to FIG. 4 , and details are not described herein again.
在本实施例中,应用程序控制装置10是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,监测模块101、获取模块102、第一关闭模块103、和第一开启模块104可通过图7所示的应用程序控制装置的处理器201来实现。In the present embodiment, the application control device 10 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality. . In addition, the monitoring module 101, the obtaining module 102, the first closing module 103, and the first opening module 104 can be implemented by the processor 201 of the application control device shown in FIG.
本发明实施例还提供了又一种应用程序控制装置20,如图7所示,图7是本发明实施例提供的又一种应用程序控制装置的结构示意图,下面将结合附图7对一种应用程序控制装置20的结构进行详细介绍。该一种应用程序控制装置20包括至少一个处理器201,至少一个存储器202、至少一个通信接口203。所述处理器201、所述存储器202和所述通信接口203通过所述通信总线连接并完成相互间的通信。The embodiment of the present invention further provides another application control device 20, as shown in FIG. 7, FIG. 7 is a schematic structural diagram of another application control device according to an embodiment of the present invention, which will be described below with reference to FIG. The structure of the application control device 20 will be described in detail. The application control device 20 includes at least one processor 201, at least one memory 202, and at least one communication interface 203. The processor 201, the memory 202, and the communication interface 203 are connected by the communication bus and complete communication with each other.
处理器201可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 201 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
通信接口203,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 203 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
存储器202可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光 盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 202 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type that can store information and instructions. The dynamic storage device may also be an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other light. Disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired programs in the form of instructions or data structures Code and any other medium that can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor.
其中,所述存储器202用于存储执行以上方案的应用程序代码,并由处理器201来控制执行。所述处理器201用于执行所述存储器202中存储的应用程序代码。The memory 202 is used to store application code that executes the above solution, and is controlled by the processor 201 for execution. The processor 201 is configured to execute application code stored in the memory 202.
存储器202存储的代码可执行以上提供的又一种应用程序控制装置执行的图1-图3的应用程序控制方法,比如监测终端设备当前的屏幕状态;当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。The code stored in the memory 202 can execute the application control method of FIG. 1 to FIG. 3 executed by another application control device provided above, such as monitoring the current screen state of the terminal device; when the screen of the terminal device is monitored to be in a black screen In the state, the current time is obtained; if it is determined that the current time is within the first time period of the target date, the first level application is closed; if it is determined that the current time is within the second time period of the target date, A second level application is opened, the historical usage frequency of the second level application being higher than the historical usage frequency of the first level application.
请参阅图8,图8是本发明实施例提供的终端设备的结构示意图。该终端设备30可以为智能移动终端(如手机),终端设备30包括:射频(英文:radio frequency,RF)电路301、存储有一个或多个计算机程序的存储器302、输入装置303、输出装置304、传感器305、音频电路306、无线保真(英文:wireless fidelity,Wi-Fi)模块307、包括有一个或多个处理核心的处理器308、以及电源303等部件。本领域技术人员可以理解,图8中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Referring to FIG. 8, FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device 30 can be a smart mobile terminal (such as a mobile phone). The terminal device 30 includes: a radio frequency (RF) circuit 301, a memory 302 storing one or more computer programs, an input device 303, and an output device 304. The sensor 305, the audio circuit 306, the wireless fidelity (Wi-Fi) module 307, the processor 308 including one or more processing cores, and the power source 303 and the like. It will be understood by those skilled in the art that the terminal device structure shown in FIG. 8 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
RF电路301可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或多个处理器308处理;另外,将涉及上行的数据发送给基站。通常,RF电路301包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(英文:subscriber identity module,SIM)卡、收发信机、耦合器、低噪声放大器(英文:low noise amplifier,LNA)、双工器等。此外,RF电路301还可以通过无线通信与网络或其他终端设备进行通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通 讯系统(英文:global system of mobile communication,GSM)、通用分组无线服务(英文:general packet radio service,GPRS)、码分多址(英文:code division multiple access,CDMA)、宽带码分多址(英文:wideband code division multiple access,WCDMA)、长期演进(英文:long term evolution,LTE)、电子邮件、短消息服务(英文:short messaging service,SMS)等。The RF circuit 301 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, receiving downlink information of the base station and then processing it by one or more processors 308; in addition, transmitting data related to the uplink to the base station . Generally, RF circuit 301 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier ( English: low noise amplifier, LNA), duplexer, etc. In addition, the RF circuit 301 can also communicate with a network or other terminal device through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global Mobile (system: global system of mobile communication, GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access ( English: wideband code division multiple access (WCDMA), long term evolution (English): long term evolution (LTE), e-mail, short message service (English): short messaging service (SMS).
存储器302可用于存储计算机程序以及模块,处理器308通过运行存储在存储器302的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器302可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备30的使用所创建的数据(比如拍摄的照片、音频数据、视频数据等)等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器302还可以包括存储器控制器,以提供处理器308和输入装置303对存储器302的访问。The memory 302 can be used to store computer programs and modules, and the processor 308 executes various functional applications and data processing by running computer programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal device 30 (such as photographed photos, audio data, video data, etc.) and the like. Moreover, memory 302 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 302 may also include a memory controller to provide access to memory 302 by processor 308 and input device 303.
输入装置303可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入装置303可包括触敏表面3031以及其他输入设备3032。触敏表面3031,也称为触摸显示面板或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面3031上或在触敏表面3031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面3031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器308,并能接收处理器308发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面3031。除了触敏表面3031,输入装置303还可以包括其他输入设备3032。具体地,其他输入设备3032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。 Input device 303 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls. In particular, input device 303 can include touch-sensitive surface 3031 as well as other input devices 3032. Touch-sensitive surface 3031, also referred to as a touch display panel or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., any suitable object or accessory on touch-sensitive surface 3031 or The operation near the touch-sensitive surface 3031) and driving the corresponding connecting device according to a preset program. Alternatively, the touch sensitive surface 3031 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 308 is provided and can receive commands from the processor 308 and execute them. In addition, the touch sensitive surface 3031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 3031, the input device 303 can also include other input devices 3032. Specifically, other input devices 3032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
输出装置304可用于显示由用户输入的信息或提供给用户的信息以及终端设备30的各种图形用户界面,这些图形用户界面可以由图形、文本、图标、视 频和其任意组合来构成。输出装置304可包括显示面板3041,可选的,显示面板3041可以采用液晶显示器(英文:liquid crystal display,LCD)、有机发光二极管(英文:organic light-emitting diode,OLED)等形式来配置。进一步的,触敏表面3031可覆盖显示面板3041,当触敏表面3031监测到在其上或附近的触摸操作后,传送给处理器308以确定触摸事件的类型,随后处理器308根据触摸事件的类型在显示面板3041上提供相应的视觉输出。虽然在图8中,触敏表面3031与显示面板3041是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面3031与显示面板3041集成而实现输入和输出功能。The output device 304 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 30, which can be represented by graphics, text, icons, views. The frequency is combined with any combination thereof. The output device 304 can include a display panel 3041. Alternatively, the display panel 3041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch-sensitive surface 3031 can cover the display panel 3041, and when the touch-sensitive surface 3031 detects a touch operation thereon or nearby, it is transmitted to the processor 308 to determine the type of touch event, and then the processor 308 according to the touch event The type provides a corresponding visual output on display panel 3041. Although in FIG. 8, touch-sensitive surface 3031 and display panel 3041 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 3031 can be integrated with display panel 3041 for input. And output function.
终端设备30还可包括至少一种传感器305,比如距离传感器、光传感器、运动传感器以及其他传感器。具体地,距离传感器用于检测所述终端设备屏幕与覆盖所述终端设备的物体之间的距离,光传感器用于检测所述终端设备外部环境的光信号。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备30姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于终端设备30还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,此处不再赘述。 Terminal device 30 may also include at least one type of sensor 305, such as a distance sensor, a light sensor, a motion sensor, and other sensors. Specifically, the distance sensor is configured to detect a distance between the screen of the terminal device and an object covering the terminal device, and the light sensor is configured to detect an optical signal of an environment external to the terminal device. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the attitude of the terminal device 30 (such as horizontal and vertical screen switching). , related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the terminal device 30 can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, I will not repeat them here.
音频电路306、扬声器3061、传声器3062可提供用户与终端设备30之间的音频接口。音频电路306可将接收到的音频数据转换后的电信号,传输到扬声器3061,由扬声器3061转换为声音信号输出;另一方面,传声器3062将收集的声音信号转换为电信号,由音频电路306接收后转换为音频数据,再将音频数据输出处理器308处理后,经RF电路301以发送给比如另一设备,或者将音频数据输出至存储器302以便进一步处理。音频电路306还可能包括耳塞插孔,以提供外设耳机与终端设备30的通信。The audio circuit 306, the speaker 3061, and the microphone 3062 can provide an audio interface between the user and the terminal device 30. The audio circuit 306 can transmit the converted electrical data of the received audio data to the speaker 3061, and convert it into a sound signal output by the speaker 3061. On the other hand, the microphone 3062 converts the collected sound signal into an electrical signal, and the audio circuit 306 is used by the audio circuit 306. After receiving, it is converted into audio data, and then processed by the audio data output processor 308, transmitted to the device, for example, via the RF circuit 301, or outputted to the memory 302 for further processing. The audio circuit 306 may also include an earbud jack to provide communication of the peripheral earphones with the terminal device 30.
Wi-Fi属于短距离无线传输技术,终端设备30通过Wi-Fi模块307可以为用户提供网络进行各类应用程序的网络接入,还可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了Wi-Fi模块307,但是可以理解的是,其并不属于终端设备30的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-range wireless transmission technology. The terminal device 30 can provide users with network access for various applications through the Wi-Fi module 307, and can also help users to send and receive emails, browse web pages, and access streaming media. It provides users with wireless broadband Internet access. Although FIG. 8 shows the Wi-Fi module 307, it can be understood that it does not belong to the essential configuration of the terminal device 30, and may be omitted as needed within the scope of not changing the essence of the invention.
处理器308是终端设备30的控制中心,利用各种接口和线路连接整个终端 设备30的各个部分,通过运行或执行存储在存储器302内的计算机程序和/或模块,以及调用存储在存储器302内的数据,执行终端设备30的各种功能和处理数据,从而对终端设备30进行整体监控。可选的,处理器308可包括一个或多个处理核心;优选的,处理器308可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器308中。The processor 308 is a control center of the terminal device 30, and connects the entire terminal by using various interfaces and lines. The various portions of device 30 perform various functions and processing data of terminal device 30 by operating or executing computer programs and/or modules stored in memory 302, as well as invoking data stored in memory 302, thereby pairing terminal device 30 Conduct overall monitoring. Optionally, the processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 308.
终端设备30还包括给各个部件供电的电源303(比如电池),优选的,电源可以通过电源管理系统与处理器308逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源303还可以包括一个或多个直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The terminal device 30 further includes a power source 303 (such as a battery) for supplying power to the various components. Preferably, the power source can be logically connected to the processor 308 through the power management system to manage functions such as charging, discharging, and power management through the power management system. . The power supply 303 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
尽管未示出,终端设备30还可以包括摄像头、蓝牙模块等,此处不再赘述。具体在本发明实施例中,终端设备的输出装置304(或输入装置303)是触摸屏显示器,终端设备30还包括有存储器302、处理器308、以及一个或多个的计算机程序,其中一个或多个计算机程序存储于存储器302中,处理器308用于调用存储器302(非易失性存储器)存储的应用于终端设备的应用程序控制的程序执行前述方法实施例中的各方法步骤流程,在此不再赘述。Although not shown, the terminal device 30 may further include a camera, a Bluetooth module, and the like, and details are not described herein again. Specifically, in the embodiment of the present invention, the output device 304 (or the input device 303) of the terminal device is a touch screen display, and the terminal device 30 further includes a memory 302, a processor 308, and one or more computer programs, one or more of which The computer program is stored in the memory 302, and the processor 308 is configured to call the program controlled by the application controlled by the memory 302 (non-volatile memory) for the terminal device to execute the process steps in the foregoing method embodiments. No longer.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种应用程序控制方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the application control methods described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not
所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。The described sequence of actions is limited in that certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单 元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided herein, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the device embodiments described above are merely illustrative, such as the single The division of elements is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在 具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and the principles and implementations of the present invention are described in detail herein. The description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; One of ordinary skill in the art, in accordance with the teachings of the present invention, The details of the present invention and the scope of the application are subject to change. The contents of the present specification are not to be construed as limiting the invention.

Claims (12)

  1. 一种应用程序控制方法,其特征在于,包括:An application control method, comprising:
    监测终端设备当前的屏幕状态;Monitoring the current screen state of the terminal device;
    当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;Obtaining the current time when the screen of the terminal device is monitored to be in a black screen state;
    若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;If it is determined that the current time is within the first time period of the target date, the first level application is closed;
    若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。If it is determined that the current time is within the second time period of the target date, the second level application is started, and the historical usage frequency of the second level application is higher than the historical use frequency of the first level application.
  2. 如权利要求1所述的方法,其特征在于,所述若判断出所述当前时刻位于目标日期的第一时间段内,所述方法还包括:The method of claim 1, wherein the method further comprises: if the current time is determined to be within a first time period of the target date, the method further comprising:
    在所述当前时刻之后,当所述终端设备的屏幕处于黑屏状态的持续时间达到第一时间长度时,关闭第三等级应用程序,其中,所述第三等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。After the current time, when the duration of the screen of the terminal device is in the black screen state reaches the first time length, the third level application is closed, wherein the historical usage frequency of the third level application is higher than The historical usage frequency of the first level application.
  3. 如权利要求1所述的方法,其特征在于,所述若判断出所述当前时刻位于目标日期的第二时间段内,所述方法还包括:The method of claim 1, wherein the method further comprises: if the current time is determined to be within a second time period of the target date, the method further comprising:
    在所述当前时刻之后,当所述终端设备的屏幕始终处于黑屏状态且持续时间达到第二时间长度时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。After the current time, when the screen of the terminal device is always in a black screen state and the duration reaches a second time length, the fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than The historical usage frequency of the second level application.
  4. 如权利要求1所述的方法,其特征在于,所述若判断出所述当前时刻位于目标日期的第二时间段内,所述方法还包括:The method of claim 1, wherein the method further comprises: if the current time is determined to be within a second time period of the target date, the method further comprising:
    在所述当前时刻之后,当监测到所述终端设备的屏幕处于点亮状态时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。After the current time, when it is detected that the screen of the terminal device is in a lighting state, the fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than the second level application The historical frequency of use of the program.
  5. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    当监测到所述终端设备的屏幕处于点亮状态时,获取当前时刻,若判断出 所述当前时刻位于目标日期的第二时间段内时,则开启所述第二等级应用程序。When it is detected that the screen of the terminal device is in a lighting state, the current time is obtained, and if it is determined When the current time is within the second time period of the target date, the second level application is started.
  6. 如权利要求1-5任意一项所述的方法,其特征在于,所述方法还包括:The method of any of claims 1-5, wherein the method further comprises:
    预先统计终端设备中的应用程序的使用频率,并根据统计的所述使用频率的高低对所述应用程序等级划分。The frequency of use of the application in the terminal device is pre-stated, and the application level is divided according to the statistical use frequency.
  7. 一种应用程序控制装置,其特征在于,包括:An application control device, comprising:
    监测模块,设置为监测终端设备当前的屏幕状态;a monitoring module configured to monitor a current screen state of the terminal device;
    获取模块,设置为当监测到所述终端设备的屏幕处于黑屏状态时,获取当前时刻;Obtaining a module, configured to acquire a current time when the screen of the terminal device is monitored to be in a black screen state;
    第一关闭模块,设置为若判断出所述当前时刻位于目标日期的第一时间段内,则关闭第一等级应用程序;a first closing module, configured to close the first level application if it is determined that the current time is within a first time period of the target date;
    第一开启模块,设置为若判断出所述当前时刻位于目标日期的第二时间段内,则开启第二等级应用程序,所述第二等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。a first opening module, configured to: if it is determined that the current time is within a second time period of the target date, start a second level application, where the historical usage frequency of the second level application is higher than the first level The historical usage frequency of the application.
  8. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    第二关闭模块,设置为若判断出所述当前时刻位于目标日期的第一时间段内,在所述当前时刻之后,当所述终端设备的屏幕处于黑屏状态的持续时间达到第一时间长度时,关闭第三等级应用程序,其中,所述第三等级应用程序的历史使用频率高于所述第一等级应用程序的历史使用频率。a second closing module, configured to determine that the current time is within a first time period of the target date, after the current time, when the duration of the black screen state of the terminal device reaches a first time length The third level application is closed, wherein the history usage frequency of the third level application is higher than the historical usage frequency of the first level application.
  9. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    第二开启模块,设置为若判断出所述当前时刻位于目标日期的第二时间段内,在所述当前时刻之后,当所述终端设备的屏幕始终处于黑屏状态且持续时间达到第二时间长度时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。a second opening module, configured to determine that the current time is within a second time period of the target date, after the current time, when the screen of the terminal device is always in a black screen state and the duration reaches a second time length The fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than the historical usage frequency of the second level application.
  10. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    第三开启模块,设置为若判断出所述当前时刻位于目标日期的第二时间段 内,在所述当前时刻之后,当监测到所述终端设备的屏幕处于点亮状态时,开启第四等级应用程序,其中,所述第四等级应用程序的历史使用频率低于所述第二等级应用程序的历史使用频率。a third opening module, configured to determine that the current time is located in a second time period of the target date After the current time, when the screen of the terminal device is detected to be in a lighting state, the fourth level application is started, wherein the historical usage frequency of the fourth level application is lower than the second The historical usage frequency of the level application.
  11. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    第四开启模块,设置为当监测到所述终端设备的屏幕处于点亮状态时,获取当前时刻,若判断出所述当前时刻位于目标日期的第二时间段内时,则开启所述第二等级应用程序。a fourth opening module, configured to acquire a current time when the screen of the terminal device is detected to be in a lighting state, and to open the second time if it is determined that the current time is within a second time period of the target date Level application.
  12. 如权利要求7-11任意一项所述的装置,其特征在于,所述装置还包括:The device of any of claims 7-11, wherein the device further comprises:
    划分模块,设置为预先统计终端设备中的应用程序的使用频率,并根据统计的所述使用频率的高低对所述应用程序等级划分。 The dividing module is configured to pre-count the frequency of use of the application in the terminal device, and divide the application level according to the statistical use frequency.
PCT/CN2016/100623 2016-08-15 2016-09-28 Method and apparatus for application program control WO2018032581A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610672051.8 2016-08-15
CN201610672051.8A CN106250163B (en) 2016-08-15 2016-08-15 A kind of application control method and device

Publications (1)

Publication Number Publication Date
WO2018032581A1 true WO2018032581A1 (en) 2018-02-22

Family

ID=57592034

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100623 WO2018032581A1 (en) 2016-08-15 2016-09-28 Method and apparatus for application program control

Country Status (2)

Country Link
CN (1) CN106250163B (en)
WO (1) WO2018032581A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464186A (en) * 2020-12-01 2021-03-09 广州朗国电子科技有限公司 Application program time-sharing and authority-sharing management method, system, all-in-one machine and storage medium
CN113064680A (en) * 2021-02-20 2021-07-02 西安闻泰电子科技有限公司 Background switching method, electronic equipment, computer equipment and storage medium
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN116680133A (en) * 2023-04-28 2023-09-01 荣耀终端有限公司 Black screen detection method and electronic equipment

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018170819A1 (en) * 2017-03-23 2018-09-27 李卓希 Method and system for controlling power consumption of mobile terminal
CN107272872B (en) 2017-05-31 2020-01-21 Oppo广东移动通信有限公司 Power saving control method and related product
CN107741810B (en) * 2017-09-19 2020-09-01 平安科技(深圳)有限公司 List management method, device and computer readable storage medium
WO2019109557A1 (en) * 2017-12-06 2019-06-13 华为技术有限公司 Method and device for reducing power consumption
CN109992395B (en) * 2017-12-29 2021-11-16 Oppo广东移动通信有限公司 Application freezing method and device, terminal and computer readable storage medium
CN108594992B (en) * 2018-03-31 2021-05-11 Oppo广东移动通信有限公司 Electronic equipment, application control method and related product
CN109388433A (en) * 2018-10-11 2019-02-26 佛山市顺德区美的洗涤电器制造有限公司 Acquisition methods, device and the household appliance of household appliance wake-up duration
CN112068947A (en) * 2020-09-23 2020-12-11 深圳市欢太科技有限公司 Application program entering method and device, terminal equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810040A (en) * 2014-02-10 2014-05-21 联想(北京)有限公司 Information processing method and electronic equipment
CN104199669A (en) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 Method and device for managing application program processes
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN104750550A (en) * 2015-04-20 2015-07-01 上海斐讯数据通信技术有限公司 Mobile terminal application management system and method and use time record generating method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336B (en) * 2013-07-19 2018-09-14 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN105389174A (en) * 2014-09-04 2016-03-09 Tcl集团股份有限公司 Application program acceleration starting method and system based on mobile operating system
CN105677378B (en) * 2014-11-20 2019-02-05 华为终端(东莞)有限公司 A kind of method and mobile terminal of management application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810040A (en) * 2014-02-10 2014-05-21 联想(北京)有限公司 Information processing method and electronic equipment
CN104199669A (en) * 2014-09-12 2014-12-10 北京奇虎科技有限公司 Method and device for managing application program processes
CN104199605A (en) * 2014-09-16 2014-12-10 太仓红码软件技术有限公司 Mobile terminal and control method and device for mobile terminal applications
CN104750550A (en) * 2015-04-20 2015-07-01 上海斐讯数据通信技术有限公司 Mobile terminal application management system and method and use time record generating method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464186A (en) * 2020-12-01 2021-03-09 广州朗国电子科技有限公司 Application program time-sharing and authority-sharing management method, system, all-in-one machine and storage medium
CN112464186B (en) * 2020-12-01 2023-11-14 广州朗国电子科技股份有限公司 Application time-sharing and weight-sharing management method, system, all-in-one machine and storage medium
CN113064680A (en) * 2021-02-20 2021-07-02 西安闻泰电子科技有限公司 Background switching method, electronic equipment, computer equipment and storage medium
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN116680133A (en) * 2023-04-28 2023-09-01 荣耀终端有限公司 Black screen detection method and electronic equipment

Also Published As

Publication number Publication date
CN106250163B (en) 2019-11-12
CN106250163A (en) 2016-12-21

Similar Documents

Publication Publication Date Title
WO2018032581A1 (en) Method and apparatus for application program control
WO2019015435A1 (en) Speech recognition method and apparatus, and storage medium
WO2018219104A1 (en) Power saving control method and related product
WO2016150331A1 (en) Method and device for operating game client
WO2017008569A1 (en) Message updating method, apparatus, and terminal
WO2017206902A1 (en) Application control method and related device
WO2018166168A1 (en) Screen backlight control method and mobile terminal
WO2016082109A1 (en) User equipment power management method and power management device
WO2017128639A1 (en) Terminal device
WO2015081664A1 (en) Method, apparatus, device and system for controlling wireless network to be switched on/off
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
WO2014090202A1 (en) Power control method and apparatus and terminal
WO2017206918A1 (en) Terminal awakening accelerating method and related product
WO2018214744A1 (en) Information processing method and related product
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN106532876B (en) Power supply control method and device and computer equipment
WO2019095155A1 (en) Fatigue notification method and terminal
WO2018045874A1 (en) Method for information processing and related product
WO2017206860A1 (en) Processing method of mobile terminal and mobile terminal
WO2017206901A1 (en) Process control method and related device
CN106095566B (en) Response control method and mobile terminal
CN106302101B (en) Message reminding method, terminal and server
CN112286286B (en) Standby control method, wearable device and computer readable storage medium
WO2017206903A1 (en) Application control method and related device

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: 16913336

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16913336

Country of ref document: EP

Kind code of ref document: A1