CN109254820B - Window closing method, device, terminal and computer readable storage medium - Google Patents
Window closing method, device, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109254820B CN109254820B CN201811036172.9A CN201811036172A CN109254820B CN 109254820 B CN109254820 B CN 109254820B CN 201811036172 A CN201811036172 A CN 201811036172A CN 109254820 B CN109254820 B CN 109254820B
- Authority
- CN
- China
- Prior art keywords
- freeform
- application
- free window
- operation instruction
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 45
- 230000001960 triggered effect Effects 0.000 claims description 55
- 238000004590 computer program Methods 0.000 claims description 25
- 238000012544 monitoring process Methods 0.000 claims description 25
- 230000008569 process Effects 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 6
- 230000003993 interaction Effects 0.000 abstract description 2
- 230000000694 effects Effects 0.000 description 16
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请属于用户交互技术领域,尤其涉及一种窗口关闭方法、装置、终端及计算机可读存储介质,其中,所述方法包括:判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示;若所述应用程序以自由窗口Freeform的方式进行显示,则监测所述自由窗口Freeform是否发生满足预设条件的触发事件;若监测到所述自由窗口Freeform未发生满足预设条件的触发事件,则关闭所述应用程序的自由窗口Freeform,以降低终端的运行功耗,解决同时打开多个应用程序的显示界面,并实现对多个应用程序的操作时,终端的运行功耗较大的技术问题。
The present application belongs to the technical field of user interaction, and in particular, relates to a method, device, terminal and computer-readable storage medium for closing a window, wherein the method includes: judging whether an application program running in the foreground of the terminal is displayed in the form of a free window Freeform; If the application is displayed in the form of a free window Freeform, then monitor whether a trigger event that meets the preset conditions occurs in the free window Freeform; if it is monitored that the free window Freeform does not have a trigger event that meets the preset conditions Close the free window Freeform of the application program to reduce the running power consumption of the terminal, solve the technical problem that the running power consumption of the terminal is relatively large when the display interface of multiple application programs is opened at the same time, and the operation of the multiple application programs is realized. .
Description
技术领域technical field
本申请属于用户交互技术领域,尤其涉及一种窗口关闭方法、装置、终端及计算机可读存储介质。The present application belongs to the technical field of user interaction, and in particular, relates to a method, device, terminal and computer-readable storage medium for closing a window.
背景技术Background technique
在以往的Android系统上,所有应用程序的显示界面都是全屏显示的,如果不设置透明效果,一次只能看到一个应用程序的显示界面。但是从Android 7.0版本开始,系统支持了多窗口功能。用户可以同时打开和看到多个应用程序的显示界面,极大地提高了用户的操作效率。In the previous Android system, the display interface of all applications was displayed in full screen. If the transparency effect is not set, only the display interface of one application can be seen at a time. But starting from Android 7.0, the system supports the multi-window function. The user can open and see the display interface of multiple application programs at the same time, which greatly improves the user's operation efficiency.
然而,终端在通过多窗口方式实现同时打开多个应用程序的显示界面,并实现对多个应用程序的操作时,具有运行功耗较大的缺点。However, when the terminal implements a display interface that simultaneously opens multiple application programs in a multi-window manner, and implements operations on the multiple application programs, it has the disadvantage of large running power consumption.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种窗口关闭方法、装置、终端及计算机可读存储介质,可以解决终端同时打开多个应用程序的显示界面,并实现对多个应用程序的操作时,运行功耗较大的技术问题。The embodiments of the present application provide a window closing method, device, terminal, and computer-readable storage medium, which can solve the problem that the terminal opens the display interface of multiple application programs at the same time, and when the operation of multiple application programs is realized, the running power consumption is relatively large technical issues.
本申请实施例第一方面提供一种窗口关闭方法,包括:A first aspect of the embodiments of the present application provides a method for closing a window, including:
判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示;Determine whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform;
若所述应用程序以自由窗口Freeform的方式进行显示,则监测所述自由窗口Freeform中运行的所述应用程序是否发生满足预设条件的触发事件;If the application program is displayed in the form of a free window Freeform, monitor whether the application program running in the free window Freeform has a trigger event that satisfies a preset condition;
若所述自由窗口Freeform中运行的所述应用程序未发生满足预设条件的触发事件,则关闭所述应用程序的自由窗口Freeform。If the application program running in the free window Freeform does not have a trigger event that satisfies the preset condition, the free window Freeform of the application program is closed.
本申请实施例第二方面提供一种窗口关闭装置,包括:A second aspect of the embodiments of the present application provides a window closing device, including:
判断单元,用于判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示;The judgment unit is used to judge whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform;
监测单元,用于若所述应用程序以自由窗口Freeform的方式进行显示,则监测所述自由窗口Freeform中运行的所述应用程序是否发生满足预设条件的触发事件;a monitoring unit, configured to monitor whether the application program running in the free window Freeform has a trigger event that satisfies a preset condition if the application program is displayed in the form of a free window Freeform;
关闭单元,用于若所述自由窗口Freeform中运行的所述应用程序未发生满足预设条件的触发事件,则关闭所述应用程序的自由窗口Freeform。The closing unit is configured to close the free window Freeform of the application program if no trigger event that satisfies the preset condition occurs in the application program running in the free window Freeform.
本申请实施例第三方面提供一种终端,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述方法的步骤。A third aspect of an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the above method when the computer program is executed.
本申请实施例第四方面提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the foregoing method are implemented.
本申请实施例中,通过在确定出应用程序以自由窗口Freeform的方式进行显示之后,监测所述自由窗口Freeform是否发生满足预设条件的触发事件,并在监测到所述自由窗口Freeform未发生满足预设条件的触发事件时,及时地关闭所述应用程序的自由窗口Freeform,以降低终端的运行功耗,解决同时打开多个应用程序的显示界面,并实现对多个应用程序的操作时,终端的运行功耗较大技术问题。In the embodiment of the present application, after it is determined that the application program is displayed in the form of a free window Freeform, it is monitored whether a trigger event that meets the preset conditions occurs in the free window Freeform, and when it is detected that the free window Freeform does not meet the requirements When a preset condition triggers an event, the free window Freeform of the application program is closed in time to reduce the running power consumption of the terminal, solve the problem of opening the display interface of multiple application programs at the same time, and realize the operation of multiple application programs, The operating power consumption of the terminal is a technical problem.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.
图1是本申请实施例提供的一种窗口关闭方法的第一实现流程示意图;1 is a schematic flow chart of a first implementation of a method for closing a window provided by an embodiment of the present application;
图2是本申请实施例提供的一种自由窗口Freeform的方式显示社交类应用的显示界面示意图;2 is a schematic diagram of a display interface for displaying a social application in a free-window Freeform manner provided by an embodiment of the present application;
图3是本申请实施例提供的一种窗口关闭方法的第二实现流程示意图;3 is a schematic flowchart of a second implementation of a method for closing a window provided by an embodiment of the present application;
图4是本申请实施例提供的一种窗口关闭方法的第三实现流程示意图;4 is a schematic flowchart of a third implementation of a method for closing a window provided by an embodiment of the present application;
图5是本申请实施例提供的一种窗口关闭方法的第四实现流程示意图;5 is a schematic flowchart of a fourth implementation of a method for closing a window provided by an embodiment of the present application;
图6是本申请实施例提供的一种窗口关闭方法的第五实现流程示意图;6 is a schematic flowchart of a fifth implementation of a method for closing a window provided by an embodiment of the present application;
图7是本申请实施例提供的窗口关闭装置的结构示意图;7 is a schematic structural diagram of a window closing device provided by an embodiment of the present application;
图8是本申请实施例提供的终端的结构示意图。FIG. 8 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
为了说明本申请上述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the above-mentioned technical solutions of the present application, the following specific embodiments are used for description.
如图1示出了本申请实施例提供的一种窗口关闭方法的第一实现流程示意图,该方法应用于终端,可以由终端上配置的自由窗口Freeform关闭装置执行,适用于需降低自由窗口Freeform运行功耗的情形,包括步骤101至步骤103。FIG. 1 shows a schematic diagram of a first implementation flow of a window closing method provided by an embodiment of the present application. The method is applied to a terminal and can be executed by a free window Freeform closing device configured on the terminal. It is suitable for reducing the free window Freeform The situation of running power consumption includes
步骤101,判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示。Step 101: Determine whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform.
其中,上述终端可以包括智能手机、平板电脑、学习机等移动终端,并且,上述终端的操作系统可以是Android系统、谷歌系统和IOS系统等操作系统。上述终端可以安装有浏览器、社交类应用、电子书阅读应用、视频播放器、音频播放器、游戏类应用、支付类应用等应用程序。Wherein, the above-mentioned terminals may include mobile terminals such as smart phones, tablet computers, learning machines, etc., and the operating systems of the above-mentioned terminals may be operating systems such as Android system, Google system, and IOS system. The above-mentioned terminal may be installed with browsers, social applications, e-book reading applications, video players, audio players, game applications, payment applications and other applications.
本申请实施例中,自由窗口Freeform属于多窗口的一种类型,被称为自由窗口模式、活动窗口和自由窗口,类似于悬浮窗,但实际上自由窗口Freeform是一个真正的活动窗口,包含了完整的activity、window、焦点、input输入等等完整活动窗口的特征。In the embodiment of this application, the free window Freeform belongs to a type of multi-window, which is called free window mode, active window and free window, similar to the floating window, but in fact the free window Freeform is a real active window, including Complete activity, window, focus, input, etc. Features of complete activity windows.
上述自由窗口Freeform通常显示于另一个应用程序的显示界面之上,是真正意义上的多窗口。在Android系统中,自由窗口Freeform与悬浮窗等窗口的区别在于两者处于不同的Activity Manager管理服务的内存栈(Stack)中,由不同的Stack实现显示、调度的功能操作。The above-mentioned free window Freeform is usually displayed on the display interface of another application, which is a real multi-window. In the Android system, the difference between the free window Freeform and the floating window is that the two are in the memory stacks (Stacks) of different Activity Manager management services, and different Stacks implement the function operations of display and scheduling.
具体的,终端可以使用两种方式开启自由窗口Freeform,一种是通过systemfeature定义,一种是通过setting增加开关启动。Specifically, the terminal can use two ways to open the free window Freeform, one is defined by systemfeature, and the other is started by adding switch in setting.
例如,在Android系统中,通过system feature定义开启自由窗口Freeform时,可以先查看Android开放源代码项目AOSP中已经定义的Feature配置文件:frameworks/native/data/etc/android.software.freeform_window_management.xml,只需要把此文件push到手机的system/etc/permissions/目录下,终端开机时Android的PMS会通过的读取此目录下xml配置开启freeform这个feature。实现在应用程序可以以自由窗口Freeform的方式显示。For example, in the Android system, when opening the free window Freeform through the system feature definition, you can first view the Feature configuration file defined in the Android open source project AOSP: frameworks/native/data/etc/android.software.freeform_window_management.xml, Just push this file to the system/etc/permissions/ directory of the phone. When the terminal is turned on, the Android PMS will read the xml configuration in this directory to enable the freeform feature. Implemented in the application can be displayed in the form of a free window Freeform.
一般的,终端预先定义有特有的freeform stack,所有支持自由窗口Freeform的应用程序创建的每个Activity都会在该特定的Freeform stack中启动。Android系统中的每一个Activity都位于一个Task中。一个Task可以包含多个Activity,同一个Activity也可能有多个实例。在Android Manifest.xml中,可以通过android:launch Mode来控制Activity在Task中的实例。Generally, a terminal has a specific freeform stack predefined in advance, and each Activity created by all applications that support Freeform with a free window will be started in this specific Freeform stack. Every Activity in the Android system is located in a Task. A Task can contain multiple Activities, and the same Activity may have multiple instances. In Android Manifest.xml, you can control the instance of Activity in Task through android:launch Mode.
另外,在start Activity的时候,也可以通过setFlag来控制启动的Activity在Task中的实例。Task管理的意义还在于近期任务列表以及Back栈。当通过多任务键(有些设备上是长按Home键,有些设备上是专门提供的多任务键)调出多任务时,其实就是从Activity Manager Service获取了最近启动的Task列表。Back栈管理了当在Activity上点击Back键,当前Activity销毁后应该跳转到哪一个Activity的逻辑。In addition, when starting an Activity, you can also use setFlag to control the instance of the started Activity in the Task. The significance of Task management also lies in the recent task list and the Back stack. When you call up multitasking through the multitasking key (long press the Home button on some devices, and a multitasking key on some devices), you actually get the list of recently started tasks from the Activity Manager Service. The Back stack manages the logic of which Activity to jump to after the current Activity is destroyed when the Back button is clicked on the Activity.
当应用程序支持自由窗口Freeform的方式显示,并且用户以自由窗口Freeform的方式开启该应用程序时,终端可以利用AMS提供的支持Task在不同stack间移动的应用程序接口,将task移动到上述freeform stack,使得该应用程序进入以自由窗口Freeform的方式显示。When the application program supports the display of the free form Freeform, and the user opens the application in the free form Freeform, the terminal can use the application program interface provided by AMS to support the task moving between different stacks to move the task to the above freeform stack. , so that the application is displayed as a free window Freeform.
因此,上述判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示可以包括:检测终端前台运行的目标应用程序的Activity是否位于终端预先定义的freeform stack中,若是,则确定终端前台运行的该应用程序是以自由窗口Freeform的方式进行显示。Therefore, the above-mentioned judging whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform may include: detecting whether the Activity of the target application running in the foreground of the terminal is located in the freeform stack pre-defined by the terminal, and if so, determining whether the application running in the foreground of the terminal is in the freeform stack. The application is displayed as a free window Freeform.
可选的,在本申请的一些实施方式中,上述判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示还可以包括:获取终端当前显示界面的屏幕截图,对上述屏幕截图进行识别,根据对上述屏幕截图的识别结果判断上述终端前台运行的应用程序的显示界面是否存在包含关系,若存在上述包含关系,则确定终端前台运行的应用程序中显示界面被包含的应用程序为以自由窗口Freeform的方式显示的应用程序。Optionally, in some embodiments of the present application, the above-mentioned judging whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform may further include: acquiring a screenshot of the current display interface of the terminal, and identifying the above-mentioned screenshot, According to the recognition result of the above screen shot, it is judged whether the display interface of the application program running in the foreground of the terminal has an inclusion relationship. Apps displayed in a Freeform manner.
例如,如图2所示,终端当前全屏显示的界面为游戏类应用的显示界面21,在上述游戏应用的显示界面21上包含有社交类应用的显示界面22,则此时确定社交类应用为以自由窗口Freeform的方式显示的应用程序,游戏类应用不是以自由窗口Freeform的方式显示的应用程序。For example, as shown in FIG. 2 , the current full-screen display interface of the terminal is the
步骤102,若上述应用程序以自由窗口Freeform的方式进行显示,则监测上述自由窗口Freeform是否发生满足预设条件的触发事件。
本申请实施例中,上述满足预设条件的触发事件是指不关闭上述应用程序的自由窗口Freeform的触发事件。In this embodiment of the present application, the trigger event that satisfies the preset condition refers to a trigger event that does not close the free window Freeform of the application program.
本申请实施例中,终端前台运行的应用程序存在以自由窗口Freeform的方式进行显示是触发监测上述自由窗口Freeform是否发生满足预设条件的触发事件的前提条件。In the embodiment of the present application, the existence of the application program running in the foreground of the terminal is displayed in the form of a free window Freeform, which is a precondition for triggering and monitoring whether the above-mentioned free window Freeform occurs a trigger event that satisfies the preset conditions.
可选的,若终端前台运行的应用程序不存在以自由窗口Freeform的方式进行显示,则不进行监测上述自由窗口Freeform是否发生满足预设条件的触发事件的步骤,而是继续执行判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示的步骤,或者结束上述自由窗口Freeform关闭装置的运行。Optionally, if the application program running in the foreground of the terminal is not displayed in the form of a free window Freeform, the step of monitoring whether the above-mentioned free window Freeform has a trigger event that satisfies the preset conditions is not performed, but continues to execute the judgment that the terminal is running in the foreground. Whether the application program is displayed in the form of a free window Freeform, or end the operation of the above-mentioned free window Freeform closing device.
步骤103,若上述自由窗口Freeform未发生满足预设条件的触发事件,则关闭上述应用程序的自由窗口Freeform。
在本申请实施例中,上述关闭上述应用程序的自由窗口Freeform可以是仅仅关闭应用程序的显示界面,并将自由窗口Freeform中运行的应用程序退回到终端后台运行;也可以是,直接杀死上述应用程序的应用进程,实现上述应用程序的关闭。In the embodiment of the present application, the above-mentioned closing the free window Freeform of the above-mentioned application program may be simply closing the display interface of the application program, and returning the application program running in the free-window Freeform to the terminal to run in the background; or directly killing the above-mentioned application program The application process of the application program realizes the closing of the above-mentioned application program.
本申请实施例中,通过在确定出应用程序以自由窗口Freeform的方式进行显示之后,监测上述自由窗口Freeform是否发生满足预设条件的触发事件,并在上述自由窗口Freeform未发生满足预设条件的触发事件时,及时地关闭上述应用程序的自由窗口Freeform,以降低终端的运行功耗,解决同时打开多个应用程序的显示界面,并实现对多个应用程序的操作时,终端的运行功耗较大的技术问题。In the embodiment of the present application, after it is determined that the application program is displayed in the form of a free window Freeform, it is monitored whether the above-mentioned free window Freeform has a trigger event that meets the preset condition, and no trigger event that meets the preset condition occurs in the above-mentioned free window Freeform. When an event is triggered, the free window Freeform of the above application is closed in time to reduce the running power consumption of the terminal, solve the problem of opening the display interface of multiple applications at the same time, and realize the operation power consumption of the terminal when operating on multiple applications. major technical issues.
可选的,在本申请一些实施方式中,如图3所示,上述自由窗口Freeform的关闭方法可以具体包括步骤301至步骤303。Optionally, in some embodiments of the present application, as shown in FIG. 3 , the above-mentioned method for closing the free window Freeform may specifically include
步骤301,判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示。Step 301: Determine whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform.
步骤302,若上述应用程序以自由窗口Freeform的方式进行显示,则监测预设时长内是否接收到对自由窗口Freeform的操作指令,若未接收到对自由窗口Freeform的操作指令,则确定自由窗口Freeform未发生满足预设条件的触发事件;其中,上述对自由窗口Freeform的操作指令包括语音形式触发的操作指令和/或在上述自由窗口Freeform的显示区域通过触摸手势触发的操作指令。
步骤303,若监测到上述自由窗口Freeform未发生满足预设条件的触发事件,则关闭上述应用程序的自由窗口Freeform。
也就是说,在预设时长内,若没有在上述自由窗口Freeform中触发任何操作指令,则表示监测到关闭上述自由窗口Freeform的触发事件,需执行关闭上述应用程序的自由窗口Freeform的步骤。That is to say, within the preset time period, if no operation instruction is triggered in the above-mentioned free window Freeform, it means that a trigger event for closing the above-mentioned free-window Freeform is detected, and the step of closing the above-mentioned application program's free-window Freeform needs to be performed.
例如,如图2所示,游戏类应用处于挂机状态时,社交类应用以自由窗口Freeform的方式长期开启,则需要在预设时长内未接收到对自由窗口Freeform的操作指令时,关闭社交类应用的自由窗口Freeform,以降低终端的运行功耗。For example, as shown in Figure 2, when a game application is in an on-hook state, and a social application is opened for a long time in the form of a free window Freeform, it is necessary to close the social application when no operation instruction for the free window Freeform is received within a preset period of time. The free window Freeform of the application is used to reduce the running power consumption of the terminal.
其中,上述预设时长可以是用户预先自定义设置的时长,例如,5分钟、10分钟、15分钟、30分钟等等自定义设置的时长。另外,上述预设时长也可以是在出厂时根据不同应用程序设置的预设时长。The above-mentioned preset duration may be a duration pre-defined by a user, for example, a duration of 5 minutes, 10 minutes, 15 minutes, 30 minutes, and the like. In addition, the above-mentioned preset duration may also be a preset duration set according to different application programs at the factory.
可选的,上述操作指令包括语音形式触发的操作指令和/或在上述自由窗口Freeform的显示区域通过触摸手势触发的操作指令。Optionally, the above-mentioned operation instruction includes an operation instruction triggered in a voice form and/or an operation instruction triggered by a touch gesture in the display area of the above-mentioned free window Freeform.
例如,语音形式触发的操作指令可以为“关闭社交类应用”对应的语音信号,终端在接收到该语音信号时,则关闭运行社交类应用的自由窗口Freeform。上述在自由窗口Freeform的显示区域通过触摸手势触发的操作指令可以为拖动自由窗口Freeform触发的操作指令,以及在上述自由窗口Freeform的显示区域通过点击操作触发的操作指令。For example, the operation instruction triggered by the voice form may be a voice signal corresponding to "close the social application", and when the terminal receives the voice signal, the terminal closes the free window Freeform running the social application. The above operation instructions triggered by touch gestures in the display area of the free window Freeform may be operation instructions triggered by dragging the free window Freeform, and operation instructions triggered by clicking operations in the display area of the free window Freeform.
可选的,在本申请的一些实施方式中,上述监测预设时长内是否接收到对上述自由窗口Freeform的操作指令之前,包括:获取上述应用程序的应用类型,并判断上述应用程序的应用类型是否属于预设应用类型。Optionally, in some embodiments of the present application, before the above-mentioned monitoring whether an operation instruction for the above-mentioned free window Freeform is received within a preset time period, includes: obtaining the application type of the above-mentioned application program, and judging the application type of the above-mentioned application program. Whether it belongs to the default application type.
可选的,上述监测预设时长内是否接收到对上述自由窗口Freeform的操作指令,包括:若上述应用程序的应用类型属于预设应用类型,则监测预设时长内是否接收到对上述自由窗口Freeform的操作指令,若未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform未发生满足预设条件的触发事件。Optionally, the above-mentioned monitoring whether an operation instruction for the above-mentioned free window Freeform is received within the preset time period includes: if the application type of the above-mentioned application belongs to the preset application type, monitoring whether the above-mentioned free window is received within the preset time period. The operation instruction of the Freeform, if the operation instruction for the above-mentioned free window Freeform is not received, it is determined that the above-mentioned free window Freeform does not have a trigger event that satisfies the preset condition.
也就是说,只有在自由窗口Freeform中运行的应用程序的应用类型属于预设应用类型时,才执行上述步骤302至步骤303,以避免发生自由窗口Freeform错误关闭的情况。That is to say, the
上述预设应用类型是指可以由终端自动关闭的应用。并且,上述预设应用类型可以是终端出厂时设置的应用类型,也可以是用户自定义设置的应用类型。例如,上述预设应用类型可以为社交类应用和支付类应用。The above preset application types refer to applications that can be automatically closed by the terminal. In addition, the above-mentioned preset application type may be an application type set when the terminal leaves the factory, or an application type set by a user. For example, the above preset application types may be social applications and payment applications.
进一步的,上述获取上述应用程序的应用类型,并判断上述应用程序的应用类型是否属于预设应用类型,包括:若上述应用程序的应用类型不属于预设应用类型,则监测是否接收到对上述自由窗口Freeform的关闭操作指令,若接收到对上述自由窗口Freeform的关闭操作指令,则关闭上述应用程序的自由窗口Freeform。Further, obtaining the application type of the above-mentioned application and judging whether the application type of the above-mentioned application belongs to the preset application type includes: if the application type of the above-mentioned application does not belong to the preset application type, monitoring whether to receive a response to the above-mentioned application. The closing operation instruction of the free window Freeform, if receiving the closing operation instruction for the free window Freeform, the free window Freeform of the application program is closed.
具体的,上述不属于预设应用类型是指不进行自动关闭自由窗口Freeform的应用,例如,上述不属于预设应用类型可以为视频播放应用。Specifically, the above-mentioned non-preset application type refers to an application that does not automatically close the free window Freeform. For example, the above-mentioned non-preset application type may be a video playback application.
例如,当上述应用程序为视频播放应用时,由于视频播放应用正常播放视频时,用户一般不会对其触发其他操作指令,并且,也不希望其被自动关闭,而只有在接收到用户触发的对上述自由窗口Freeform的关闭操作指令,才关闭上述自由窗口Freeform。For example, when the above application is a video playback application, since the video playback application normally plays the video, the user generally does not trigger other operation instructions for it, and does not want it to be automatically closed, but only after receiving the user-triggered The above-mentioned free window Freeform is closed only after the closing operation instruction of the above-mentioned free window Freeform.
因此,当自由窗口Freeform中运行的应用程序不属于预设应用类型的应用程序时,则不需要执行监测预设时长内是否接收到对上述自由窗口Freeform的操作指令的步骤,并且也不对其自由窗口Freeform进行自动关闭。Therefore, when the application program running in the free window Freeform does not belong to the application program of the preset application type, it is not necessary to perform the step of monitoring whether the operation instruction for the above-mentioned free window Freeform is received within the preset time period, and it is not free The window Freeform is automatically closed.
上述对上述自由窗口Freeform的关闭操作指令可以由用户点击自由窗口Freeform的关闭选择控件触发,例如,通过点击如图2所示的关闭选择控件23触发上述自由窗口Freeform的关闭操作指令。The above-mentioned closing operation instruction for the above-mentioned free window Freeform can be triggered by the user clicking the closing selection control of the free window Freeform, for example, by clicking the
本申请实施例中,除了将视频播放应用设置为不属于预设应用类型之外,还可以由用户自定义的将其他应用程序设置为不属于预设应用类型,例如,将电子书阅读应用也设置为不属于预设应用类型,而将支付类应用、浏览器、支付类应用等设置为预设应用类型。In the embodiment of the present application, in addition to setting the video playback application as not belonging to the preset application type, other applications can also be set as not belonging to the preset application type by the user. Set it to not belong to the default application type, but set the payment application, browser, payment application, etc. as the default application type.
需要说明的是,上述应用程序所属的应用类型是指是否为预设应用类型,并且,该应用类型可以由用户自定义设置,也可以在出厂时进行默认设置。It should be noted that the application type to which the above application program belongs refers to whether it is a preset application type, and the application type can be set by the user, or can be set by default at the factory.
在本申请的一些实施方式中,如图4所示,上述自由窗口Freeform的关闭方法还可以具体包括步骤401至步骤403。In some embodiments of the present application, as shown in FIG. 4 , the above-mentioned method for closing the Freeform window may further specifically include
步骤401,判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示。Step 401: Determine whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform.
步骤402,若上述应用程序以自由窗口Freeform的方式进行显示,则监测上述预设时长内是否接收到上述应用程序对应的新的未读消息,以及监测上述预设时长内是否接收到对上述自由窗口Freeform的操作指令。
步骤403,若上述预设时长内未接收到上述应用程序对应的新的未读消息,且上述预设时长内未接收到对上述自由窗口Freeform的操作指令,则确定监测到上述自由窗口Freeform未发生满足预设条件的触发事件,并关闭上述应用程序的自由窗口Freeform。
例如,上述应用程序为社交类应用时,若预设时长内上述应用程序未接收到新的未读消息,且上述预设时长内未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform未发生满足预设条件的触发事件,以便及时关闭上述自由窗口Freeform,降低终端的运行功耗。For example, when the above-mentioned application is a social application, if the above-mentioned application does not receive any new unread messages within the preset period of time, and does not receive any operation instructions for the above-mentioned free window Freeform within the above-mentioned preset period of time, the above-mentioned free form is determined. The window Freeform does not have a trigger event that meets the preset conditions, so that the above-mentioned free window Freeform can be closed in time to reduce the running power consumption of the terminal.
其中,新的未读消息是指排除预设时长外上述应用程序已经接收到并且用户未进行阅读的消息,而只计算预设时长内,并且是未接收到对上述自由窗口Freeform的操作指令的预设时长内,接收到的未读消息。Among them, the new unread message refers to the message that has been received by the above-mentioned application program and the user has not read it except the preset time period, but only the preset time period is calculated, and the operation instruction for the above-mentioned free window Freeform has not been received. Unread messages received within a preset period of time.
进一步地,若上述预设时长内接收到上述应用程序对应的新的未读消息,或者上述预设时长内未接收到对上述自由窗口Freeform的操作指令,则不进行自由窗口Freeform的自动关闭。Further, if a new unread message corresponding to the application program is received within the preset time period, or an operation instruction for the free window Freeform is not received within the preset time period, the free window Freeform will not be automatically closed.
由于用户以自由窗口Freeform的方式开启上述应用程序时,说明用户存在很大可能会需要使用到该应用程序,因此,上述预设时长内未接收到对上述自由窗口Freeform的操作指令时,还要在该预设时长内监测是否未接收到上述应用程序对应新的未读消息,才能判断用户是否已经完成该应用程序的使用。当在预设时长内接收到上述应用程序对应新的未读消息时,为了避免用户错过重要消息,此时,则不对上述自由窗口Freeform进行自动关闭。Since when the user opens the above application in the way of Freeform, it means that the user is likely to need to use the application. Therefore, when no operation instruction for the above Freeform is received within the above preset time period, the user must also Only by monitoring whether a new unread message corresponding to the above application program is received within the preset time period can it be determined whether the user has completed the use of the application program. When a new unread message corresponding to the above application is received within the preset time period, in order to avoid the user from missing important messages, at this time, the above free window Freeform is not automatically closed.
可选的,如图5所示,上述自由窗口Freeform的关闭方法还可以具体包括步骤501至步骤503。Optionally, as shown in FIG. 5 , the above-mentioned method for closing the free window Freeform may further specifically include
步骤501,判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示。Step 501: Determine whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform.
步骤502,若上述应用程序以自由窗口Freeform的方式进行显示,则判断最近一次触发的操作指令是否为在自由窗口Freeform中触发的操作指令。
步骤503,若最近一次触发的操作指令不是在自由窗口Freeform中触发的操作指令,则监测预设时长内是否接收到对上述自由窗口Freeform的操作指令;若未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件,并关闭上述应用程序的自由窗口Freeform。
其中,上述用户最近一次触发的操作指令可以为除关闭操作指令以外的任何形式触发的操作指令。例如,语音形式触发的操作指令,以及通过触摸手势触发的操作指令。Wherein, the last operation instruction triggered by the user may be an operation instruction triggered in any form except the closing operation instruction. For example, operation instructions triggered by voice, and operation instructions triggered by touch gestures.
可选的,作为本申请的另一种实施方式,如图6所示,上述自由窗口Freeform的关闭方法还可以具体包括步骤601至步骤603。Optionally, as another implementation manner of the present application, as shown in FIG. 6 , the above-mentioned method for closing the Freeform of the free window may further specifically include
步骤601,判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示。Step 601: Determine whether the application program running in the foreground of the terminal is displayed in the form of a free window Freeform.
步骤602,若上述应用程序以自由窗口Freeform的方式进行显示,则监测预设时长内是否接收到对上述自由窗口Freeform的操作指令。
步骤603,若预设时长内未接收到对上述自由窗口Freeform的操作指令,则判断最近一次触发的操作指令是否为在自由窗口Freeform中触发的操作指令;若最近一次触发的操作指令不是在自由窗口Freeform中触发的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件,并关闭上述应用程序的自由窗口Freeform。
进一步的,上述判断最近一次触发的操作指令是否为在自由窗口Freeform中触发的操作指令还可以包括:若最近一次触发的操作指令为在自由窗口Freeform中触发的操作指令,则不关闭上述应用程序的自由窗口Freeform。Further, the above-mentioned judging whether the operation instruction triggered last time is an operation instruction triggered in the free window Freeform can also include: if the operation instruction triggered last time is an operation instruction triggered in the free window Freeform, then do not close the above-mentioned application program. The free window Freeform.
也就是说,用户可以通过将自由窗口Freeform中运行的应用选中为最近一次触发操作指令的应用,保持该自由窗口Freeform的长期显示,而不被错误关闭,从而更加灵活地控制自由窗口Freeform的显示和关闭。That is to say, the user can keep the long-term display of the Freeform Freeform by selecting the application running in the Freeform Freeform as the application that triggered the operation command most recently, so as to control the display of the Freeform Freeform more flexibly. and off.
图7示出了本申请实施例提供的一种窗口关闭装置600的结构示意图,包括判断单元701、监测单元702和关闭单元703。FIG. 7 shows a schematic structural diagram of a window closing device 600 provided by an embodiment of the present application, including a
判断单元701,用于判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示;Judging
监测单元702,用于若上述应用程序以自由窗口Freeform的方式进行显示,则监测上述自由窗口Freeform中运行的上述应用程序是否发生满足预设条件的触发事件;The
关闭单元703,用于若上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件,则关闭上述应用程序的自由窗口Freeform。The
在本申请的一些实施方式中,上述监测单元702具体用于,监测预设时长内是否接收到对上述自由窗口Freeform的操作指令,若未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件。In some embodiments of the present application, the
可选的,上述监测单元702还具体用于,获取上述应用程序的应用类型,并判断上述应用程序的应用类型是否属于预设应用类型;若上述应用程序的应用类型属于预设应用类型,则监测预设时长内是否接收到对上述自由窗口Freeform的操作指令;若未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件。Optionally, the above-mentioned
可选的,上述监测单元702还具体用于,若上述应用程序的应用类型不属于预设应用类型,则监测是否接收到对上述自由窗口Freeform的关闭操作指令,若接收到对上述自由窗口Freeform的关闭操作指令,则关闭上述应用程序的自由窗口Freeform。Optionally, the above-mentioned
在本申请的一些实施方式中,上述监测单元702还具体用于,监测上述预设时长内是否接收到上述应用程序对应的新的未读消息,以及监测上述预设时长内是否接收到对上述自由窗口Freeform的操作指令;若上述预设时长内未接收到上述应用程序对应新的未读消息,且上述预设时长内未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件。In some embodiments of the present application, the
在本申请的一些实施方式中,上述监测单元702还具体用于,判断最近一次触发的操作指令是否为在自由窗口Freeform中触发的操作指令;若最近一次触发的操作指令不是在自由窗口Freeform中触发的操作指令,则监测预设时长内是否接收到对上述自由窗口Freeform的操作指令;若未接收到对上述自由窗口Freeform的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件;或者,若预设时长内未接收到对上述自由窗口Freeform的操作指令,则判断最近一次触发的操作指令是否为在自由窗口Freeform中触发的操作指令;若最近一次触发的操作指令不是在自由窗口Freeform中触发的操作指令,则确定上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件。In some embodiments of the present application, the
可选的,上述监测单元702还具体用于,若最近一次触发的操作指令为在自由窗口Freeform中触发的操作指令,则不关闭上述应用程序的自由窗口Freeform。Optionally, the
需要说明的是,为描述的方便和简洁,上述描述的窗口关闭装置700的具体工作过程,可以参考上述图1至图6中描述方法的对应过程,在此不再赘述。It should be noted that, for the convenience and brevity of the description, the specific working process of the
如图8所示,本申请提供一种用于实现上述窗口关闭方法的终端,该终端可以为智能手机、平板电脑、学习机等终端,包括:一个或多个输入设备83(图8中仅示出一个)和一个或多个输出设备84(图8中仅示出一个)。处理器81、存储器82、输入设备83和输出设备84通过总线85连接。As shown in FIG. 8 , the present application provides a terminal for implementing the above method for closing a window. The terminal can be a terminal such as a smart phone, a tablet computer, a learning machine, etc., and includes: one or more input devices 83 (in FIG. 8 only One is shown) and one or more output devices 84 (only one is shown in FIG. 8). The
应当理解,在本申请实施例中,所称处理器81可以是中央处理单元(CentralProcessing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiments of the present application, the
输入设备83可以包括虚拟键盘、触控板、指纹采传感器(用于采集用户的指纹信息和指纹的方向信息)、麦克风等,输出设备84可以包括显示器、扬声器等。The
存储器82可以包括只读存储器和随机存取存储器,并向处理器81提供指令和数据。存储器82的一部分或全部还可以包括非易失性随机存取存储器。例如,存储器82还可以存储设备类型的信息。
上述存储器82存储有计算机程序,上述计算机程序可在上述处理器81上运行,例如,上述计算机程序为窗口关闭方法的程序。上述处理器81执行上述计算机程序时实现上述窗口关闭方法实施例中的步骤,例如图1所示的步骤101至步骤103。或者,上述处理器81执行上述计算机程序时实现上述各装置实施例中各模块/单元的功能,例如图7所示单元701至703的功能。The above-mentioned
上述计算机程序可以被分割成一个或多个模块/单元,上述一个或者多个模块/单元被存储在上述存储器82中,并由上述处理器81执行,以完成本申请。上述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述上述计算机程序在上述终端进行窗口关闭的执行过程。例如,上述计算机程序可以被分割成判断单元、监测单元和关闭单元,各单元具体功能如下:判断单元,用于判断终端前台运行的应用程序是否以自由窗口Freeform的方式进行显示;监测单元,用于若上述应用程序以自由窗口Freeform的方式进行显示,则监测上述自由窗口Freeform中运行的上述应用程序是否发生满足预设条件的触发事件;关闭单元,用于若上述自由窗口Freeform中运行的上述应用程序未发生满足预设条件的触发事件,则关闭上述应用程序的自由窗口Freeform。The above-mentioned computer program can be divided into one or more modules/units, and the above-mentioned one or more modules/units are stored in the above-mentioned
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the above device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other manners. For example, the apparatus/terminal embodiments described above are only illustrative. For example, the division of the above modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components. May be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and components shown 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 in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the above-mentioned integrated modules/units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM), random Access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the above-mentioned computer-readable media may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, the computer-readable media does not Including electrical carrier signals and telecommunication signals.
以上上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that the above-mentioned embodiments can still be used for The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the present application. within the scope of protection of the application.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811036172.9A CN109254820B (en) | 2018-09-05 | 2018-09-05 | Window closing method, device, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811036172.9A CN109254820B (en) | 2018-09-05 | 2018-09-05 | Window closing method, device, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109254820A CN109254820A (en) | 2019-01-22 |
CN109254820B true CN109254820B (en) | 2022-04-19 |
Family
ID=65047111
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811036172.9A Active CN109254820B (en) | 2018-09-05 | 2018-09-05 | Window closing method, device, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109254820B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111399720A (en) * | 2020-03-24 | 2020-07-10 | 北京小米移动软件有限公司 | Method and device for displaying application interface and storage medium |
CN113946304A (en) * | 2021-09-29 | 2022-01-18 | 湖北亿咖通科技有限公司 | Visible window synthesis method and synthesis device and multi-screen system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633639A (en) * | 2002-02-15 | 2005-06-29 | 国际商业机器公司 | Application window closure in response to event in parent window |
CN101673216A (en) * | 2008-09-09 | 2010-03-17 | 联想(北京)有限公司 | Method and device for closing application program |
CN102118322A (en) * | 2009-12-30 | 2011-07-06 | 蒋斌 | Method for automatically controlling number of chat windows in chat tool |
CN106896904A (en) * | 2015-12-18 | 2017-06-27 | 联想(北京)有限公司 | A kind of control method and electronic equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7895528B2 (en) * | 2004-08-05 | 2011-02-22 | International Business Machines Corporation | System and method for reversing a windows close action |
US7464341B2 (en) * | 2005-06-30 | 2008-12-09 | International Business Machines Corporation | Canceling window close commands |
CN103197842B (en) * | 2013-04-15 | 2016-08-31 | 广州博冠信息科技有限公司 | The control method of a kind of application window and device |
CN105468235B (en) * | 2015-11-20 | 2019-11-19 | 华为技术有限公司 | Management method, device and the terminal of user session window |
CN106792101B (en) * | 2017-01-03 | 2019-09-20 | 青岛海信电器股份有限公司 | Home interface method of adjustment, device and smart television |
CN107301009A (en) * | 2017-06-15 | 2017-10-27 | 深圳市金立通信设备有限公司 | A kind of method, terminal and the computer-readable recording medium of removal Toast message boxs |
-
2018
- 2018-09-05 CN CN201811036172.9A patent/CN109254820B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1633639A (en) * | 2002-02-15 | 2005-06-29 | 国际商业机器公司 | Application window closure in response to event in parent window |
CN101673216A (en) * | 2008-09-09 | 2010-03-17 | 联想(北京)有限公司 | Method and device for closing application program |
CN102118322A (en) * | 2009-12-30 | 2011-07-06 | 蒋斌 | Method for automatically controlling number of chat windows in chat tool |
CN106896904A (en) * | 2015-12-18 | 2017-06-27 | 联想(北京)有限公司 | A kind of control method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109254820A (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020048246A1 (en) | Window switching method and apparatus, and terminal and computer-readable storage medium | |
WO2017071068A1 (en) | Application program switching method, apparatus and device | |
CN103984532B (en) | A kind of mobile terminal function arranges position method to set up and the device of key | |
CN108008888A (en) | It is a kind of to be switched fast application program and its method and device at interface | |
CN102521020A (en) | Application screen capture method and application screen capture device for mobile terminals | |
WO2015106510A1 (en) | Screen splitting method and device for applications, intelligent terminal and storage medium | |
WO2018099163A1 (en) | Terminal and application control method | |
CN108153647A (en) | log processing method, device, terminal device and storage medium | |
CN106681584A (en) | Method for optimizing application display and terminal | |
WO2016197337A1 (en) | Short message processing method and apparatus, and electronic device | |
US20210191579A1 (en) | Window adjustment method, window adjustment device and mobile terminal | |
CN107066188A (en) | A kind of method and terminal for sending screenshot picture | |
CN109983428B (en) | Application operation method and device | |
CN105183302A (en) | Method and terminal for controlling application | |
CN109254820B (en) | Window closing method, device, terminal and computer readable storage medium | |
CN104793836A (en) | Information processing method and device based on user operations and terminal | |
WO2019227487A1 (en) | Item display method and terminal | |
CN105425997B (en) | Interface display method after user terminal restart and user terminal | |
WO2019183779A1 (en) | Control method and electronic device | |
CN105786321A (en) | Function switching method and device | |
WO2018149241A1 (en) | Recording method for mobile terminal, and mobile terminal | |
JP6407293B2 (en) | Keyboard style switching method and apparatus | |
CN106095230A (en) | A kind of method for controlling mobile terminal and terminal | |
CN106919397B (en) | A kind of method and mobile terminal of interface display | |
CN110457192A (en) | A kind of file monitor method and device, terminal, storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |