Movatterモバイル変換


[0]ホーム

URL:


CN111475066A - Background switching method of application program and electronic equipment - Google Patents

Background switching method of application program and electronic equipment
Download PDF

Info

Publication number
CN111475066A
CN111475066ACN202010226072.3ACN202010226072ACN111475066ACN 111475066 ACN111475066 ACN 111475066ACN 202010226072 ACN202010226072 ACN 202010226072ACN 111475066 ACN111475066 ACN 111475066A
Authority
CN
China
Prior art keywords
target
touch
background
priority
running
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.)
Granted
Application number
CN202010226072.3A
Other languages
Chinese (zh)
Other versions
CN111475066B (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 LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN202010226072.3ApriorityCriticalpatent/CN111475066B/en
Publication of CN111475066ApublicationCriticalpatent/CN111475066A/en
Application grantedgrantedCritical
Publication of CN111475066BpublicationCriticalpatent/CN111475066B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例提供了一种应用程序的后台切换方法及电子设备。所述方法应用于电子设备,所述方法包括:在显示目标应用程序的显示界面时,接收用户的第一触控操作;响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。本发明实施例解决了现有技术中,查找后台运行的APP需要时间成本且APP可能被结束进程的问题。

Figure 202010226072

Embodiments of the present invention provide a background switching method of an application program and an electronic device. The method is applied to an electronic device, and the method includes: when a display interface of a target application is displayed, receiving a user's first touch operation; and in response to the first touch operation, running the target application in the background , and determine the target priority of the target application running in the background according to the target parameter of the first touch operation; wherein, the target parameter includes at least one of the following: a touch starting point position, a touch ending point position, and Touch type. The embodiments of the present invention solve the problems in the prior art that it takes time to search for an APP running in the background and the APP may be terminated.

Figure 202010226072

Description

Translated fromChinese
应用程序的后台切换方法及电子设备Background switching method of application program and electronic device

技术领域technical field

本发明涉及移动通信技术领域,尤其涉及一种应用程序的后台切换方法及电子设备。The present invention relates to the technical field of mobile communication, and in particular, to a background switching method of an application program and an electronic device.

背景技术Background technique

随着移动通信技术的迅速发展,以智能手机为首的电子设备已成为人们生活中各方面不可或缺的工具。电子设备的各种应用程序(Application,APP) 的功能也逐渐完善,不再只是单纯地起到通信作用,较多的是为用户提供各种智能化服务,给用户工作、生活带来了极大的便利。With the rapid development of mobile communication technology, electronic devices such as smart phones have become indispensable tools in all aspects of people's lives. The functions of various application programs (Application, APP) of electronic devices are also gradually improved, not just for communication, but for providing users with various intelligent services, which bring great benefits to users' work and life. Great convenience.

现有技术中,很多APP支持后台运行,即在用户退出APP时,APP并未结束进程,而是退出到电子设备后台运行;若要结束进程,完全关闭APP,在用户触发退出键后,还需要用户二次确认,操作较为繁琐;因此,很多用户使用完App并不会直接结束App进程,通常会直接返回到手机桌面。In the prior art, many APPs support background operation, that is, when the user exits the APP, the APP does not end the process, but exits to the electronic device to run in the background; if the process is to be terminated, the APP is completely closed, and after the user triggers the exit button, the APP is returned. It requires a second confirmation from the user, and the operation is cumbersome; therefore, many users will not directly end the App process after using the App, but usually return directly to the mobile phone desktop.

这样,在用户重新打开App时通常需要在应用后台中打开该App;一方面,查找过程中,用户需要在众多的后台应用中查找,增加了时间成本。另一方面,后台运行的APP可能已经被结束进程;各个App在后台运行的过程中,越早运行于后台的App处于运行队列的最后面,当内存耗尽时,队列后方的应用程序也是优先被结束的,因此,目标APP可能已经被结束进程。In this way, when the user reopens the App, the App usually needs to be opened in the background of the application; on the one hand, during the search process, the user needs to search in numerous background applications, which increases the time cost. On the other hand, the APP running in the background may have been terminated; in the process of each App running in the background, the earlier the APP running in the background will be at the back of the running queue, and when the memory is exhausted, the application in the back of the queue will also be given priority. terminated, therefore, the target APP may have been terminated.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种应用程序的后台切换方法及电子设备,以解决现有技术中,查找后台运行的APP需要时间成本且APP可能被结束进程的问题。Embodiments of the present invention provide a background switching method and electronic device for an application program, so as to solve the problems in the prior art that it takes time to find an APP running in the background and the process of the APP may be terminated.

为了解决上述技术问题,本发明是这样实现的:In order to solve the above-mentioned technical problems, the present invention is achieved in this way:

第一方面,本发明实施例提供了一种应用程序的后台切换方法,应用于电子设备,所述方法包括:In a first aspect, an embodiment of the present invention provides a background switching method for an application program, which is applied to an electronic device, and the method includes:

在显示目标应用程序的显示界面时,接收用户的第一触控操作;When displaying the display interface of the target application, receive the first touch operation of the user;

响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。In response to the first touch operation, run the target application in the background, and determine the target priority of the target application running in the background according to the target parameter of the first touch operation; wherein, the The target parameter includes at least one of the following: a touch start position, a touch end position, and a touch type.

可选地,所述确定所述目标应用程序在后台运行的目标优先级,具体包括:Optionally, the determining the target priority of the target application running in the background specifically includes:

在接收所述第一触控操作的过程中,按照优先级的顺序显示至少两个后台运行的应用程序的第一标识;During the process of receiving the first touch operation, display the first identifiers of at least two applications running in the background in the order of priority;

根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级。The target priority of the target application running in the background is determined according to the positional relationship between the end position of the first touch operation and the at least two first identifiers.

可选地,所述根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级,包括:Optionally, determining the target priority of the target application running in the background according to the positional relationship between the end position of the first touch operation and the at least two first identifiers includes:

确定与所述第一触控操作的终点位置相邻的目标标识,所述目标标识为所述第一标识中的标识;determining a target identifier adjacent to the end position of the first touch operation, where the target identifier is an identifier in the first identifier;

确定所述目标标识的第一优先级以及所述第一标识的优先级排布顺序,确定所述目标应用程序在后台运行的目标优先级。The first priority of the target identifier and the priority arrangement order of the first identifier are determined, and the target priority of the target application running in the background is determined.

可选地,所述根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级,包括:Optionally, determining the target priority of the target application running in the background according to the target parameter of the first touch operation includes:

若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第一预设区域,触控终点位置位于所述显示屏幕第二预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第一优先级;If in the target parameter, the touch start point is located in the first preset area of the display screen of the electronic device, the touch end point is located in the second preset area of the display screen, and the touch type is in the touch If a long-press operation is performed at the starting point, the target priority of the target application running in the background is the first priority;

若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第三预设区域,触控终点位置位于所述电子设备的显示屏幕的第四预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第二优先级;If in the target parameter, the touch start position is located in the third preset area of the display screen of the electronic device, the touch end point is located in the fourth preset area of the display screen of the electronic device, and the touch type is in the If a long-press operation is performed on the touch starting point position, the target priority of the target application running in the background is the second priority;

和/或and / or

若所述目标参数中,触控终点位置位于所述电子设备的显示屏幕的第五预设区域,且触控类型为在触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第三优先级。If in the target parameters, the touch end position is located in the fifth preset area of the display screen of the electronic device, and the touch type is a long-press operation at the touch start position, the target application runs in the background The target priority of is the third priority.

可选地,所述方法还包括:Optionally, the method further includes:

在接收到用户的第一内存清理操作时,在后台运行的所述目标优先级的所述目标应用程序保持运行,并关闭在后台运行的其他优先级的应用程序。When the user's first memory cleaning operation is received, the target application of the target priority running in the background keeps running, and the applications of other priorities running in the background are closed.

可选地,所述在显示目标应用程序的显示界面时,接收用户的第一触控操作,具体包括:Optionally, when the display interface of the target application is displayed, receiving the user's first touch operation specifically includes:

在显示目标应用程序的第一功能界面时,接收用户的第一触控操作;When displaying the first function interface of the target application, receiving the first touch operation of the user;

所述响应于所述第一触控操作,在后台运行所述目标应用程序,具体包括:The running the target application in the background in response to the first touch operation specifically includes:

响应于所述第一触控操作,在后台运行所述目标应用程序的与所述第一功能界面相对应的第一进程;In response to the first touch operation, run the first process of the target application program corresponding to the first function interface in the background;

所述方法还包括:The method also includes:

在显示所述目标应用程序的第二功能界面时,接收用户的第二触控操作;When displaying the second function interface of the target application, receiving a second touch operation of the user;

响应于所述第二触控操作,在后台运行所述目标应用程序的与所述第二功能界面相对应的第二进程;In response to the second touch operation, run a second process of the target application program corresponding to the second function interface in the background;

在显示有第一界面标识和第二界面标识的情况下,接收用户对目标界面标识的第三触控操作,所述目标界面标识为所述第一界面标识和所述第二界面标识中的一者,所述第一界面标识对应所述第一功能界面,所述第二界面标识对应所述第二功能界面;In the case where the first interface identifier and the second interface identifier are displayed, a third touch operation by the user on the target interface identifier is received, and the target interface identifier is the one of the first interface identifier and the second interface identifier. One, the first interface identifier corresponds to the first functional interface, and the second interface identifier corresponds to the second functional interface;

响应于所述第三触控操作,显示与所述目标界面标识对应的功能界面。In response to the third touch operation, a function interface corresponding to the target interface identifier is displayed.

第二方面,本发明实施例还提供了一种电子设备,所述电子设备包括:In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:

操作接收模块,用于在显示目标应用程序的显示界面时,接收用户的第一触控操作;an operation receiving module, configured to receive a user's first touch operation when the display interface of the target application is displayed;

优先级确定模块,用于响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。A priority determination module, configured to run the target application in the background in response to the first touch operation, and determine the target of the target application running in the background according to the target parameters of the first touch operation Priority; wherein, the target parameter includes at least one of the following: a touch starting point position, a touch ending point position, and a touch type.

可选地,所述优先级确定模块包括:Optionally, the priority determination module includes:

显示子模块,用于在接收所述第一触控操作的过程中,按照优先级的顺序显示至少两个后台运行的应用程序的第一标识;a display submodule, configured to display the first identifiers of at least two applications running in the background in the order of priority during the process of receiving the first touch operation;

第一确定子模块,用于根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级。The first determination submodule is configured to determine the target priority of the target application running in the background according to the positional relationship between the end position of the first touch operation and the at least two first identifiers.

可选地,所述优先级确定模块:Optionally, the priority determination module:

第二确定子模块,用于确定与所述第一触控操作的终点位置相邻的目标标识,所述目标标识为所述第一标识中的标识;a second determination submodule, configured to determine a target identifier adjacent to the end position of the first touch operation, where the target identifier is an identifier in the first identifier;

确定所述目标标识的第一优先级以及所述第一标识的优先级排布顺序,确定所述目标应用程序在后台运行的目标优先级。The first priority of the target identifier and the priority arrangement order of the first identifier are determined, and the target priority of the target application running in the background is determined.

可选地,所述优先级确定模块包括:Optionally, the priority determination module includes:

第三确定子模块,用于若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第一预设区域,触控终点位置位于所述显示屏幕第二预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第一优先级;The third determination sub-module is used for if, in the target parameter, the touch starting point is located in the first preset area of the display screen of the electronic device, the touch end point is located in the second preset area of the display screen, and the touch point is located in the second preset area of the display screen. If the control type is a long-press operation at the touch starting point, the target priority of the target application running in the background is the first priority;

第四确定子模块,用于若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第三预设区域,触控终点位置位于所述电子设备的显示屏幕的第四预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第二优先级;The fourth determination sub-module is used for if, in the target parameter, the touch starting point position is located in the third preset area of the display screen of the electronic device, and the touch end point position is located in the fourth preset area of the display screen of the electronic device. area, and the touch type is a long-press operation at the touch starting point, then the target priority of the target application running in the background is the second priority;

和/或and / or

第五确定子模块,用于若所述目标参数中,触控终点位置位于所述电子设备的显示屏幕的第五预设区域,且触控类型为在触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第三优先级。The fifth determination sub-module is used for if, in the target parameter, the touch end position is located in the fifth preset area of the display screen of the electronic device, and the touch type is a long-press operation at the touch start position, then The target priority of the target application running in the background is the third priority.

可选地,所述电子设备还包括:Optionally, the electronic device further includes:

运行模块,用于在接收到用户的第一内存清理操作时,在后台运行的所述目标优先级的所述目标应用程序保持运行,并关闭在后台运行的其他优先级的应用程序。The running module is configured to keep running the target application of the target priority running in the background, and close the applications of other priorities running in the background when the user's first memory cleaning operation is received.

第三方面,本发明实施例还提供了一种电子设备,该电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的应用程序的后台切换方法中的步骤。In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program Implement the steps in the background switching method of the application as described above.

第四方面,本发明实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的应用程序的后台切换方法中的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the background switching of the application program as described above is implemented steps in the method.

在本发明实施例中,在显示目标应用程序的显示界面时,接收用户的第一触控操作;响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;对于用于需要快速查找的应用程序,可通过触控操作的目标参数将其优先级设定的较高;对于使用概率较低的应用程序,可通过触控操作的目标参数将其优先级设定的较低;对于用户不希望被结束进程的应用程序,可通过触控操作的目标参数将其优先级设定为在后台一直运行;基于预设对应关系,通过第一触控操作的目标参数,匹配多种后台切换操作,满足用户的不同使用需求。In the embodiment of the present invention, when the display interface of the target application is displayed, a first touch operation of the user is received; in response to the first touch operation, the target application is run in the background, and the target application is run in the background according to the first touch operation. A target parameter of the touch operation, to determine the target priority of the target application running in the background; for the application that needs to be quickly searched, its priority can be set higher through the target parameter of the touch operation; For applications with low probability of use, the priority can be set lower through the target parameter of the touch operation; for applications that the user does not want to be terminated, the priority can be set through the target parameter of the touch operation It is set to run all the time in the background; based on the preset correspondence, through the target parameters of the first touch operation, a variety of background switching operations are matched to meet the different needs of users.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.

图1表示本发明实施例提供的应用程序的后台切换方法的流程图;FIG. 1 shows a flowchart of a background switching method of an application program provided by an embodiment of the present invention;

图2表示本发明实施例提供的电子设备的显示界面示意图之一;FIG. 2 shows one of the schematic diagrams of the display interface of the electronic device provided by the embodiment of the present invention;

图3表示本发明实施例提供的电子设备的显示界面示意图之二;FIG. 3 shows the second schematic diagram of a display interface of an electronic device provided by an embodiment of the present invention;

图4表示本发明实施例提供的电子设备的显示界面示意图之三;FIG. 4 shows a third schematic diagram of a display interface of an electronic device provided by an embodiment of the present invention;

图5表示本发明实施例提供的电子设备的显示界面示意图之四;FIG. 5 shows a fourth schematic diagram of a display interface of an electronic device provided by an embodiment of the present invention;

图6表示本发明实施例提供的电子设备的显示界面示意图之五;FIG. 6 shows a fifth schematic diagram of a display interface of an electronic device provided by an embodiment of the present invention;

图7表示本发明实施例提供的电子设备的显示界面示意图之六;FIG. 7 shows a sixth schematic diagram of a display interface of an electronic device provided by an embodiment of the present invention;

图8表示本发明的实施例提供的电子设备的框图之一;FIG. 8 shows one of the block diagrams of an electronic device provided by an embodiment of the present invention;

图9表示本发明的实施例提供的电子设备的框图之二。FIG. 9 shows the second block diagram of the electronic device provided by the embodiment of the present invention.

具体实施方式Detailed ways

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

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic associated with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the size of the sequence numbers of the following processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the implementation of the present invention The implementation of the examples constitutes no limitation.

参见图1,本发明一实施例提供了一种应用程序的后台切换方法,应用于电子设备,所述电子设备包括各种手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的移动台 (Mobile Station,MS),终端设备(Terminal Device)等等。Referring to FIG. 1, an embodiment of the present invention provides a background switching method of an application program, which is applied to an electronic device, where the electronic device includes various handheld devices, vehicle-mounted devices, wearable devices, computing devices, or devices connected to wireless modems. Other processing equipment, as well as various forms of mobile stations (Mobile Station, MS), terminal equipment (Terminal Device) and so on.

所述方法包括:The method includes:

步骤101,在显示目标应用程序的显示界面时,接收用户的第一触控操作。Step 101: When the display interface of the target application is displayed, a first touch operation of the user is received.

其中,电子设备在运行的过程中,接收在所运行的目标应用程序中的第一触控操作,第一触控操作为用于将目标应用程序切换至后台运行的触控操作。Wherein, during the running process, the electronic device receives a first touch operation in the running target application, and the first touch operation is a touch operation for switching the target application to running in the background.

步骤102,响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。Step 102, in response to the first touch operation, run the target application in the background, and determine the target priority of the target application running in the background according to the target parameter of the first touch operation; wherein , the target parameter includes at least one of the following: a touch starting point position, a touch ending point position, and a touch type.

接收到所述第一触控操作后,获取所述第一触控操作的目标参数,目标参数包括触控起点位置、触控终点位置和/或触控类型;具体地,触控起点位置即触控操作在所述电子设备的触控屏幕的起点,触控终点位置即触控操作在所述电子设备的触控屏幕的终点;触控类型为所述触控操作的具体类型,例如包括:滑动触控、多点触控或长按触控等。After receiving the first touch operation, acquire target parameters of the first touch operation, and the target parameters include a touch start position, a touch end position and/or a touch type; specifically, the touch start position is The touch operation is at the starting point of the touch screen of the electronic device, and the touch end position is the end point of the touch operation on the touch screen of the electronic device; the touch type is the specific type of the touch operation, for example, including : Swipe touch, multi-touch or long-press touch, etc.

根据目标参数与后台切换操作之间的预设对应关系,确定与所述目标参数对应的目标优先级;不同优先级对应的不同的后台运行顺序,比优先级较高的应用程序的标识置于后台运行应用程序的首位,首位即在电子设备自动结束后台运行程序时,最后一个被结束的应用。优先级较低的应用程序的标识置于后台运行应用程序的末位的第二切换操作,末位即在电子设备自动结束后台运行程序时,第一个被结束的应用。或目标优先级的应用程序,在清理内存操作时不会被清理,即该应用在用户主动结束后台运行或将其切换至前台运行之前,会一直处于后台运行状态。According to the preset correspondence between the target parameter and the background switching operation, the target priority corresponding to the target parameter is determined; the background running order corresponding to different priority is different, and the identifier of the application program with higher priority is placed in the The first application program running in the background, the first application program is the last application to be terminated when the electronic device automatically terminates the background operation program. The identifier of the application program with lower priority is placed in the second switching operation in the last position of the background running application, and the last position is the first terminated application when the electronic device automatically terminates the background running program. Or the application with the target priority will not be cleaned up when the memory is cleaned up, that is, the application will remain in the background running state until the user actively ends the background running or switches it to the foreground running.

这样,若用户希望在切换至后台运行之后,可快速找到应用程序时,可触发与该优先级对应的目标参数,将目标应用程序切换至后台运行后,目标应用程序会一直处在首位,方便用户快速查找;若目标应用程序被再次切换至前台运行的概率较低,用户可触发与该优先级对应的目标参数,将目标应用程序切换至后台运行后,目标应用程序会一直处在末位,使得在电子设备主动结束后台运行应用时,优先结束该应用。若用户希望目标应用程序不被后台结束进程,用户可触发与该优先级对应的目标参数,使目标应用程序在后台处于一直运行状态。In this way, if the user wants to quickly find the application after switching to the background, the target parameter corresponding to the priority can be triggered. After the target application is switched to the background, the target application will always be in the first place, which is convenient The user can quickly search; if the probability of the target application being switched to the foreground running again is low, the user can trigger the target parameter corresponding to the priority. After switching the target application to the background, the target application will always be at the bottom , so that when the electronic device actively terminates the application running in the background, the application is terminated preferentially. If the user wants the target application program not to be terminated in the background, the user can trigger the target parameter corresponding to the priority, so that the target application program is always running in the background.

本发明实施例中,在显示目标应用程序的显示界面时,接收用户的第一触控操作;响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;对于用于需要快速查找的应用程序,可通过触控操作的目标参数将其优先级设定的较高;对于使用概率较低的应用程序,可通过触控操作的目标参数将其优先级设定的较低;对于用户不希望被结束进程的应用程序,可通过触控操作的目标参数将其优先级设定为在后台一直运行;基于预设对应关系,通过第一触控操作的目标参数,匹配多种后台切换操作,满足用户的不同使用需求。本发明实施例解决了现有技术中,查找后台运行的APP需要时间成本且APP可能被结束进程的问题。In the embodiment of the present invention, when the display interface of the target application is displayed, a first touch operation of the user is received; in response to the first touch operation, the target application is run in the background, and the target application is run in the background according to the first touch operation. The target parameter of the touch operation determines the target priority of the target application running in the background; for the application that needs to be quickly searched, its priority can be set higher through the target parameter of the touch operation; For applications with low probability of use, their priority can be set lower through the target parameter of the touch operation; for applications that the user does not want to be terminated, the priority can be set through the target parameter of the touch operation. It is determined to run all the time in the background; based on the preset correspondence, through the target parameters of the first touch operation, a variety of background switching operations are matched to meet the different needs of users. The embodiments of the present invention solve the problems in the prior art that it takes time to search for an APP running in the background and the APP may be terminated.

可选地,本发明实施例中,所述根据目标参数与后台切换操作之间的预设对应关系,确定与所述目标参数对应的目标切换操作,包括:Optionally, in this embodiment of the present invention, determining the target switching operation corresponding to the target parameter according to the preset correspondence between the target parameter and the background switching operation includes:

若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第一预设区域,触控终点位置位于所述显示屏幕第二预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第一优先级。If in the target parameter, the touch start point is located in the first preset area of the display screen of the electronic device, the touch end point is located in the second preset area of the display screen, and the touch type is in the touch If a long-press operation is performed at the starting point, the target priority of the target application running in the background is the first priority.

其中,如图2所示,图2为电子设备的显示界面示意图;参考图2中箭头(由左指向右)所示方向,若目标参数的触控起点位置A位于第一预设区域,第一预设区域位于显示屏幕右上角,触控终点位置B位于显示屏幕的第二预设区域,且用户在A处进行长按操作,且触控操作由显示屏幕右上角滑动至左下角,则触发第一切换操作,在触控操作停止后,目标应用程序将会隐藏至后台运行界面。Among them, as shown in FIG. 2, FIG. 2 is a schematic diagram of the display interface of the electronic device; referring to the direction indicated by the arrow (from left to right) in FIG. 2, if the touch starting point position A of the target parameter is located in the first preset area, the first A preset area is located in the upper right corner of the display screen, the touch end position B is located in the second preset area of the display screen, and the user performs a long press operation at A, and the touch operation is slid from the upper right corner of the display screen to the lower left corner, then The first switching operation is triggered, and after the touch operation is stopped, the target application will be hidden to the background running interface.

如图3所示,若用户通过底部上滑触控或者顶部下滑触控等操作,查看后台运行应用时,目标应用程序(图标1所示)处于后台运行界面应用显示位置的首位(最前方),且可在通过第一切换操作进入后台运行的应用程序图像上添加预设标记,如图3中图标1中的标记所示;将其优先级设定的较高的应用程序,若后续没有将其优先级设定的较高运行的应用程序,该应用将一直处于后台运行界面的首位。As shown in Figure 3, if the user checks the background running application through the bottom sliding touch or the top sliding touch, the target application (shown as icon 1) is in the first position (frontmost) of the application display position on the background running interface. , and a preset mark can be added to the image of the application program running in the background through the first switching operation, as shown in the mark inicon 1 in Figure 3; Set its priority to a higher running application, and the application will always be at the top of the background running interface.

可选地,本发明实施例中,所述根据目标参数与后台切换操作之间的预设对应关系,确定与所述目标参数对应的目标切换操作,包括:Optionally, in this embodiment of the present invention, determining the target switching operation corresponding to the target parameter according to the preset correspondence between the target parameter and the background switching operation includes:

若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第三预设区域,触控终点位置位于所述电子设备的显示屏幕的第四预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第二优先级。If in the target parameter, the touch start position is located in the third preset area of the display screen of the electronic device, the touch end point is located in the fourth preset area of the display screen of the electronic device, and the touch type is in the If a long-press operation is performed on the touch starting point position, the target priority of the target application running in the background is the second priority.

其中,如图4所示,参考图4中箭头(由左指向右)所示方向,若目标参数的触控起点位置A位于第三预设区域,第三预设区域位于显示屏幕右上角,触控终点位置B位于显示屏幕的第四预设区域,且用户在A处进行长按操作,且触控操作由显示屏幕左上角滑动至右下角,则触发第一切换操作,在触控操作停止后,目标应用程序将会隐藏至后台运行界面。Wherein, as shown in FIG. 4, referring to the direction indicated by the arrow (from left to right) in FIG. 4, if the touch starting point position A of the target parameter is located in the third preset area, and the third preset area is located in the upper right corner of the display screen, The touch end position B is located in the fourth preset area of the display screen, and the user performs a long-press operation at A, and the touch operation is slid from the upper left corner of the display screen to the lower right corner, the first switching operation is triggered, and the first switching operation is triggered. After stopping, the target application will be hidden to the background running interface.

如图5所示,若用户通过底部上滑触控或者顶部下滑触控等操作,查看后台运行应用时,若后台一共运行n个应用程序,目标应用程序(图标n所示)处于后台运行界面应用显示位置的末位(最后方),且可在通过第二切换操作进入后台运行的应用程序图像上添加预设标记,如图5中图标n中的标记所示;将其优先级设定的较低的应用程序,若后续没有将其优先级设定的较低运行的应用程序,该应用将一直处于后台运行界面的末位。As shown in Figure 5, if the user checks the background running applications through operations such as sliding up touch at the bottom or sliding touch at the top, if there are a total of n applications running in the background, the target application (shown by icon n) is in the background running interface The last position (the last side) of the application display position, and a preset mark can be added to the image of the application program running in the background through the second switching operation, as shown in the mark in the icon n in Figure 5; set its priority If there is no lower running application whose priority is set subsequently, the application will always be at the bottom of the background running interface.

可选地,本发明实施例中,所述根据目标参数与后台切换操作之间的预设对应关系,确定与所述目标参数对应的目标切换操作,包括:Optionally, in this embodiment of the present invention, determining the target switching operation corresponding to the target parameter according to the preset correspondence between the target parameter and the background switching operation includes:

若所述目标参数中,触控终点位置位于所述电子设备的显示屏幕的第五预设区域,且触控类型为在触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第三优先级。If in the target parameters, the touch end position is located in the fifth preset area of the display screen of the electronic device, and the touch type is a long-press operation at the touch start position, the target application runs in the background The target priority of is the third priority.

其中,若触控终点位置位于所述电子设备的显示屏幕的第五预设区域,第五预设区域可以是显示屏幕上任一区域,若用户在目标应用程序的界面进行长按操作,并通过与长按操作连续的滑动触控操作,滑动至第五预设区域,在触控操作停止后,目标应用程序将会隐藏至后台运行界面,并且不会被后台结束进程。Wherein, if the touch end point is located in the fifth preset area of the display screen of the electronic device, the fifth preset area may be any area on the display screen. If the user performs a long-press operation on the interface of the target application, and The sliding touch operation that is continuous with the long press operation, slide to the fifth preset area, after the touch operation is stopped, the target application will be hidden to the background running interface, and the process will not be terminated by the background.

可选地,可将其优先级设定为在后台一直运行的应用程序存储至特定的区域,区别于通过其他切换操作切换至后台运行的应用存储的界面,如图6 所示,后台运行界面1为通过除第三切换操作之外的其他切换操作切换至后台运行的应用存储界面;后台运行界面2为将其优先级设定为在后台一直运行的应用存储界面,后台运行界面2中的应用,屏蔽用于结束后台运行应用程序的结束操作。Optionally, the priority can be set to store the application running in the background in a specific area, which is different from the interface for switching to the application storage running in the background through other switching operations, as shown in Figure 6, the background running interface. 1 is the application storage interface that is switched to the background running through other switching operations except the third switching operation; thebackground running interface 2 is the application storage interface whose priority is set to always run in the background. application, shields the end operation used to end the application running in the background.

可选地,本发明实施例中,所述方法还包括:Optionally, in this embodiment of the present invention, the method further includes:

在显示目标应用程序的第一功能界面时,接收用户的第一触控操作;When displaying the first function interface of the target application, receiving the first touch operation of the user;

所述响应于所述第一触控操作,在后台运行所述目标应用程序,具体包括:The running the target application in the background in response to the first touch operation specifically includes:

响应于所述第一触控操作,在后台运行所述目标应用程序的与所述第一功能界面相对应的第一进程;其中,在接收到第一触控操作时,记录与当前第一功能界面的第一进程;可选地,所述第一进程可能包括一个或多个具体的应用进程。In response to the first touch operation, run the first process of the target application program corresponding to the first function interface in the background; wherein, when the first touch operation is received, record the current first process The first process of the functional interface; optionally, the first process may include one or more specific application processes.

可选地,所述方法还包括:Optionally, the method further includes:

在显示所述目标应用程序的第二功能界面时,接收用户的第二触控操作;When displaying the second function interface of the target application, receiving a second touch operation of the user;

响应于所述第二触控操作,在后台运行所述目标应用程序的与所述第二功能界面相对应的第二进程;第二触控操作为将目标应用程序切换到后台运行的操作。In response to the second touch operation, the second process of the target application corresponding to the second function interface is run in the background; the second touch operation is an operation of switching the target application to run in the background.

在显示有第一界面标识和第二界面标识的情况下,接收用户对目标界面标识的第三触控操作,所述目标界面标识为所述第一界面标识和所述第二界面标识中的一者,所述第一界面标识对应所述第一功能界面,所述第二界面标识对应所述第二功能界面;In the case where the first interface identifier and the second interface identifier are displayed, a third touch operation by the user on the target interface identifier is received, and the target interface identifier is the one of the first interface identifier and the second interface identifier. One, the first interface identifier corresponds to the first functional interface, and the second interface identifier corresponds to the second functional interface;

响应于所述第三触控操作,显示与所述目标界面标识对应的功能界面。In response to the third touch operation, a function interface corresponding to the target interface identifier is displayed.

其中,第三触控操作用于将后台运行的界面切回至前台运行,若电子设备接收到针对某个应用程序的至少两个触控操作,如上述第一触控操作和第二触控操作,则针对每个触控操作对应的目标应用程序的功能界面,分别通过保存每个功能界面对应的应用进程以保存应用界面;比如,用户在目标应用程序的第一功能界面触发第一触控操作,则电子设备将第一功能界面存储至后台运行界面;若用户在目标应用程序的第二功能界面触发触控切换操作,则电子设备将第二功能界面存储至后台运行界面,……;可选地,对于保存多个功能界面在后台的应用程序,可将运行界面存储在特定的后台运行界面;如图6所示,后台运行界面1所存储的应用程序为仅有一个功能界面存储在后台的应用程序;后台运行界面2为至少两个功能界面存储在后台的应用程序。The third touch operation is used to switch the interface running in the background back to the foreground. If the electronic device receives at least two touch operations for an application, such as the first touch operation and the second touch operation described above operation, then for the functional interface of the target application corresponding to each touch operation, the application interface is saved by saving the application process corresponding to each functional interface; for example, the user triggers the first touch on the first functional interface of the target application. If the user triggers a touch switching operation on the second functional interface of the target application, the electronic device stores the second functional interface in the background running interface, ... Optionally, for the application program that saves multiple functional interfaces in the background, the running interface can be stored in a specific background running interface; as shown in Figure 6, the application program stored in thebackground running interface 1 is only one functional interface An application program stored in the background; thebackground running interface 2 is an application program with at least two functional interfaces stored in the background.

可选地,本发明实施例中,所述确定所述目标应用程序在后台运行的目标优先级,具体包括:Optionally, in this embodiment of the present invention, the determining the target priority of the target application running in the background specifically includes:

在接收所述第一触控操作的过程中,按照优先级的顺序显示至少两个后台运行的应用程序的第一标识;During the process of receiving the first touch operation, display the first identifiers of at least two applications running in the background in the order of priority;

根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级。The target priority of the target application running in the background is determined according to the positional relationship between the end position of the first touch operation and the at least two first identifiers.

在电子设备接收第一触控操作的过程中,按照每个后台运行的应用程序的优先级顺序显示每个后台应用程序的第一标识,如图7所示,图标4、3、 2、1分别表示4个后台运行的应用程序的标识,且4、3、2、1同时还表示每个后台运行的应用程序的优先级顺序。在电子设备接收第一触控操作的过程中,按照优先级顺序分别显示每个图标,使得用户可根据需要调整第一触控操作的终点位置。During the process of receiving the first touch operation by the electronic device, the first identifier of each background application is displayed according to the priority order of each application running in the background, as shown in FIG. 7 ,icons 4, 3, 2, 1 Respectively represent the identifiers of the 4 applications running in the background, and 4, 3, 2, and 1 also represent the priority order of each application running in the background. During the process of receiving the first touch operation by the electronic device, each icon is displayed in the order of priority, so that the user can adjust the end position of the first touch operation as required.

根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级,即根据与终点位置相邻的第一标识,确定目标应用程序的目标优先级。Determine the target priority of the target application running in the background according to the positional relationship between the end position of the first touch operation and at least two of the first identifiers, that is, according to the first identifier adjacent to the end position, Determine the target priority of the target application.

进一步地,本发明实施例中,所述根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级,可以包括:Further, in this embodiment of the present invention, determining the target priority of the target application running in the background according to the positional relationship between the end position of the first touch operation and at least two of the first identifiers may be: include:

确定与所述第一触控操作的终点位置相邻的目标标识,所述目标标识为所述第一标识中的标识;determining a target identifier adjacent to the end position of the first touch operation, where the target identifier is an identifier in the first identifier;

确定所述目标标识的第一优先级以及所述第一标识的优先级排布顺序,确定所述目标应用程序在后台运行的目标优先级,首先确定与所述终点位置相邻的目标标识,然后根据与目标标识的第一优先级以及所述第一标识的优先级排布顺序,优先级排布顺序即优先级高低顺序,如图7中,触控起点位置为S,终点位置为E,E位于表示3和2之间,若优先级顺序为4<3<2 <1,则目标应用程序在后台运行的目标优先级将为3。Determine the first priority of the target identification and the priority arrangement order of the first identification, determine the target priority of the target application running in the background, first determine the target identification adjacent to the end position, Then, according to the first priority of the target identifier and the priority arrangement order of the first identifier, the priority arrangement order is the priority order. As shown in Figure 7, the touch start position is S and the end position is E , E is located between therepresentations 3 and 2, if the priority order is 4<3<2<1, the target priority of the target application running in the background will be 3.

本发明实施例中,在显示目标应用程序的显示界面时,接收用户的第一触控操作;响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;对于用于需要快速查找的应用程序,可将其优先级设定的较高;对于使用概率较低的应用程序,可将其优先级设定的较低;对于用户不希望被结束进程的应用程序,可将其优先级设定为在后台一直运行;基于预设对应关系,通过第一触控操作的目标参数,匹配多种后台切换操作,满足用户的不同使用需求。In the embodiment of the present invention, when the display interface of the target application is displayed, a first touch operation of the user is received; in response to the first touch operation, the target application is run in the background, and the target application is run in the background according to the first touch operation. The target parameter of the touch operation determines the target priority of the target application running in the background; for the application that needs to be quickly searched, its priority can be set higher; for the application with a lower probability of use , the priority can be set lower; for applications that the user does not want to be terminated, the priority can be set to always run in the background; based on the preset correspondence, the target of the first touch operation parameters to match a variety of background switching operations to meet the different needs of users.

以上介绍了本发明实施例提供的应用程序的后台切换方法,下面将结合附图介绍本发明实施例提供的电子设备。The background switching method of the application program provided by the embodiment of the present invention has been described above, and the electronic device provided by the embodiment of the present invention will be described below with reference to the accompanying drawings.

参见图8,本发明实施例还提供了一种电子设备800,包括:Referring to FIG. 8, an embodiment of the present invention further provides anelectronic device 800, including:

操作接收模块801,用于在显示目标应用程序的显示界面时,接收用户的第一触控操作。Theoperation receiving module 801 is configured to receive the first touch operation of the user when the display interface of the target application is displayed.

其中,电子设备800在运行的过程中,接收在所运行的目标应用程序中的第一触控操作,第一触控操作为用于将目标应用程序切换至后台运行的触控操作。Theelectronic device 800 receives a first touch operation in the running target application during the running process, and the first touch operation is a touch operation for switching the target application to run in the background.

优先级确定模块802,用于响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。Apriority determination module 802, configured to run the target application in the background in response to the first touch operation, and determine whether the target application runs in the background according to the target parameter of the first touch operation Target priority; wherein, the target parameter includes at least one of the following: a touch start position, a touch end position, and a touch type.

接收到所述第一触控操作后,获取所述第一触控操作的目标参数,目标参数包括触控起点位置、触控终点位置和/或触控类型;具体地,触控起点位置即触控操作在所述电子设备800的触控屏幕的起点,触控终点位置即触控操作在所述电子设备800的触控屏幕的终点;触控类型为所述触控操作的具体类型,例如包括:滑动触控、多点触控或长按触控等。After receiving the first touch operation, acquire target parameters of the first touch operation, and the target parameters include a touch start position, a touch end position and/or a touch type; specifically, the touch start position is The touch operation is at the starting point of the touch screen of theelectronic device 800, and the touch end position is the end point of the touch operation on the touch screen of theelectronic device 800; the touch type is the specific type of the touch operation, Examples include: sliding touch, multi-touch or long-press touch, etc.

根据目标参数与后台切换操作之间的预设对应关系,确定与所述目标参数对应的目标优先级;不同优先级对应的不同的后台运行顺序,比优先级较高的应用程序的标识置于后台运行应用程序的首位,首位即在电子设备 800自动结束后台运行程序时,最后一个被结束的应用。优先级较低的应用程序的标识置于后台运行应用程序的末位的第二切换操作,末位即在电子设备800自动结束后台运行程序时,第一个被结束的应用。或目标优先级的应用程序,在清理内存操作时不会被清理,即该应用在用户主动结束后台运行或将其切换至前台运行之前,会一直处于后台运行状态。According to the preset correspondence between the target parameter and the background switching operation, the target priority corresponding to the target parameter is determined; the background running order corresponding to different priority is different, and the identifier of the application program with higher priority is placed in the The first application program running in the background is the first application that is terminated when theelectronic device 800 automatically terminates the background operation program. The identifier of the application with lower priority is placed in the second switching operation in the last position of the background running application, and the last position is the first terminated application when theelectronic device 800 automatically terminates the background running program. Or the application with the target priority will not be cleaned up when the memory is cleaned up, that is, the application will remain in the background running state until the user actively ends the background running or switches it to the foreground running.

这样,若用户希望在切换至后台运行之后,可快速找到应用程序时,可触发与该优先级对应的目标参数,将目标应用程序切换至后台运行后,目标应用程序会一直处在首位,方便用户快速查找;若目标应用程序被再次切换至前台运行的概率较低,用户可触发与该优先级对应的目标参数,将目标应用程序切换至后台运行后,目标应用程序会一直处在末位,使得在电子设备 800主动结束后台运行应用时,优先结束该应用。若用户希望目标应用程序不被后台结束进程,用户可触发与该优先级对应的目标参数,使目标应用程序在后台处于一直运行状态。In this way, if the user wants to quickly find the application after switching to the background, the target parameter corresponding to the priority can be triggered. After the target application is switched to the background, the target application will always be in the first place, which is convenient The user can quickly search; if the probability of the target application being switched to the foreground running again is low, the user can trigger the target parameter corresponding to the priority. After switching the target application to the background, the target application will always be at the bottom , so that when theelectronic device 800 actively terminates an application running in the background, the application is terminated preferentially. If the user wants the target application program not to be terminated in the background, the user can trigger the target parameter corresponding to the priority, so that the target application program is always running in the background.

可选地,本发明实施例中,所述优先级确定模块802包括:Optionally, in this embodiment of the present invention, thepriority determining module 802 includes:

显示子模块,用于在接收所述第一触控操作的过程中,按照优先级的顺序显示至少两个后台运行的应用程序的第一标识;a display submodule, configured to display the first identifiers of at least two applications running in the background in the order of priority during the process of receiving the first touch operation;

第一确定子模块,用于根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级。The first determination submodule is configured to determine the target priority of the target application running in the background according to the positional relationship between the end position of the first touch operation and the at least two first identifiers.

可选地,本发明实施例中,所述优先级确定模块802:Optionally, in this embodiment of the present invention, the priority determining module 802:

第二确定子模块,用于确定与所述第一触控操作的终点位置相邻的目标标识,所述目标标识为所述第一标识中的标识;a second determination submodule, configured to determine a target identifier adjacent to the end position of the first touch operation, where the target identifier is an identifier in the first identifier;

确定所述目标标识的第一优先级以及所述第一标识的优先级排布顺序,确定所述目标应用程序在后台运行的目标优先级。The first priority of the target identifier and the priority arrangement order of the first identifier are determined, and the target priority of the target application running in the background is determined.

可选地,本发明实施例中,所述优先级确定模块802包括:Optionally, in this embodiment of the present invention, thepriority determining module 802 includes:

第三确定子模块,用于若所述目标参数中,触控起点位置位于所述电子设备800的显示屏幕第一预设区域,触控终点位置位于所述显示屏幕第二预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第一优先级;The third determining sub-module is used for if, in the target parameter, the touch starting point position is located in the first preset area of the display screen of theelectronic device 800, and the touch end point position is located in the second preset area of the display screen, and If the touch type is a long-press operation at the touch starting point, the target priority of the target application running in the background is the first priority;

第四确定子模块,用于若所述目标参数中,触控起点位置位于所述电子设备800的显示屏幕第三预设区域,触控终点位置位于所述电子设备800的显示屏幕的第四预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第二优先级;The fourth determination sub-module is used for if, in the target parameter, the touch starting point position is located in the third preset area of the display screen of theelectronic device 800 , and the touch end point position is located in the fourth preset area of the display screen of theelectronic device 800 . a preset area, and the touch type is a long-press operation at the starting point of the touch, then the target priority of the target application running in the background is the second priority;

和/或and / or

第五确定子模块,用于若所述目标参数中,触控终点位置位于所述电子设备800的显示屏幕的第五预设区域,且触控类型为在触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第三优先级。The fifth determination sub-module is used for if, in the target parameter, the touch end position is located in the fifth preset area of the display screen of theelectronic device 800, and the touch type is a long-press operation at the touch start position, Then the target priority of the target application running in the background is the third priority.

可选地,本发明实施例中,所述电子设备800还包括:Optionally, in this embodiment of the present invention, theelectronic device 800 further includes:

运行模块,用于在接收到用户的第一内存清理操作时,在后台运行的所述目标优先级的所述目标应用程序保持运行,并关闭在后台运行的其他优先级的应用程序。The running module is configured to keep running the target application of the target priority running in the background, and close the applications of other priorities running in the background when the user's first memory cleaning operation is received.

本发明实施例提供的电子设备800能够实现图1至图7的方法实施例中电子设备800实现的各个过程,为避免重复,这里不再赘述。Theelectronic device 800 provided in this embodiment of the present invention can implement each process implemented by theelectronic device 800 in the method embodiments of FIG. 1 to FIG. 7 , and to avoid repetition, details are not repeated here.

本发明的实施例中,操作接收模块801在显示目标应用程序的显示界面时,接收用户的第一触控操作;响应于所述第一触控操作,优先级确定模块 802在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;对于用于需要快速查找的应用程序,可通过触控操作的目标参数将其优先级设定的较高;对于使用概率较低的应用程序,可通过触控操作的目标参数将其优先级设定的较低;对于用户不希望被结束进程的应用程序,可通过触控操作的目标参数将其优先级设定为在后台一直运行;基于预设对应关系,通过第一触控操作的目标参数,匹配多种后台切换操作,满足用户的不同使用需求。In the embodiment of the present invention, theoperation receiving module 801 receives the user's first touch operation when displaying the display interface of the target application; in response to the first touch operation, thepriority determining module 802 runs the The target application, and according to the target parameter of the first touch operation, determine the target priority of the target application running in the background; for the application that needs to be quickly searched, the target parameter of the touch operation can be used to Its priority is set higher; for applications with low probability of use, the priority can be set lower through the target parameter of the touch operation; for applications that the user does not want to be terminated The target parameter of the first touch operation is set as its priority to always run in the background; based on the preset corresponding relationship, through the target parameter of the first touch operation, a variety of background switching operations are matched to meet the different needs of users.

图9为实现本发明各个实施例的一种电子设备的硬件结构示意图;9 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention;

该电子设备900包括但不限于:射频单元901、网络模块902、音频输出单元903、输入单元904、传感器905、显示单元906、用户输入单元907、接口单元908、存储器909、处理器910、以及电源911等部件。本领域技术人员可以理解,图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。Theelectronic device 900 includes but is not limited to: aradio frequency unit 901, anetwork module 902, anaudio output unit 903, aninput unit 904, asensor 905, adisplay unit 906, auser input unit 907, aninterface unit 908, amemory 909, aprocessor 910, andPower 911 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 9 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than the one shown, or combine some components, or different components layout. In this embodiment of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.

其中,用户输入单元907,用于在显示目标应用程序的显示界面时,接收用户的第一触控操作;Theuser input unit 907 is configured to receive the first touch operation of the user when the display interface of the target application is displayed;

处理器910,用于响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。Theprocessor 910 is configured to run the target application in the background in response to the first touch operation, and determine the priority of the target application running in the background according to the target parameter of the first touch operation level; wherein, the target parameter includes at least one of the following: a touch start position, a touch end position, and a touch type.

本发明的实施例中,在显示目标应用程序的显示界面时,接收用户的第一触控操作;响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;对于用于需要快速查找的应用程序,可通过触控操作的目标参数将其优先级设定的较高;对于使用概率较低的应用程序,可通过触控操作的目标参数将其优先级设定的较低;对于用户不希望被结束进程的应用程序,可通过触控操作的目标参数将其优先级设定为在后台一直运行;基于预设对应关系,通过第一触控操作的目标参数,匹配多种后台切换操作,满足用户的不同使用需求。In the embodiment of the present invention, when the display interface of the target application is displayed, a first touch operation of the user is received; in response to the first touch operation, the target application is run in the background, and the target application is run in the background according to the first touch operation. A target parameter of the touch operation, to determine the target priority of the target application running in the background; for the application that needs to be quickly searched, its priority can be set higher through the target parameter of the touch operation; For applications with low probability of use, the priority can be set lower through the target parameter of the touch operation; for applications that the user does not want to be terminated, the priority can be set through the target parameter of the touch operation It is set to run all the time in the background; based on the preset correspondence, through the target parameters of the first touch operation, a variety of background switching operations are matched to meet the different needs of users.

需要说明的是,本实施例中上述电子设备900可以实现本发明实施例中方法实施例中的各个过程,以及达到相同的有益效果,为避免重复,此处不再赘述。It should be noted that theelectronic device 900 in this embodiment can implement each process in the method embodiment in the embodiment of the present invention, and achieve the same beneficial effect, which is not repeated here to avoid repetition.

应理解的是,本发明实施例中,射频单元901可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器910处理;另外,将上行的数据发送给基站。通常,射频单元901包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元901还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in this embodiment of the present invention, theradio frequency unit 901 can be used for receiving and sending signals during sending and receiving of information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by theprocessor 910; The uplink data is sent to the base station. Generally, theradio frequency unit 901 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, theradio frequency unit 901 can also communicate with the network and other devices through a wireless communication system.

电子设备通过网络模块902为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides the user with wireless broadband Internet access through thenetwork module 902, such as helping the user to send and receive emails, browse web pages, and access streaming media.

音频输出单元903可以将射频单元901或网络模块902接收的或者在存储器909中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元903还可以提供与电子设备900执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元903包括扬声器、蜂鸣器以及受话器等。Theaudio output unit 903 may convert audio data received by theradio frequency unit 901 or thenetwork module 902 or stored in thememory 909 into audio signals and output as sound. Also, theaudio output unit 903 may also provide audio output related to a specific function performed by the electronic device 900 (eg, call signal reception sound, message reception sound, etc.). Theaudio output unit 903 includes a speaker, a buzzer, a receiver, and the like.

输入单元904用于接收音频或视频信号。输入单元904可以包括图形处理器(Graphics Processing Unit,GPU)9041和麦克风9042,图形处理器9041 对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元 906上。经图形处理器9041处理后的图像帧可以存储在存储器909(或其它存储介质)中或者经由射频单元901或网络模块902进行发送。麦克风9042 可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元901发送到移动通信基站的格式输出。Theinput unit 904 is used to receive audio or video signals. Theinput unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and amicrophone 9042. Thegraphics processor 9041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. data is processed. The processed image frames can be displayed on thedisplay unit 906. The image frames processed by thegraphics processor 9041 may be stored in the memory 909 (or other storage medium) or transmitted via theradio frequency unit 901 or thenetwork module 902 . Themicrophone 9042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via theradio frequency unit 901 for output in the case of a telephone call mode.

电子设备900还包括至少一种传感器905,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板9061的亮度,接近传感器可在电子设备900移动到耳边时,关闭显示面板9061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器905还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。Theelectronic device 900 also includes at least onesensor 905, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of thedisplay panel 9061 according to the brightness of the ambient light, and the proximity sensor can turn off thedisplay panel 9061 and thedisplay panel 9061 when theelectronic device 900 moves to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games , magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; thesensor 905 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, Infrared sensors, etc., are not repeated here.

显示单元906用于显示由用户输入的信息或提供给用户的信息。显示单元906可包括显示面板9061,可以采用液晶显示器(Liquid Crystal Display, LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板9061。Thedisplay unit 906 is used to display information input by the user or information provided to the user. Thedisplay unit 906 may include adisplay panel 9061, and thedisplay panel 9061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.

用户输入单元907可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元907 包括触控面板9071以及其他输入设备9072。触控面板9071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板9071上或在触控面板9071附近的操作)。触控面板9071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器910,接收处理器910发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板9071。除了触控面板9071,用户输入单元907还可以包括其他输入设备9072。具体地,其他输入设备9072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。Theuser input unit 907 may be used to receive input numerical or character information, and generate key signal input related to user setting and function control of the electronic device. Specifically, theuser input unit 907 includes atouch panel 9071 andother input devices 9072 . Thetouch panel 9071, also referred to as a touch screen, can collect touch operations by the user on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 9071). operate). Thetouch panel 9071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To theprocessor 910, the command sent by theprocessor 910 is received and executed. In addition, thetouch panel 9071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to thetouch panel 9071 , theuser input unit 907 may also includeother input devices 9072 . Specifically,other input devices 9072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板9071可覆盖在显示面板9061上,当触控面板9071 检测到在其上或附近的触摸操作后,传送给处理器910以确定触摸事件的类型,随后处理器910根据触摸事件的类型在显示面板9061上提供相应的视觉输出。虽然在图9中,触控面板9071与显示面板9061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板9071与显示面板9061集成而实现电子设备的输入和输出功能,具体此处不做限定。Further, thetouch panel 9071 can be covered on thedisplay panel 9061. When thetouch panel 9071 detects a touch operation on or near it, it transmits it to theprocessor 910 to determine the type of the touch event, and then theprocessor 910 determines the type of the touch event according to the touch The type of event provides a corresponding visual output on thedisplay panel 9061. Although in FIG. 9, thetouch panel 9071 and thedisplay panel 9061 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, thetouch panel 9071 and thedisplay panel 9061 can be integrated The implementation of the input and output functions of the electronic device is not specifically limited here.

接口单元908为外部装置与电子设备900连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元908可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备900内的一个或多个元件或者可以用于在电子设备 900和外部装置之间传输数据。Theinterface unit 908 is an interface for connecting an external device to theelectronic device 900 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. Theinterface unit 908 may be used to receive input (eg, data information, power, etc.) from external devices and transmit the received input to one or more elements within theelectronic device 900 or may be used between theelectronic device 900 and external Transfer data between devices.

存储器909可用于存储软件程序以及各种数据。存储器909可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器909可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。Thememory 909 may be used to store software programs as well as various data. Thememory 909 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally,memory 909 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

处理器910是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器909内的软件程序和/或模块,以及调用存储在存储器909内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器910可包括一个或多个处理单元;优选的,处理器910可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器910中。Theprocessor 910 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire electronic device, by running or executing the software programs and/or modules stored in thememory 909, and calling the data stored in thememory 909. , perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. Theprocessor 910 may include one or more processing units; preferably, theprocessor 910 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into theprocessor 910.

电子设备900还可以包括给各个部件供电的电源911(比如电池),优选的,电源911可以通过电源管理系统与处理器910逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Theelectronic device 900 may also include a power supply 911 (such as a battery) for supplying power to various components. Preferably, thepower supply 911 may be logically connected to theprocessor 910 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.

另外,电子设备900包括一些未示出的功能模块,在此不再赘述。In addition, theelectronic device 900 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种电子设备,包括处理器910,存储器 909,存储在存储器909上并可在所述处理器910上运行的计算机程序,该计算机程序被处理器910执行时实现上述离线缓存方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, an embodiment of the present invention further provides an electronic device, including aprocessor 910 , amemory 909 , a computer program stored in thememory 909 and running on theprocessor 910 , when the computer program is executed by theprocessor 910 Various processes of the above-mentioned embodiments of the offline caching method are implemented, and the same technical effect can be achieved. To avoid repetition, details are not described here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述离线缓存方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Embodiments of the present invention further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the foregoing offline caching method embodiments can be implemented, and the same technology can be achieved. The effect, in order to avoid repetition, is not repeated here. The computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

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

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

Claims (10)

Translated fromChinese
1.一种应用程序的后台切换方法,应用于电子设备,其特征在于,所述方法包括:1. A background switching method of an application program, applied to an electronic device, wherein the method comprises:在显示目标应用程序的显示界面时,接收用户的第一触控操作;When displaying the display interface of the target application, receive the first touch operation of the user;响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。In response to the first touch operation, run the target application in the background, and determine the target priority of the target application running in the background according to the target parameter of the first touch operation; wherein, the The target parameter includes at least one of the following: a touch start position, a touch end position, and a touch type.2.根据权利要求1所述的应用程序的后台切换方法,其特征在于,所述确定所述目标应用程序在后台运行的目标优先级,具体包括:2. The background switching method of an application program according to claim 1, wherein the determining the target priority of the target application program running in the background specifically comprises:在接收所述第一触控操作的过程中,按照优先级的顺序显示至少两个后台运行的应用程序的第一标识;During the process of receiving the first touch operation, display the first identifiers of at least two applications running in the background in the order of priority;根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级。The target priority of the target application running in the background is determined according to the positional relationship between the end position of the first touch operation and the at least two first identifiers.3.根据权利要求2所述的应用程序的后台切换方法,其特征在于,所述根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级,包括:3 . The background switching method of an application program according to claim 2 , wherein the target is determined according to the positional relationship between the end position of the first touch operation and the positional relationship between at least two of the first identifiers. 4 . Target priorities for applications running in the background, including:确定与所述第一触控操作的终点位置相邻的目标标识,所述目标标识为所述第一标识中的标识;determining a target identifier adjacent to the end position of the first touch operation, where the target identifier is an identifier in the first identifier;确定所述目标标识的第一优先级以及所述第一标识的优先级排布顺序,确定所述目标应用程序在后台运行的目标优先级。The first priority of the target identifier and the priority arrangement order of the first identifier are determined, and the target priority of the target application running in the background is determined.4.根据权利要求1所述的应用程序的后台切换方法,其特征在于,所述根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级,包括:4 . The background switching method of an application program according to claim 1 , wherein, determining the target priority of the target application program running in the background according to the target parameter of the first touch operation, comprising: 5 .若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第一预设区域,触控终点位置位于所述显示屏幕第二预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第一优先级;If in the target parameter, the touch start point is located in the first preset area of the display screen of the electronic device, the touch end point is located in the second preset area of the display screen, and the touch type is in the touch If a long-press operation is performed at the starting point, the target priority of the target application running in the background is the first priority;若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第三预设区域,触控终点位置位于所述电子设备的显示屏幕的第四预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第二优先级;If in the target parameter, the touch start position is located in the third preset area of the display screen of the electronic device, the touch end point is located in the fourth preset area of the display screen of the electronic device, and the touch type is in the If a long-press operation is performed on the touch starting point position, the target priority of the target application running in the background is the second priority;和/或and / or若所述目标参数中,触控终点位置位于所述电子设备的显示屏幕的第五预设区域,且触控类型为在触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第三优先级。If in the target parameters, the touch end position is located in the fifth preset area of the display screen of the electronic device, and the touch type is a long-press operation at the touch start position, the target application runs in the background The target priority of is the third priority.5.根据权利要求1所述的应用程序的后台切换方法,其特征在于,所述方法还包括:5. The background switching method of an application program according to claim 1, wherein the method further comprises:在接收到用户的第一内存清理操作时,在后台运行的所述目标优先级的所述目标应用程序保持运行,并关闭在后台运行的其他优先级的应用程序。When the user's first memory cleaning operation is received, the target application of the target priority running in the background keeps running, and the applications of other priorities running in the background are closed.6.根据权利要求1所述的应用程序的后台切换方法,其特征在于,所述在显示目标应用程序的显示界面时,接收用户的第一触控操作,具体包括:6 . The background switching method of an application program according to claim 1 , wherein, when the display interface of the target application program is displayed, receiving the first touch operation of the user, specifically comprising: 7 .在显示目标应用程序的第一功能界面时,接收用户的第一触控操作;When displaying the first function interface of the target application, receiving the first touch operation of the user;所述响应于所述第一触控操作,在后台运行所述目标应用程序,具体包括:The running the target application in the background in response to the first touch operation specifically includes:响应于所述第一触控操作,在后台运行所述目标应用程序的与所述第一功能界面相对应的第一进程;In response to the first touch operation, run the first process of the target application program corresponding to the first function interface in the background;所述方法还包括:The method also includes:在显示所述目标应用程序的第二功能界面时,接收用户的第二触控操作;When displaying the second function interface of the target application, receiving a second touch operation of the user;响应于所述第二触控操作,在后台运行所述目标应用程序的与所述第二功能界面相对应的第二进程;In response to the second touch operation, run a second process of the target application program corresponding to the second function interface in the background;在显示有第一界面标识和第二界面标识的情况下,接收用户对目标界面标识的第三触控操作,所述目标界面标识为所述第一界面标识和所述第二界面标识中的一者,所述第一界面标识对应所述第一功能界面,所述第二界面标识对应所述第二功能界面;In the case where the first interface identifier and the second interface identifier are displayed, a third touch operation by the user on the target interface identifier is received, and the target interface identifier is the one of the first interface identifier and the second interface identifier. One, the first interface identifier corresponds to the first functional interface, and the second interface identifier corresponds to the second functional interface;响应于所述第三触控操作,显示与所述目标界面标识对应的功能界面。In response to the third touch operation, a function interface corresponding to the target interface identifier is displayed.7.一种电子设备,其特征在于,所述电子设备包括:7. An electronic device, characterized in that the electronic device comprises:操作接收模块,用于在显示目标应用程序的显示界面时,接收用户的第一触控操作;an operation receiving module, configured to receive a user's first touch operation when the display interface of the target application is displayed;优先级确定模块,用于响应于所述第一触控操作,在后台运行所述目标应用程序,并根据所述第一触控操作的目标参数,确定所述目标应用程序在后台运行的目标优先级;其中,所述目标参数包括以下至少一项:触控起点位置、触控终点位置以及触控类型。A priority determination module, configured to run the target application in the background in response to the first touch operation, and determine the target of the target application running in the background according to the target parameters of the first touch operation Priority; wherein, the target parameter includes at least one of the following: a touch starting point position, a touch ending point position, and a touch type.8.根据权利要求7所述的电子设备,其特征在于,所述优先级确定模块包括:8. The electronic device according to claim 7, wherein the priority determination module comprises:显示子模块,用于在接收所述第一触控操作的过程中,按照优先级的顺序显示至少两个后台运行的应用程序的第一标识;a display submodule, configured to display the first identifiers of at least two applications running in the background in the order of priority during the process of receiving the first touch operation;第一确定子模块,用于根据所述第一触控操作的终点位置与至少两个所述第一标识的位置关系,确定所述目标应用程序在后台运行的目标优先级。The first determination submodule is configured to determine the target priority of the target application running in the background according to the positional relationship between the end position of the first touch operation and the at least two first identifiers.9.根据权利要求8所述的电子设备,其特征在于,所述优先级确定模块:9. The electronic device according to claim 8, wherein the priority determination module:第二确定子模块,用于确定与所述第一触控操作的终点位置相邻的目标标识,所述目标标识为所述第一标识中的标识;a second determination submodule, configured to determine a target identifier adjacent to the end position of the first touch operation, where the target identifier is an identifier in the first identifier;确定所述目标标识的第一优先级以及所述第一标识的优先级排布顺序,确定所述目标应用程序在后台运行的目标优先级。The first priority of the target identifier and the priority arrangement order of the first identifier are determined, and the target priority of the target application running in the background is determined.10.根据权利要求7所述的电子设备,其特征在于,所述优先级确定模块包括:10. The electronic device according to claim 7, wherein the priority determination module comprises:第三确定子模块,用于若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第一预设区域,触控终点位置位于所述显示屏幕第二预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第一优先级;The third determination sub-module is used for if, in the target parameter, the touch starting point is located in the first preset area of the display screen of the electronic device, the touch end point is located in the second preset area of the display screen, and the touch point is located in the second preset area of the display screen. If the control type is a long-press operation at the touch starting point, the target priority of the target application running in the background is the first priority;第四确定子模块,用于若所述目标参数中,触控起点位置位于所述电子设备的显示屏幕第三预设区域,触控终点位置位于所述电子设备的显示屏幕的第四预设区域,且触控类型为在所述触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第二优先级;The fourth determination sub-module is used for if, in the target parameter, the touch starting point position is located in the third preset area of the display screen of the electronic device, and the touch end point position is located in the fourth preset area of the display screen of the electronic device. area, and the touch type is a long-press operation at the touch starting point, then the target priority of the target application running in the background is the second priority;和/或and / or第五确定子模块,用于若所述目标参数中,触控终点位置位于所述电子设备的显示屏幕的第五预设区域,且触控类型为在触控起点位置进行长按操作,则所述目标应用程序在后台运行的目标优先级为第三优先级。The fifth determination sub-module is used for if, in the target parameter, the touch end position is located in the fifth preset area of the display screen of the electronic device, and the touch type is a long-press operation at the touch start position, then The target priority of the target application running in the background is the third priority.
CN202010226072.3A2020-03-262020-03-26 Background switching method of application program and electronic deviceActiveCN111475066B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010226072.3ACN111475066B (en)2020-03-262020-03-26 Background switching method of application program and electronic device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010226072.3ACN111475066B (en)2020-03-262020-03-26 Background switching method of application program and electronic device

Publications (2)

Publication NumberPublication Date
CN111475066Atrue CN111475066A (en)2020-07-31
CN111475066B CN111475066B (en)2021-05-28

Family

ID=71748456

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010226072.3AActiveCN111475066B (en)2020-03-262020-03-26 Background switching method of application program and electronic device

Country Status (1)

CountryLink
CN (1)CN111475066B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112214297A (en)*2020-09-302021-01-12维沃移动通信(杭州)有限公司Application switching method and electronic equipment
CN112689087A (en)*2020-12-142021-04-20浙江大华技术股份有限公司Control authority distribution method and device of cloud deck, electronic device and storage medium
CN115097989A (en)*2022-07-252022-09-23荣耀终端有限公司 Display method, electronic device and storage medium of service card

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160062635A1 (en)*2014-08-272016-03-03Honda Motor Co., Ltd.Application management
CN105630628A (en)*2015-12-172016-06-01小米科技有限责任公司Application restoration method and apparatus
CN107765959A (en)*2017-11-072018-03-06广东欧珀移动通信有限公司Background application display methods and terminal
CN108363524A (en)*2018-01-192018-08-03维沃移动通信有限公司A kind of application icon display methods and mobile terminal
CN109117256A (en)*2018-07-122019-01-01维沃移动通信有限公司A kind of management method and terminal of background application
CN109144705A (en)*2018-10-252019-01-04努比亚技术有限公司Application management method, mobile terminal and computer readable storage medium
CN109992370A (en)*2017-12-292019-07-09广东欧珀移动通信有限公司Application program processing method and device, electronic equipment and computer readable storage medium
CN110569119A (en)*2019-08-302019-12-13维沃移动通信有限公司 Background application program management method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20160062635A1 (en)*2014-08-272016-03-03Honda Motor Co., Ltd.Application management
CN105630628A (en)*2015-12-172016-06-01小米科技有限责任公司Application restoration method and apparatus
CN107765959A (en)*2017-11-072018-03-06广东欧珀移动通信有限公司Background application display methods and terminal
CN109992370A (en)*2017-12-292019-07-09广东欧珀移动通信有限公司Application program processing method and device, electronic equipment and computer readable storage medium
CN108363524A (en)*2018-01-192018-08-03维沃移动通信有限公司A kind of application icon display methods and mobile terminal
CN109117256A (en)*2018-07-122019-01-01维沃移动通信有限公司A kind of management method and terminal of background application
CN109144705A (en)*2018-10-252019-01-04努比亚技术有限公司Application management method, mobile terminal and computer readable storage medium
CN110569119A (en)*2019-08-302019-12-13维沃移动通信有限公司 Background application program management method and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112214297A (en)*2020-09-302021-01-12维沃移动通信(杭州)有限公司Application switching method and electronic equipment
CN112689087A (en)*2020-12-142021-04-20浙江大华技术股份有限公司Control authority distribution method and device of cloud deck, electronic device and storage medium
CN112689087B (en)*2020-12-142022-03-01浙江大华技术股份有限公司Control authority distribution method and device of cloud deck, electronic device and storage medium
CN115097989A (en)*2022-07-252022-09-23荣耀终端有限公司 Display method, electronic device and storage medium of service card
CN115097989B (en)*2022-07-252023-01-24荣耀终端有限公司 Service card display method, electronic device and storage medium

Also Published As

Publication numberPublication date
CN111475066B (en)2021-05-28

Similar Documents

PublicationPublication DateTitle
US12105935B2 (en)Method for displaying background application and mobile terminal
CN108536411A (en)A kind of method for controlling mobile terminal and mobile terminal
CN107977132B (en)Information display method and mobile terminal
CN108255378A (en)A kind of display control method and mobile terminal
WO2020147674A1 (en)Unread message prompt method and mobile terminal
CN107728923B (en) An operation processing method and mobile terminal
CN108491148B (en)Application sharing method and terminal
CN107580143A (en) A display method and mobile terminal
CN108062194B (en) A display method, device and mobile terminal
CN109062634B (en)Application starting method and mobile terminal
CN111338530A (en) Application icon control method and electronic device
CN110795189A (en)Application starting method and electronic equipment
CN108446065A (en)A kind of processing method and mobile terminal of application program
CN110609648A (en) Application program control method and terminal
CN108897473A (en)A kind of interface display method and terminal
CN110531915A (en) Screen operation method and terminal equipment
CN111610903A (en) Information display method and electronic device
CN109634438A (en)A kind of control method and terminal device of input method
CN108958593A (en)A kind of method and mobile terminal of determining communication object
CN111475066B (en) Background switching method of application program and electronic device
CN108388396A (en)A kind of interface switching method and mobile terminal
CN110096203A (en)A kind of screenshot method and mobile terminal
CN108536349B (en) Icon management method and mobile terminal
CN111562959A (en) Icon management method and electronic device
CN107797728A (en)The method and mobile terminal of a kind of access application

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp