[go: up one dir, main page]

CN112732392B - Application program operation control method and device - Google Patents

Application program operation control method and device Download PDF

Info

Publication number
CN112732392B
CN112732392B CN202110077791.8A CN202110077791A CN112732392B CN 112732392 B CN112732392 B CN 112732392B CN 202110077791 A CN202110077791 A CN 202110077791A CN 112732392 B CN112732392 B CN 112732392B
Authority
CN
China
Prior art keywords
area
application program
screen
target application
system desktop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110077791.8A
Other languages
Chinese (zh)
Other versions
CN112732392A (en
Inventor
闫午阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110077791.8A priority Critical patent/CN112732392B/en
Publication of CN112732392A publication Critical patent/CN112732392A/en
Application granted granted Critical
Publication of CN112732392B publication Critical patent/CN112732392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution 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)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an operation control method and device of an application program, comprising the following steps: receiving a first operation aiming at a target application program, and acquiring a first operation parameter of the first operation, wherein the first operation is used for triggering the target application program to switch to a desktop, the first operation comprises an operation triggered by a navigation gesture or a navigation key, and the first operation parameter comprises a pressing duration; determining whether the pressing time length reaches a preset time length, if so, displaying a first area and a second area on a screen; receiving a second operation aiming at the screen area, and acquiring a second operation parameter of the second operation, wherein the second operation parameter comprises an operation area and a type; and determining whether the target application program is still running in the background after switching to the desktop according to the second operation parameter. When the user exits the application program and switches to the desktop, the user can select whether to keep the background operation of the application program by simply adjusting the pressing time of the exit operation and simply operating the area displayed on the screen, and the operation is simple.

Description

应用程序的运行控制方法及装置Application program operation control method and device

技术领域Technical Field

本申请属于通信技术领域,具体涉及一种应用程序的运行控制方法及装置。The present application belongs to the field of communication technology, and specifically relates to a method and device for controlling the operation of an application.

背景技术Background technique

随着移动互联网技术的发展,应用程序的种类和功能越来越丰富,用户在电子设备中安装的应用程序也越来越多。目前,用户在使用电子设备时,通常会在应用程序和系统桌面之间来回切换,在由应用程序切换至系统桌面后,电子设备无法判断用户是否想继续保留该应用程序在后台运行。With the development of mobile Internet technology, the types and functions of applications are becoming more and more abundant, and users are installing more and more applications in electronic devices. At present, when using electronic devices, users usually switch back and forth between applications and system desktops. After switching from an application to the system desktop, the electronic device cannot determine whether the user wants to keep the application running in the background.

现有技术中,用户需要预先设置应用程序是否后台运行,以视频类应用程序为例,用户需要预先设置视频类应用程序后台播放,当由该视频类应用程序切换至系统桌面时其才会保持后台播放。然而,当用户某次切换至系统桌面时,如果不希望后台播放,则需要先暂停视频播放,再切换至系统桌面,操作比较繁琐。In the prior art, the user needs to set in advance whether the application runs in the background. For example, for a video application, the user needs to set in advance that the video application runs in the background, and the video application will continue to play in the background when the user switches to the system desktop. However, when the user switches to the system desktop, if the user does not want the video to play in the background, the user needs to pause the video first and then switch to the system desktop, which is a cumbersome operation.

发明内容Summary of the invention

本申请实施例的目的是提供一种应用程序的运行控制方法及装置,以解决现有技术中存在的操作繁琐的技术问题。The purpose of the embodiments of the present application is to provide a method and device for controlling the operation of an application program so as to solve the technical problem of complicated operation existing in the prior art.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请实施例提供了一种应用程序的运行控制方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for controlling the operation of an application program, the method comprising:

接收针对目标应用程序的第一操作,并获取所述第一操作的第一操作参数,其中,所述第一操作用于触发电子设备由所述目标应用程序切换至系统桌面,所述第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作,所述第一操作参数包括按压时长;Receiving a first operation for a target application and acquiring a first operation parameter of the first operation, wherein the first operation is used to trigger the electronic device to switch from the target application to the system desktop, the first operation includes: an operation triggered by a navigation gesture, or an operation triggered by a navigation key, and the first operation parameter includes a pressing duration;

确定所述按压时长是否达到预设时长,若是,则在屏幕上显示第一区域和第二区域;Determine whether the pressing duration reaches a preset duration, and if so, display the first area and the second area on the screen;

接收针对所述屏幕区域的第二操作,并获取所述第二操作的第二操作参数,其中,所述第二操作参数包括:操作区域和操作类型;receiving a second operation for the screen area, and acquiring a second operation parameter of the second operation, wherein the second operation parameter includes: an operation area and an operation type;

根据所述第二操作参数,确定在切换至系统桌面后是否还在后台运行所述目标应用程序。According to the second operation parameter, it is determined whether the target application is still running in the background after switching to the system desktop.

可选地,作为一个实施例,所述根据所述第二操作参数,确定在切换至系统桌面后是否还在后台运行所述目标应用程序,包括:Optionally, as an embodiment, determining, according to the second operation parameter, whether the target application is still running in the background after switching to the system desktop includes:

当所述第二操作为滑动至所述第一区域的操作时,确定在切换至系统桌面后关闭所述目标应用程序;When the second operation is an operation of sliding to the first area, determining to close the target application after switching to the system desktop;

当所述第二操作为滑动至所述第二区域的操作时,确定在切换至系统桌面后还在后台运行所述目标应用程序。When the second operation is an operation of sliding to the second area, it is determined that the target application is still running in the background after switching to the system desktop.

可选地,作为一个实施例,所述方法还包括:Optionally, as an embodiment, the method further includes:

若所述按压时长低于预设时长,则确定在切换至系统桌面后关闭所述目标应用程序。If the pressing duration is shorter than a preset duration, it is determined that the target application is closed after switching to the system desktop.

可选地,作为一个实施例,所述第一区域为所述屏幕的左半区域,所述第二区域为所述屏幕的右半区域;或者,Optionally, as an embodiment, the first area is a left half area of the screen, and the second area is a right half area of the screen; or,

所述第一区域为所述屏幕的上半区域,所述第二区域为所述屏幕的下半区域。The first area is an upper half of the screen, and the second area is a lower half of the screen.

可选地,作为一个实施例,所述第一区域和第二区域上显示有提示语,其中,所述提示语用于指示用户操作与切换至系统桌面后所述目标应用程序运行方式的对应关系。Optionally, as an embodiment, prompts are displayed on the first area and the second area, wherein the prompts are used to indicate the correspondence between user operations and the running mode of the target application after switching to the system desktop.

第二方面,本申请实施例提供了一种应用程序的运行控制装置,所述装置包括:In a second aspect, an embodiment of the present application provides a running control device for an application program, the device comprising:

第一接收模块,用于接收针对目标应用程序的第一操作,其中,所述第一操作用于触发电子设备由所述目标应用程序切换至系统桌面,所述第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作;A first receiving module, configured to receive a first operation for a target application, wherein the first operation is used to trigger the electronic device to switch from the target application to the system desktop, and the first operation includes: an operation triggered by a navigation gesture, or an operation triggered by a navigation key;

第一获取模块,用于获取所述第一操作的第一操作参数,其中,所述第一操作参数包括按压时长;A first acquisition module, configured to acquire a first operation parameter of the first operation, wherein the first operation parameter includes a pressing duration;

第一确定模块,用于确定所述按压时长是否达到预设时长;A first determination module, used to determine whether the pressing duration reaches a preset duration;

显示模块,用于在所述第一确定模块的确定结果为是的情况下,在屏幕上显示第一区域和第二区域;A display module, configured to display the first area and the second area on a screen when the determination result of the first determination module is yes;

第二接收模块,用于接收针对所述屏幕区域的第二操作;A second receiving module, used for receiving a second operation on the screen area;

第二获取模块,用于获取所述第二操作的第二操作参数,其中,所述第二操作参数包括:操作区域和操作类型;A second acquisition module, configured to acquire a second operation parameter of the second operation, wherein the second operation parameter includes: an operation area and an operation type;

第二确定模块,用于根据所述第二操作参数,确定在切换至系统桌面后是否还在后台运行所述目标应用程序。The second determination module is used to determine whether the target application is still running in the background after switching to the system desktop according to the second operation parameter.

可选地,作为一个实施例,所述第二确定模块包括:Optionally, as an embodiment, the second determining module includes:

第一确定子模块,用于当所述第二操作为滑动至所述第一区域的操作时,确定在切换至系统桌面后关闭所述目标应用程序;A first determining submodule, configured to determine, when the second operation is an operation of sliding to the first area, to close the target application after switching to the system desktop;

第二确定子模块,用于当所述第二操作为滑动至所述第二区域的操作时,确定在切换至系统桌面后还在后台运行所述目标应用程序。The second determining submodule is used to determine that the target application is still running in the background after switching to the system desktop when the second operation is an operation of sliding to the second area.

可选地,作为一个实施例,所述装置还包括:Optionally, as an embodiment, the device further includes:

第三确定模块,用于在所述第一确定模块的确定结果为否的情况下,确定在切换至系统桌面后关闭所述目标应用程序。The third determination module is used to determine to close the target application after switching to the system desktop when the determination result of the first determination module is no.

可选地,作为一个实施例,所述第一区域为所述屏幕的左半区域,所述第二区域为所述屏幕的右半区域;或者,Optionally, as an embodiment, the first area is a left half area of the screen, and the second area is a right half area of the screen; or,

所述第一区域为所述屏幕的上半区域,所述第二区域为所述屏幕的下半区域。The first area is an upper half of the screen, and the second area is a lower half of the screen.

可选地,作为一个实施例,所述第一区域和第二区域上显示有提示语,其中,所述提示语用于指示用户操作与切换至系统桌面后所述目标应用程序运行方式的对应关系。Optionally, as an embodiment, prompts are displayed on the first area and the second area, wherein the prompts are used to indicate the correspondence between user operations and the running mode of the target application after switching to the system desktop.

第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的应用程序的运行控制方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the application operation control method as described in the first aspect.

第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的应用程序的运行控制方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the application program operation control method described in the first aspect are implemented.

第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的应用程序的运行控制方法。In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the operation control method of the application as described in the first aspect.

本申请实施例中,在接收用于触发电子设备由目标应用程序切换至系统桌面的第一操作时,可以获取第一操作的按压时长,确定第一操作的按压时长达到预设时长,在屏幕上显示第一区域和第二区域;之后接收针对屏幕区域的第二操作,并获取第二操作的操作区域和操作类型,根据第二操作的操作区域和操作类型,确定在切换至系统桌面后是否还在后台运行目标应用程序。与现有技术相比,本申请实施例中,用户在退出应用程序切换至系统桌面时,只需通过简单调节退出操作的按压时长和针对屏幕上显示的区域进行简单操作,就可以选择是否保留应用程序后台运行,操作比较简单快捷。In the embodiment of the present application, when receiving a first operation for triggering the electronic device to switch from the target application to the system desktop, the pressing duration of the first operation can be obtained, and it is determined that the pressing duration of the first operation reaches a preset duration, and the first area and the second area are displayed on the screen; then a second operation for the screen area is received, and the operation area and operation type of the second operation are obtained, and it is determined whether the target application is still running in the background after switching to the system desktop based on the operation area and operation type of the second operation. Compared with the prior art, in the embodiment of the present application, when the user exits the application and switches to the system desktop, he only needs to simply adjust the pressing duration of the exit operation and perform simple operations on the area displayed on the screen to choose whether to keep the application running in the background, and the operation is relatively simple and quick.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本申请实施例提供的一种应用程序的运行控制方法的流程图;FIG1 is a flow chart of a method for controlling the operation of an application program provided in an embodiment of the present application;

图2是本申请实施例提供的一种在屏幕上显示第一区域和第二区域的示例图;FIG2 is an example diagram of displaying a first area and a second area on a screen provided by an embodiment of the present application;

图3是本申请实施例提供的又一种在屏幕上显示第一区域和第二区域的示例图;FIG3 is another example diagram of displaying a first area and a second area on a screen provided by an embodiment of the present application;

图4是本申请实施例提供的一种应用程序的运行控制装置的结构框图;FIG4 is a structural block diagram of an application program operation control device provided in an embodiment of the present application;

图5是本申请实施例提供的一种电子设备的结构示意图;FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

图6是实现本申请各个实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and/or" in the specification and claims represents at least one of the connected objects, and the character "/" generally indicates that the objects associated with each other are in an "or" relationship.

本申请实施例提出了一种应用程序的运行控制方法及装置。The embodiments of the present application provide a method and device for controlling the operation of an application.

下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的应用程序的运行控制方法进行详细地说明。The following is a detailed description of the application program operation control method provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

需要说明的是,本申请实施例提供的应用程序的运行控制方法适用于电子设备,在实际应用中,该电子设备可以包括:智能手机、平板电脑、个人数字助理等移动终端,本申请实施例对此不作限定。It should be noted that the application program operation control method provided in the embodiment of the present application is applicable to electronic devices. In practical applications, the electronic devices may include: mobile terminals such as smart phones, tablet computers, personal digital assistants, etc., and the embodiment of the present application does not limit this.

图1是本申请实施例提供的一种应用程序的运行控制方法的流程图,如图1所示,该方法可以包括以下步骤:步骤101、步骤102、步骤103和步骤104,其中,FIG1 is a flow chart of a method for controlling the operation of an application program provided in an embodiment of the present application. As shown in FIG1 , the method may include the following steps: step 101, step 102, step 103 and step 104, wherein:

在步骤101中,接收针对目标应用程序的第一操作,并获取第一操作的第一操作参数,其中,第一操作用于触发电子设备由目标应用程序切换至系统桌面,第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作,第一操作参数包括按压时长。In step 101, a first operation for a target application is received and a first operation parameter of the first operation is obtained, wherein the first operation is used to trigger the electronic device to switch from the target application to the system desktop, and the first operation includes: an operation triggered by a navigation gesture, or an operation triggered by a navigation key, and the first operation parameter includes a press duration.

本申请实施例中,目标应用程序可以为电子设备中已安装的任一应用程序;或者,目标应用程序也可以为电子设备中已安装的特定类型的应用程序;或者,目标应用程序也可以为电子设备中已安装的用户指定的应用程序,本申请实施例对此不作限定。In an embodiment of the present application, the target application may be any application installed in the electronic device; or, the target application may be an application of a specific type installed in the electronic device; or, the target application may be a user-specified application installed in the electronic device, which is not limited in the embodiment of the present application.

本申请实施例中,当电子设备支持用户使用导航手势、通过底部上滑返回系统桌面时,第一操作为通过导航手势触发的操作,具体的,第一操作为以电子设备屏幕底部为起始位置的向上滑动操作。In an embodiment of the present application, when the electronic device supports users to use navigation gestures and return to the system desktop by swiping up from the bottom, the first operation is an operation triggered by the navigation gesture. Specifically, the first operation is an upward swiping operation starting from the bottom of the electronic device screen.

本申请实施例中,当电子设备支持用户使用导航键,例如home键返回系统桌面时,第一操作为通过导航键触发的操作,具体的,第一操作为按压导航键的操作。In an embodiment of the present application, when the electronic device supports the user to use the navigation key, such as the home key to return to the system desktop, the first operation is the operation triggered by the navigation key. Specifically, the first operation is the operation of pressing the navigation key.

在步骤102中,确定按压时长是否达到预设时长,若是,则在屏幕上显示第一区域和第二区域。In step 102, it is determined whether the pressing duration reaches a preset duration, and if so, the first area and the second area are displayed on the screen.

本申请实施例中,当电子设备支持用户使用导航手势、通过底部上滑返回系统桌面时,确定第一操作的按压时长是否达到预设时长,实际上是确定用户从屏幕底部上滑时,是否立即松手。此时,用户已有退出应用程序返回系统桌面的意愿,即将根据用户是否立即松手,进行不同响应。In the embodiment of the present application, when the electronic device supports the user to use navigation gestures and return to the system desktop by swiping up from the bottom, determining whether the pressing time of the first operation reaches the preset time is actually determining whether the user immediately lets go when swiping up from the bottom of the screen. At this time, the user has the intention to exit the application and return to the system desktop, and different responses will be made depending on whether the user lets go immediately.

本申请实施例中,当电子设备支持用户使用导航键,例如home键返回系统桌面时,确定第一操作的按压时长是否达到预设时长,实际上是确定用户点击导航键时,是否立即松手。此时,用户已有退出应用程序返回系统桌面的意愿,即将根据用户是否立即松手,进行不同响应。In the embodiment of the present application, when the electronic device supports the user to use the navigation key, such as the home key to return to the system desktop, determining whether the pressing time of the first operation reaches the preset time is actually determining whether the user releases the button immediately after clicking the navigation key. At this time, the user has the intention to exit the application and return to the system desktop, and different responses will be made according to whether the user releases the button immediately.

本申请实施例中,如果按压时长达到预设时长,表明用户未松手,则在电子设备的屏幕上显示两个区域,即第一区域和第二区域。如果按压时长低于预设时长,表明用户立即松手,则确定在切换至系统桌面后关闭目标应用程序。In the embodiment of the present application, if the pressing time reaches the preset time, indicating that the user has not let go, two areas, namely the first area and the second area, are displayed on the screen of the electronic device. If the pressing time is less than the preset time, indicating that the user immediately lets go, it is determined to close the target application after switching to the system desktop.

本申请实施例中,可以根据用户的行为习惯或者用户的设置,来确定第一区域和第二区域的位置,进而在屏幕上显示第一区域和第二区域。在实际应用中,第一区域可以为屏幕的左半区域,第二区域为屏幕的右半区域;或者,第一区域为屏幕的上半区域,第二区域为屏幕的下半区域。In the embodiment of the present application, the positions of the first area and the second area can be determined according to the user's behavior habits or user settings, and then the first area and the second area can be displayed on the screen. In practical applications, the first area can be the left half of the screen, and the second area can be the right half of the screen; or the first area can be the upper half of the screen, and the second area can be the lower half of the screen.

本申请实施例中,第一区域和第二区域上显示有提示语,其中,该提示语用于指示用户操作与切换至系统桌面后目标应用程序运行方式的对应关系。In the embodiment of the present application, prompts are displayed on the first area and the second area, wherein the prompts are used to indicate the correspondence between the user operation and the running mode of the target application after switching to the system desktop.

在一个例子中,如图2所示,电子设备20支持用户使用导航手势、通过底部上滑返回系统桌面,当用户的第一操作的按压时长达到预设时长时,在电子设备20的屏幕上显示第一区域21和第二区域22,第一区域21上显示有提示语“手指移动至此区域,关闭后台运行”,第二区域22上显示有提示语“手指移动至此区域,保留后台运行”。In one example, as shown in FIG2 , the electronic device 20 supports the user to use navigation gestures and return to the system desktop by swiping up from the bottom. When the pressing time of the user's first operation reaches a preset time, a first area 21 and a second area 22 are displayed on the screen of the electronic device 20. A prompt "Move your finger to this area to close background operation" is displayed on the first area 21, and a prompt "Move your finger to this area to keep background operation" is displayed on the second area 22.

在另一个例子中,如图3所示,电子设备30支持用户使用导航键返回系统桌面,当用户的第一操作的按压时长达到预设时长时,在电子设备30的屏幕上显示第一区域31和第二区域32,第一区域31上显示有提示语“手指移动至此区域,关闭后台运行”,第二区域32上显示有提示语“手指移动至此区域,保留后台运行”。In another example, as shown in FIG3 , the electronic device 30 supports the user to use the navigation key to return to the system desktop. When the pressing time of the user's first operation reaches a preset time, a first area 31 and a second area 32 are displayed on the screen of the electronic device 30. A prompt "Move your finger to this area to close background operation" is displayed on the first area 31, and a prompt "Move your finger to this area to keep background operation" is displayed on the second area 32.

在步骤103中,接收针对屏幕区域的第二操作,并获取第二操作的第二操作参数,其中,第二操作参数包括:操作区域和操作类型。In step 103, a second operation on the screen area is received, and a second operation parameter of the second operation is acquired, wherein the second operation parameter includes: an operation area and an operation type.

本申请实施例中,获取第二操作的第二操作参数的目的是:确定第二操作是在第一区域触发的,还是在第二区域触发的,以及确定第二操作的操作类型是滑动操作、点击操作还是长按操作等。In the embodiment of the present application, the purpose of obtaining the second operation parameter of the second operation is to determine whether the second operation is triggered in the first area or the second area, and to determine whether the operation type of the second operation is a sliding operation, a click operation, or a long press operation, etc.

在步骤104中,根据第二操作参数,确定在切换至系统桌面后是否还在后台运行目标应用程序。In step 104, it is determined whether the target application is still running in the background after switching to the system desktop according to the second operating parameter.

在本申请提供的一个实施方式中,上述步骤104具体可以包括以下步骤:In one implementation provided in the present application, the above step 104 may specifically include the following steps:

当第二操作为滑动至第一区域的操作时,也就是第二操作的操作区域为第一区域,操作类型为滑动操作时,确定在切换至系统桌面后关闭目标应用程序;When the second operation is an operation of sliding to the first area, that is, the operation area of the second operation is the first area, and the operation type is a sliding operation, determining to close the target application after switching to the system desktop;

当第二操作为滑动至第二区域的操作时,也就是第二操作的操作区域为第二区域,操作类型为滑动操作时,确定在切换至系统桌面后还在后台运行目标应用程序。When the second operation is an operation of sliding to the second area, that is, the operation area of the second operation is the second area, and the operation type is a sliding operation, it is determined that the target application is still running in the background after switching to the system desktop.

在一个例子中,当电子设备支持用户使用导航手势、通过底部上滑返回系统桌面时,用户从屏幕底部上滑,此时,用户已有退出应用程序返回系统桌面的意愿,即将根据用户是否立即松手,进行不同响应。具体的,如果用户立即松手,则不保留应用程序后台运行,并返回系统桌面。如果用户没有立即松手,则在屏幕显示左右两个区域,左右区域各生成提示语。如图2所示,如果用户将手指滑动到左区域,则不保留应用程序后台运行,并返回系统桌面。如果用户将手指滑动到右区域,则保留应用程序后台运行,并返回系统桌面,例如,视频应用保留视频继续播放,下载应用继续后台下载等,同时返回系统桌面。In one example, when the electronic device supports the user to use navigation gestures and return to the system desktop by swiping up from the bottom, the user swipes up from the bottom of the screen. At this time, the user has the intention to exit the application and return to the system desktop, and different responses will be made depending on whether the user lets go immediately. Specifically, if the user lets go immediately, the application will not be kept running in the background and will return to the system desktop. If the user does not let go immediately, two left and right areas are displayed on the screen, and prompts are generated in each of the left and right areas. As shown in Figure 2, if the user slides his finger to the left area, the application will not be kept running in the background and will return to the system desktop. If the user slides his finger to the right area, the application will be kept running in the background and will return to the system desktop. For example, the video application keeps the video to continue playing, the download application continues to download in the background, etc., and returns to the system desktop at the same time.

在另一个例子中,当电子设备支持用户使用导航键返回系统桌面时,用户点击导航键。此时,用户已有退出应用程序返回系统桌面的意愿,即将根据用户是否立即松手,进行不同响应。具体的,如果用户点击导航键后立即松手,则不保留应用程序后台运行,并返回系统桌面。若用户点击导航键后没有立即松手,则在屏幕显示左右两个区域,左右区域各生成提示语。如图3所示,如果用户将手指滑动到左区域,则不保留应用程序后台运行,并返回系统桌面。如果用户将手指滑动到右区域,则保留应用程序后台运行,并返回系统桌面,例如,视频应用保留视频继续播放,下载应用继续后台下载等,同时返回系统桌面。In another example, when the electronic device supports the user to use the navigation key to return to the system desktop, the user clicks the navigation key. At this point, the user has the intention to exit the application and return to the system desktop, and different responses will be made depending on whether the user lets go immediately. Specifically, if the user lets go immediately after clicking the navigation key, the application will not be kept running in the background and will return to the system desktop. If the user does not let go immediately after clicking the navigation key, two left and right areas are displayed on the screen, and prompts are generated in each of the left and right areas. As shown in Figure 3, if the user slides his finger to the left area, the application will not be kept running in the background and will return to the system desktop. If the user slides his finger to the right area, the application will be kept running in the background and will return to the system desktop. For example, the video application will keep the video playing, the download application will continue downloading in the background, etc., and will return to the system desktop at the same time.

可见,本申请实施例中,用户在使用导航手势或者导航键从应用程序返回系统桌面时,通过长按和滑动的操作,可以快速选择是否保持应用程序后台运行,操作方便快捷,提高了用户体验。It can be seen that in the embodiment of the present application, when the user uses a navigation gesture or navigation key to return to the system desktop from an application, the user can quickly choose whether to keep the application running in the background through long pressing and sliding operations. The operation is convenient and fast, which improves the user experience.

由上述实施例可见,该实施例中,在接收用于触发电子设备由目标应用程序切换至系统桌面的第一操作时,可以获取第一操作的按压时长,确定第一操作的按压时长达到预设时长,在屏幕上显示第一区域和第二区域;之后接收针对屏幕区域的第二操作,并获取第二操作的操作区域和操作类型,根据第二操作的操作区域和操作类型,确定在切换至系统桌面后是否还在后台运行目标应用程序。与现有技术相比,本申请实施例中,用户在退出应用程序切换至系统桌面时,只需通过简单调节退出操作的按压时长和针对屏幕上显示的区域进行简单操作,就可以选择是否保留应用程序后台运行,操作比较简单快捷。As can be seen from the above embodiments, in this embodiment, when receiving a first operation for triggering the electronic device to switch from a target application to a system desktop, the pressing duration of the first operation can be obtained, and it is determined that the pressing duration of the first operation reaches a preset duration, and the first area and the second area are displayed on the screen; then a second operation for the screen area is received, and the operation area and operation type of the second operation are obtained, and according to the operation area and operation type of the second operation, it is determined whether the target application is still running in the background after switching to the system desktop. Compared with the prior art, in the embodiment of the present application, when the user exits the application and switches to the system desktop, he only needs to simply adjust the pressing duration of the exit operation and perform simple operations on the area displayed on the screen to choose whether to keep the application running in the background, and the operation is relatively simple and quick.

需要说明的是,本申请实施例提供的应用程序的运行控制方法,执行主体可以为应用程序的运行控制装置,或者该应用程序的运行控制装置中的用于执行加载应用程序的运行控制方法的控制模块。本申请实施例中以应用程序的运行控制装置执行加载应用程序的运行控制方法为例,说明本申请实施例提供的应用程序的运行控制装置。It should be noted that the execution subject of the application program operation control method provided in the embodiment of the present application may be the application program operation control device, or a control module in the application program operation control device for executing the operation control method for loading the application program. In the embodiment of the present application, the application program operation control device provided in the embodiment of the present application is described by taking the application program operation control method for loading the application program as an example.

图4是本申请实施例提供的一种应用程序的运行控制装置的结构框图,如图4所示,应用程序的运行控制装置400,可以包括:第一接收模块401、第一获取模块402、第一确定模块403、显示模块404、第二接收模块405、第二获取模块406和第二确定模块407,其中,FIG4 is a structural block diagram of an application program operation control device provided in an embodiment of the present application. As shown in FIG4 , the application program operation control device 400 may include: a first receiving module 401, a first acquisition module 402, a first determination module 403, a display module 404, a second receiving module 405, a second acquisition module 406, and a second determination module 407, wherein:

第一接收模块401,用于接收针对目标应用程序的第一操作,其中,所述第一操作用于触发电子设备由所述目标应用程序切换至系统桌面,所述第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作;A first receiving module 401 is used to receive a first operation for a target application, wherein the first operation is used to trigger the electronic device to switch from the target application to the system desktop, and the first operation includes: an operation triggered by a navigation gesture, or an operation triggered by a navigation key;

第一获取模块402,用于获取所述第一操作的第一操作参数,其中,所述第一操作参数包括按压时长;A first acquisition module 402, configured to acquire a first operation parameter of the first operation, wherein the first operation parameter includes a pressing duration;

第一确定模块403,用于确定所述按压时长是否达到预设时长;A first determination module 403 is used to determine whether the pressing duration reaches a preset duration;

显示模块404,用于在所述第一确定模块的确定结果为是的情况下,在屏幕上显示第一区域和第二区域;A display module 404, configured to display the first area and the second area on a screen when the determination result of the first determination module is yes;

第二接收模块405,用于接收针对所述屏幕区域的第二操作;A second receiving module 405, configured to receive a second operation on the screen area;

第二获取模块406,用于获取所述第二操作的第二操作参数,其中,所述第二操作参数包括:操作区域和操作类型;A second acquisition module 406 is used to acquire a second operation parameter of the second operation, wherein the second operation parameter includes: an operation area and an operation type;

第二确定模块407,用于根据所述第二操作参数,确定在切换至系统桌面后是否还在后台运行所述目标应用程序。The second determination module 407 is used to determine whether the target application is still running in the background after switching to the system desktop according to the second operation parameter.

由上述实施例可见,该实施例中,在接收用于触发电子设备由目标应用程序切换至系统桌面的第一操作时,可以获取第一操作的按压时长,确定第一操作的按压时长达到预设时长,在屏幕上显示第一区域和第二区域;之后接收针对屏幕区域的第二操作,并获取第二操作的操作区域和操作类型,根据第二操作的操作区域和操作类型,确定在切换至系统桌面后是否还在后台运行目标应用程序。与现有技术相比,本申请实施例中,用户在退出应用程序切换至系统桌面时,只需通过简单调节退出操作的按压时长和针对屏幕上显示的区域进行简单操作,就可以选择是否保留应用程序后台运行,操作比较简单快捷。As can be seen from the above embodiments, in this embodiment, when receiving a first operation for triggering the electronic device to switch from a target application to a system desktop, the pressing duration of the first operation can be obtained, and it is determined that the pressing duration of the first operation reaches a preset duration, and the first area and the second area are displayed on the screen; then a second operation for the screen area is received, and the operation area and operation type of the second operation are obtained, and according to the operation area and operation type of the second operation, it is determined whether the target application is still running in the background after switching to the system desktop. Compared with the prior art, in the embodiment of the present application, when the user exits the application and switches to the system desktop, he only needs to simply adjust the pressing duration of the exit operation and perform simple operations on the area displayed on the screen to choose whether to keep the application running in the background, and the operation is relatively simple and quick.

可选地,作为一个实施例,所述第二确定模块407,可以包括:Optionally, as an embodiment, the second determining module 407 may include:

第一确定子模块,用于当所述第二操作为滑动至所述第一区域的操作时,确定在切换至系统桌面后关闭所述目标应用程序;A first determining submodule, configured to determine, when the second operation is an operation of sliding to the first area, to close the target application after switching to the system desktop;

第二确定子模块,用于当所述第二操作为滑动至所述第二区域的操作时,确定在切换至系统桌面后还在后台运行所述目标应用程序。The second determining submodule is used to determine that the target application is still running in the background after switching to the system desktop when the second operation is an operation of sliding to the second area.

可选地,作为一个实施例,所述应用程序的运行控制装置400,还可以包括:Optionally, as an embodiment, the application program operation control device 400 may further include:

第三确定模块,用于在所述第一确定模块的确定结果为否的情况下,确定在切换至系统桌面后关闭所述目标应用程序。The third determination module is used to determine to close the target application after switching to the system desktop when the determination result of the first determination module is no.

可选地,作为一个实施例,所述第一区域为所述屏幕的左半区域,所述第二区域为所述屏幕的右半区域;或者,Optionally, as an embodiment, the first area is a left half area of the screen, and the second area is a right half area of the screen; or,

所述第一区域为所述屏幕的上半区域,所述第二区域为所述屏幕的下半区域。The first area is an upper half of the screen, and the second area is a lower half of the screen.

可选地,作为一个实施例,所述第一区域和第二区域上显示有提示语,其中,所述提示语用于指示用户操作与切换至系统桌面后所述目标应用程序运行方式的对应关系。Optionally, as an embodiment, prompts are displayed on the first area and the second area, wherein the prompts are used to indicate the correspondence between user operations and the running mode of the target application after switching to the system desktop.

本申请实施例中的应用程序的运行控制装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The operation control device of the application in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

本申请实施例中的应用程序的运行控制装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The application program operation control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

本申请实施例提供的应用程序的运行控制装置能够实现图1方法实施例实现的各个过程,为避免重复,这里不再赘述。The application program operation control device provided in the embodiment of the present application can implement each process implemented in the method embodiment of Figure 1. To avoid repetition, it will not be described here.

可选地,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述应用程序的运行控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in Figure 5, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the embodiment of the operation control method of the above-mentioned application is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

图6为实现本申请实施例的一种电子设备的硬件结构示意图。该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。Fig. 6 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.

本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The electronic device structure shown in FIG6 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange components differently, which will not be described in detail here.

其中,用户输入单元607,用于接收针对目标应用程序的第一操作,其中,所述第一操作用于触发电子设备由所述目标应用程序切换至系统桌面,所述第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作;The user input unit 607 is used to receive a first operation for a target application, wherein the first operation is used to trigger the electronic device to switch from the target application to the system desktop, and the first operation includes: an operation triggered by a navigation gesture, or an operation triggered by a navigation key;

处理器610,用于获取所述第一操作的第一操作参数,其中,所述第一操作参数包括按压时长;确定所述按压时长是否达到预设时长;The processor 610 is configured to obtain a first operation parameter of the first operation, wherein the first operation parameter includes a pressing duration; and determine whether the pressing duration reaches a preset duration;

显示单元606,用于若按压时长达到预设时长,则在屏幕上显示第一区域和第二区域;Display unit 606, configured to display the first area and the second area on the screen if the pressing time reaches a preset time;

用户输入单元607,还用于接收针对所述屏幕区域的第二操作;The user input unit 607 is further used to receive a second operation on the screen area;

处理器610,还用于获取所述第二操作的第二操作参数,其中,所述第二操作参数包括:操作区域和操作类型;根据所述第二操作参数,确定在切换至系统桌面后是否还在后台运行所述目标应用程序。Processor 610 is also used to obtain a second operation parameter of the second operation, wherein the second operation parameter includes: an operation area and an operation type; and based on the second operation parameter, determine whether the target application is still running in the background after switching to the system desktop.

可见,本申请实施例中,在接收用于触发电子设备由目标应用程序切换至系统桌面的第一操作时,可以获取第一操作的按压时长,确定第一操作的按压时长达到预设时长,在屏幕上显示第一区域和第二区域;之后接收针对屏幕区域的第二操作,并获取第二操作的操作区域和操作类型,根据第二操作的操作区域和操作类型,确定在切换至系统桌面后是否还在后台运行目标应用程序。与现有技术相比,本申请实施例中,用户在退出应用程序切换至系统桌面时,只需通过简单调节退出操作的按压时长和针对屏幕上显示的区域进行简单操作,就可以选择是否保留应用程序后台运行,操作比较简单快捷。It can be seen that in the embodiment of the present application, when receiving the first operation for triggering the electronic device to switch from the target application to the system desktop, the pressing duration of the first operation can be obtained, and it is determined that the pressing duration of the first operation reaches the preset duration, and the first area and the second area are displayed on the screen; then the second operation for the screen area is received, and the operation area and operation type of the second operation are obtained, and according to the operation area and operation type of the second operation, it is determined whether the target application is still running in the background after switching to the system desktop. Compared with the prior art, in the embodiment of the present application, when the user exits the application and switches to the system desktop, he only needs to simply adjust the pressing duration of the exit operation and perform simple operations on the area displayed on the screen to choose whether to keep the application running in the background, and the operation is relatively simple and quick.

可选地,作为一个实施例,处理器610,还用于当所述第二操作为滑动至所述第一区域的操作时,确定在切换至系统桌面后关闭所述目标应用程序;当所述第二操作为滑动至所述第二区域的操作时,确定在切换至系统桌面后还在后台运行所述目标应用程序。Optionally, as an embodiment, the processor 610 is further used to determine that the target application is closed after switching to the system desktop when the second operation is an operation of sliding to the first area; and to determine that the target application is still running in the background after switching to the system desktop when the second operation is an operation of sliding to the second area.

可选地,作为一个实施例,处理器610,还用于若所述按压时长低于预设时长,则确定在切换至系统桌面后关闭所述目标应用程序。Optionally, as an embodiment, the processor 610 is further used to determine to close the target application after switching to the system desktop if the pressing duration is shorter than a preset duration.

可选地,作为一个实施例,所述第一区域为所述屏幕的左半区域,所述第二区域为所述屏幕的右半区域;或者,Optionally, as an embodiment, the first area is a left half area of the screen, and the second area is a right half area of the screen; or,

所述第一区域为所述屏幕的上半区域,所述第二区域为所述屏幕的下半区域。The first area is an upper half of the screen, and the second area is a lower half of the screen.

可选地,作为一个实施例,所述第一区域和第二区域上显示有提示语,其中,所述提示语用于指示用户操作与切换至系统桌面后所述目标应用程序运行方式的对应关系。Optionally, as an embodiment, prompts are displayed on the first area and the second area, wherein the prompts are used to indicate the correspondence between user operations and the running mode of the target application after switching to the system desktop.

应理解的是,本申请实施例中,输入单元604可以包括图形处理器(GraphicsProcessing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts, a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 may be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and applications, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.

本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述应用程序的运行控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned application program operation control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、磁碟或者光盘等。The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述应用程序的运行控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned application operation control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims (10)

1. A method for controlling the operation of an application program, the method comprising:
Receiving a first operation aiming at a target application program, and acquiring a first operation parameter of the first operation, wherein the first operation is used for triggering the electronic equipment to be switched to a system desktop by the target application program, and the first operation comprises the following steps: an operation triggered by a navigation gesture or an operation triggered by a navigation key, the first operation parameter including a duration of a press;
Determining whether the pressing time length reaches a preset time length, if so, displaying a first area and a second area on a screen;
receiving a second operation for the screen area, and acquiring a second operation parameter of the second operation, wherein the second operation parameter comprises: an operation area and an operation type;
and determining whether the target application program is still running in the background after switching to the system desktop according to the second operation parameter.
2. The method of claim 1, wherein determining whether the target application is still running in the background after switching to the system desktop based on the second operating parameter comprises:
When the second operation is an operation of sliding to the first area, determining to close the target application program after switching to a system desktop;
and when the second operation is the operation of sliding to the second area, determining to run the target application program in the background after switching to the system desktop.
3. The method according to claim 1, wherein the method further comprises:
And if the pressing time is lower than the preset time, determining to close the target application program after switching to the system desktop.
4. A method according to any one of claims 1 to 3, wherein the first region is a left half region of the screen and the second region is a right half region of the screen; or alternatively
The first area is the upper half area of the screen, and the second area is the lower half area of the screen.
5. The method of claim 4, wherein a prompt is displayed in the first area and the second area, and the prompt is used to indicate a correspondence between a user operation and a running mode of the target application after switching to a system desktop.
6. An operation control device for an application program, the device comprising:
The first receiving module is configured to receive a first operation for a target application program, where the first operation is configured to trigger the electronic device to switch from the target application program to a system desktop, and the first operation includes: an operation triggered by a navigation gesture or an operation triggered by a navigation key;
a first obtaining module, configured to obtain a first operation parameter of the first operation, where the first operation parameter includes a pressing duration;
The first determining module is used for determining whether the pressing duration reaches a preset duration;
the display module is used for displaying a first area and a second area on a screen when the determination result of the first determination module is yes;
a second receiving module for receiving a second operation for the screen area;
A second obtaining module, configured to obtain a second operation parameter of the second operation, where the second operation parameter includes: an operation area and an operation type;
And the second determining module is used for determining whether the target application program is still operated in the background after being switched to the system desktop according to the second operation parameter.
7. The apparatus of claim 6, wherein the second determining module comprises:
The first determining submodule is used for determining to close the target application program after switching to the system desktop when the second operation is an operation of sliding to the first area;
And the second determining submodule is used for determining that the target application program is still operated in the background after the system desktop is switched to when the second operation is the operation of sliding to the second area.
8. The apparatus of claim 6, wherein the apparatus further comprises:
And the third determining module is used for determining to close the target application program after switching to the system desktop under the condition that the determination result of the first determining module is NO.
9. The apparatus of any one of claims 6 to 8, wherein the first region is a left half region of the screen and the second region is a right half region of the screen; or alternatively
The first area is the upper half area of the screen, and the second area is the lower half area of the screen.
10. The apparatus of claim 9, wherein a prompt is displayed in the first area and the second area, and the prompt is used to indicate a correspondence between a user operation and a running mode of the target application after switching to a system desktop.
CN202110077791.8A 2021-01-20 2021-01-20 Application program operation control method and device Active CN112732392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110077791.8A CN112732392B (en) 2021-01-20 2021-01-20 Application program operation control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110077791.8A CN112732392B (en) 2021-01-20 2021-01-20 Application program operation control method and device

Publications (2)

Publication Number Publication Date
CN112732392A CN112732392A (en) 2021-04-30
CN112732392B true CN112732392B (en) 2024-07-19

Family

ID=75594538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110077791.8A Active CN112732392B (en) 2021-01-20 2021-01-20 Application program operation control method and device

Country Status (1)

Country Link
CN (1) CN112732392B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117724825B (en) * 2023-06-08 2024-09-17 荣耀终端有限公司 Interface display method and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063136A (en) * 2013-07-02 2014-09-24 姜洪明 Mobile operation system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744580A (en) * 2013-12-26 2014-04-23 宇龙计算机通信科技(深圳)有限公司 Terminal interface control method and mobile terminal thereof
CN107783830B (en) * 2017-10-23 2020-12-04 华为技术有限公司 A kind of multitask management method and terminal device
CN110413385B (en) * 2019-06-26 2022-10-18 维沃移动通信有限公司 Task management method, terminal device and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063136A (en) * 2013-07-02 2014-09-24 姜洪明 Mobile operation system

Also Published As

Publication number Publication date
CN112732392A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
WO2023005920A1 (en) Screen splitting method and apparatus, and electronic device
CN112540740B (en) Split-screen display method, device, electronic device, and readable storage medium
CN112148178A (en) Application switching method and device, electronic equipment and readable storage medium
CN112383817A (en) Volume adjusting method and device
CN114237801B (en) Desktop display method, device, electronic device and medium
WO2022242586A1 (en) Application interface method and apparatus, and electronic device
CN112083854A (en) Application program running method and device
CN111694490A (en) Setting method and device and electronic equipment
WO2016078251A1 (en) Projector playing control method, device, and computer storage medium
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN111095211B (en) Control method for application starting and user terminal
WO2023134642A1 (en) Message processing method, message processing apparatus, and electronic device
CN114222355B (en) Terminal power saving display method, device and electronic equipment
CN114090110B (en) Application program starting method and device and electronic equipment
CN112732392B (en) Application program operation control method and device
CN113230649B (en) Display control method and device
CN111796746B (en) Volume adjustment method, volume adjustment device and electronic equipment
WO2024153027A1 (en) Application display method and application display apparatus
CN106020694B (en) Electronic equipment, and method and device for dynamically adjusting selected area
CN112698762A (en) Icon display method and device and electronic equipment
WO2022161243A1 (en) Information display method and apparatus, and electronic device
CN113805756A (en) Interface display method and device, electronic equipment and storage medium
CN112764648A (en) Screen capturing method and device, electronic equipment and storage medium
CN112764625A (en) Notification message display method and device
CN112148175A (en) Method, device, electronic device and storage medium for setting notification display mode

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