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
screen
target application
system desktop
switching
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 OR CALCULATING; 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 present application discloses a method and device for controlling the operation of an application, including: receiving a first operation for a target application, obtaining a first operation parameter for the first operation, the first operation being used to trigger switching from the target application to the desktop, the first operation including an operation triggered by a navigation gesture or a navigation key, the first operation parameter including a pressing duration; determining whether the pressing duration reaches a preset duration, and if so, displaying a first area and a second area on the screen; receiving a second operation for a screen area, obtaining a second operation parameter for the second operation, the second operation parameter including an operation area and type; determining whether the target application is still running in the background after switching to the desktop according to the second operation parameter. When the user exits the application and switches to the desktop, he or she only needs to simply adjust the pressing duration of the exit operation and perform a simple operation on the area displayed on the screen to choose whether to keep the application running in the background, and the operation is simple.

Description

Application program running control method and device
Technical Field
The application belongs to the technical field of communication, and particularly relates to an application program operation control method and device.
Background
With the development of mobile internet technology, the types and functions of application programs are more and more abundant, and the application programs installed in electronic devices by users are more and more. At present, when a user uses an electronic device, the user usually switches back and forth between an application program and a system desktop, and after the application program is switched to the system desktop, the electronic device cannot determine whether the user wants to keep the application program running in the background.
In the prior art, a user needs to preset whether an application program runs in the background, taking a video application program as an example, the user needs to preset the background play of the video application program, and the background play is kept when the video application program is switched to a system desktop. However, when the user switches to the system desktop for a certain time, if the background playing is not desired, the user needs to pause the video playing first and then switch to the system desktop, which is complicated in operation.
Disclosure of Invention
The embodiment of the application aims to provide an application program operation control method and device, which are used for solving the technical problem of complicated operation in the prior art.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a method for controlling operation of an application, where the method includes:
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.
Optionally, as an embodiment, the determining, according to the second operation parameter, whether the target application program 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 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.
Optionally, as an embodiment, the method further includes:
And if the pressing time is lower than the preset time, determining to close the target application program 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 alternatively
The first area is the upper half area of the screen, and the second area is the lower half area of the screen.
Optionally, as an embodiment, a prompt is displayed on the first area and the second area, where the prompt is used to indicate a correspondence between a user operation and an operation mode of the target application after switching to a system desktop.
In a second aspect, an embodiment of the present application provides an apparatus for controlling operation of an application program, including:
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.
Optionally, as an embodiment, the second determining module includes:
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.
Optionally, as an embodiment, the apparatus further includes:
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.
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 alternatively
The first area is the upper half area of the screen, and the second area is the lower half area of the screen.
Optionally, as an embodiment, a prompt is displayed on the first area and the second area, where the prompt is used to indicate a correspondence between a user operation and an operation mode of the target application after switching to a system desktop.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, where the program or the instruction implements the steps of the method for controlling the operation of an application program according to the first aspect when executed by the processor.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements the steps of the method for controlling the operation of an application program according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions, and implement the method for controlling operation of an application program according to the first aspect.
In the embodiment of the application, when receiving the first operation for triggering the electronic equipment to be switched from the target application program to the system desktop, the pressing time length of the first operation can be obtained, the pressing time length of the first operation is determined to reach the preset time length, and the first area and the second area are displayed on the screen; and then receiving a second operation aiming at the screen area, acquiring an operation area and an operation type of the second operation, and determining whether the target application program is still operated in the background after switching to the system desktop according to the operation area and the operation type of the second operation. Compared with the prior art, in the embodiment of the application, when the user exits the application program and switches to the system desktop, the user can select whether to keep the background operation of the application program or not by simply adjusting the pressing time of the exit operation and simply operating the area displayed on the screen, so that the operation is simple and quick.
Drawings
FIG. 1 is a flowchart of a method for controlling the operation of an application program according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of displaying a first region and a second region on a screen according to an embodiment of the present application;
FIG. 3 is a diagram illustrating yet another example of displaying a first region and a second region on a screen provided by an embodiment of the present application;
FIG. 4 is a block diagram of an apparatus for controlling the operation of an application according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The embodiment of the application provides an application program running control method and device.
The following describes in detail an operation control method of an application program provided by the embodiment of the present application through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
It should be noted that, the method for controlling the operation of the application program provided in the embodiment of the present application is applicable to an electronic device, and in practical application, the electronic device may include: mobile terminals such as smartphones, tablet computers, personal digital assistants, etc., the embodiments of the present application are not limited thereto.
Fig. 1 is a flowchart of a method for controlling operation of an application program according to an embodiment of the present application, as shown in fig. 1, the method may include the following steps: step 101, step 102, step 103 and step 104, wherein,
In step 101, a first operation for a target application program is received, and a first operation parameter of the first operation is acquired, where the first operation is used to trigger the electronic device to switch from the target application program to a system desktop, and the first operation includes: the first operating parameter includes a duration of the press by an operation triggered by a navigation gesture or by an operation triggered by a navigation key.
In the embodiment of the application, the target application program can be any application program installed in the electronic equipment; or the target application may be a specific type of application installed in the electronic device; or the target application may be a user-specified application installed in the electronic device, which is not limited by the embodiment of the present application.
In the embodiment of the application, when the electronic equipment supports the user to use the navigation gesture and slide back to the system desktop through the bottom, the first operation is an operation triggered by the navigation gesture, and specifically, the first operation is an upward sliding operation taking the bottom of the screen of the electronic equipment as a starting position.
In the embodiment of the application, when the electronic device supports the user to return to the system desktop by using the navigation key, for example, the home key, the first operation is an operation triggered by the navigation key, and specifically, the first operation is an operation of pressing the navigation key.
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 application, when the electronic equipment supports the user to use the navigation gesture and returns to the desktop of the system through the upward sliding of the bottom, whether the pressing duration of the first operation reaches the preset duration is determined, and whether the user immediately loosens the hand is actually determined when the user slides up from the bottom of the screen. At this time, the user has a wish to exit the application program and return to the desktop of the system, i.e. different responses are performed according to whether the user immediately releases his hands.
In the embodiment of the application, when the electronic equipment supports the user to return to the system desktop by using the navigation key, for example, the home key, whether the pressing duration of the first operation reaches the preset duration is determined, and whether the user immediately loosens the hand is actually determined when the user clicks the navigation key. At this time, the user has a wish to exit the application program and return to the desktop of the system, i.e. different responses are performed according to whether the user immediately releases his hands.
In the embodiment of the application, if the pressing time reaches the preset time, the user is not released, and two areas, namely a first area and a second area, are displayed on the screen of the electronic equipment. If the pressing time is lower than the preset time, the user immediately loosens the hand, and the target application program is closed after switching to the system desktop is determined.
In the embodiment of the application, the positions of the first area and the second area can be determined according to the behavior habit of the user or the setting of the user, and then the first area and the second area are displayed on a screen. In practical application, the first area may be a left half area of the screen, and the second area is a right half area of the screen; or the first area is the upper half area of the screen, and the second area is the lower half area of the screen.
In the embodiment of the application, the first area and the second area are displayed with prompt, wherein the prompt is used for indicating the corresponding relation between the user operation and the operation mode of the target application program after switching to the system desktop.
In one example, as shown in fig. 2, the electronic device 20 supports the user to return to the system desktop by sliding up the bottom using a navigation gesture, and when the pressing duration of the first operation of the user reaches the preset duration, a first area 21 and a second area 22 are displayed on the screen of the electronic device 20, the first area 21 displays a prompt of "finger moves to this area and closes the background operation", and the second area 22 displays a prompt of "finger moves to this area and reserves the background operation".
In another example, as shown in fig. 3, the electronic device 30 supports the user to return to the system desktop using the navigation key, and when the pressing duration of the first operation of the user reaches the preset duration, a first area 31 and a second area 32 are displayed on the screen of the electronic device 30, the first area 31 is displayed with the prompt "finger moves to this area, the background operation is closed", and the second area 32 is displayed with the prompt "finger moves to this area, and the background operation is reserved.
In step 103, a second operation for 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: determining whether the second operation is triggered in the first area or the second area, and determining whether the operation type of the second operation is a sliding operation, a clicking operation, a long-press operation, or the like.
In step 104, it is determined whether the target application is still running in the background after switching to the system desktop, based on the second operating parameter.
In one embodiment of the present application, the step 104 may specifically include the following steps:
when the second operation is the operation of sliding to the first area, namely the operation area of the second operation is the first area, and when the operation type is the sliding operation, determining to close the target application program after switching to the system desktop;
when the second operation is the operation of sliding to the second area, that is, the operation area of the second operation is the second area, and when the operation type is the sliding operation, it is determined that the target application program is still operated in the background after switching to the system desktop.
In one example, when the electronic device supports the user to return to the system desktop by sliding up the bottom using a navigation gesture, the user has a desire to exit the application to return to the system desktop at this point, i.e., a different response is made depending on whether the user is immediately released. Specifically, if the user immediately releases his hand, the background operation of the application program is not reserved and the system desktop is returned. If the user does not immediately loosen the hands, a left area and a right area are displayed on the screen, and prompt languages are generated in the left area and the right area respectively. As shown in fig. 2, if the user slides the finger to the left area, the application is not left running in the background and returns to the system desktop. If the user slides the finger to the right area, the application program is kept running in the background and returned to the system desktop, for example, the video application keeps the video to continue playing, the downloading application continues in the background downloading, and the like, and simultaneously the system desktop is returned.
In another example, when the electronic device supports the user to return to the system desktop using the navigation key, the user clicks the navigation key. At this time, the user has a wish to exit the application program and return to the desktop of the system, i.e. different responses are performed according to whether the user immediately releases his hands. Specifically, if the user releases his hand immediately after clicking the navigation key, the background operation of the application program is not reserved and the system desktop is returned. If the user does not immediately loose hands after clicking the navigation key, displaying a left area and a right area on the screen, and generating prompt languages in the left area and the right area respectively. As shown in fig. 3, if the user slides the finger to the left area, the application is not left running in the background and returns to the system desktop. If the user slides the finger to the right area, the application program is kept running in the background and returned to the system desktop, for example, the video application keeps the video to continue playing, the downloading application continues in the background downloading, and the like, and simultaneously the system desktop is returned.
Therefore, in the embodiment of the application, when the user returns to the system desktop from the application program by using the navigation gesture or the navigation key, whether the background operation of the application program is kept can be quickly selected through long-press and sliding operation, so that the operation is convenient and quick, and the user experience is improved.
As can be seen from the foregoing embodiments, in this embodiment, when a first operation for triggering the electronic device to switch from the target application to the system desktop is received, a pressing duration of the first operation may be obtained, and it is determined that the pressing duration of the first operation reaches a preset duration, and a first area and a second area are displayed on a screen; and then receiving a second operation aiming at the screen area, acquiring an operation area and an operation type of the second operation, and determining whether the target application program is still operated in the background after switching to the system desktop according to the operation area and the operation type of the second operation. Compared with the prior art, in the embodiment of the application, when the user exits the application program and switches to the system desktop, the user can select whether to keep the background operation of the application program or not by simply adjusting the pressing time of the exit operation and simply operating the area displayed on the screen, so that the operation is simple and quick.
It should be noted that, in the method for controlling operation of an application program according to the embodiment of the present application, the execution body may be an operation control device of the application program, or a control module in the operation control device of the application program for executing the operation control method for loading the application program. In the embodiment of the present application, an operation control method for executing and loading an application program by using an operation control device for an application program is taken as an example, and the operation control device for an application program provided in the embodiment of the present application is described.
Fig. 4 is a block diagram of an apparatus for controlling operation of an application according to an embodiment of the present application, and as shown in fig. 4, an apparatus 400 for controlling operation of an application may include: a first receiving module 401, a first acquiring module 402, a first determining module 403, a display module 404, a second receiving module 405, a second acquiring module 406 and a second determining module 407, wherein,
A first receiving module 401, configured to receive a first operation for a target application program, where the first operation is used 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 402, configured to obtain a first operation parameter of the first operation, where the first operation parameter includes a pressing duration;
A first determining module 403, configured to determine whether the pressing duration reaches a preset duration;
a display module 404, configured to display a first area and a second area on a screen if the determination result of the first determination module is yes;
A second receiving module 405, configured to receive a second operation for the screen area;
A second obtaining module 406, configured to obtain a second operation parameter of the second operation, where the second operation parameter includes: an operation area and an operation type;
A second determining module 407, configured 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 foregoing embodiments, in this embodiment, when a first operation for triggering the electronic device to switch from the target application to the system desktop is received, a pressing duration of the first operation may be obtained, and it is determined that the pressing duration of the first operation reaches a preset duration, and a first area and a second area are displayed on a screen; and then receiving a second operation aiming at the screen area, acquiring an operation area and an operation type of the second operation, and determining whether the target application program is still operated in the background after switching to the system desktop according to the operation area and the operation type of the second operation. Compared with the prior art, in the embodiment of the application, when the user exits the application program and switches to the system desktop, the user can select whether to keep the background operation of the application program or not by simply adjusting the pressing time of the exit operation and simply operating the area displayed on the screen, so that the operation is simple and quick.
Alternatively, as an embodiment, the second determining module 407 may include:
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.
Optionally, as an embodiment, the operation control device 400 of the application program may further include:
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.
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 alternatively
The first area is the upper half area of the screen, and the second area is the lower half area of the screen.
Optionally, as an embodiment, a prompt is displayed on the first area and the second area, where the prompt is used to indicate a correspondence between a user operation and an operation mode of the target application after switching to a system desktop.
The operation control device of the application program in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The operation control device of the application program 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, and the embodiment of the present application is not limited specifically.
The running control device for the application program provided by the embodiment of the present application can implement each process implemented by the embodiment of the method of fig. 1, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 5, an embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of being executed on the processor 501, where the program or the instruction implements each process of the above embodiment of the operation control method of the application program when executed by the processor 501, and the process can achieve the same technical effect, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 610 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The user input unit 607 is configured to receive a first operation for a target application, where the first operation is configured to trigger the electronic device to switch from the target application 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 processor 610 configured to obtain a first operation parameter of the first operation, where the first operation parameter includes a pressing duration; determining whether the pressing time length reaches a preset time length;
a display unit 606, configured to display a first area and a second area on the screen if the pressing duration reaches a preset duration;
A user input unit 607 for receiving a second operation for the screen area;
The processor 610 is further 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 determining whether the target application program is still running in the background after switching to the system desktop according to the second operation parameter.
In the embodiment of the application, when receiving the first operation for triggering the electronic equipment to switch from the target application program to the system desktop, the pressing duration of the first operation can be obtained, the pressing duration of the first operation is determined to reach the preset duration, and the first area and the second area are displayed on the screen; and then receiving a second operation aiming at the screen area, acquiring an operation area and an operation type of the second operation, and determining whether the target application program is still operated in the background after switching to the system desktop according to the operation area and the operation type of the second operation. Compared with the prior art, in the embodiment of the application, when the user exits the application program and switches to the system desktop, the user can select whether to keep the background operation of the application program or not by simply adjusting the pressing time of the exit operation and simply operating the area displayed on the screen, so that the operation is simple and quick.
Optionally, as an embodiment, the processor 610 is further configured to determine to close the target application after switching to the system desktop when the second operation is an operation of sliding to the first area; 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.
Optionally, as an embodiment, the processor 610 is further configured to determine to close the target application after switching to the system desktop if the pressing duration is less 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 alternatively
The first area is the upper half area of the screen, and the second area is the lower half area of the screen.
Optionally, as an embodiment, a prompt is displayed on the first area and the second area, where the prompt is used to indicate a correspondence between a user operation and an operation mode of the target application after switching to a system desktop.
It should be appreciated that in embodiments of the present application, the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, with the graphics processor 6041 processing image data of still pictures or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing 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, or the like. 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 of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores a program or an instruction, and the program or the instruction realizes each process of the operation control method embodiment of the application program when being executed by a processor, and can achieve the same technical effect, so that repetition is avoided and redundant description is omitted.
Wherein 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 Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the running control method embodiment of the application program can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1.一种应用程序的运行控制方法,其特征在于,所述方法包括:1. A method for controlling the operation of an application, characterized in that the method comprises: 接收针对目标应用程序的第一操作,并获取所述第一操作的第一操作参数,其中,所述第一操作用于触发电子设备由所述目标应用程序切换至系统桌面,所述第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作,所述第一操作参数包括按压时长;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 on 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. 2.根据权利要求1所述的方法,其特征在于,所述根据所述第二操作参数,确定在切换至系统桌面后是否还在后台运行所述目标应用程序,包括:2. The method according to claim 1, wherein determining whether the target application is still running in the background after switching to the system desktop according to the second operating parameter comprises: 当所述第二操作为滑动至所述第一区域的操作时,确定在切换至系统桌面后关闭所述目标应用程序;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. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, characterized in that the method further comprises: 若所述按压时长低于预设时长,则确定在切换至系统桌面后关闭所述目标应用程序。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. 4.根据权利要求1至3任一项所述的方法,其特征在于,所述第一区域为所述屏幕的左半区域,所述第二区域为所述屏幕的右半区域;或者,4. The method according to any one of claims 1 to 3, characterized in that 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. 5.根据权利要求4所述的方法,其特征在于,所述第一区域和第二区域上显示有提示语,其中,所述提示语用于指示用户操作与切换至系统桌面后所述目标应用程序运行方式的对应关系。5. The method according to claim 4 is characterized in that 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. 6.一种应用程序的运行控制装置,其特征在于,所述装置包括:6. A device for controlling the operation of an application, characterized in that the device comprises: 第一接收模块,用于接收针对目标应用程序的第一操作,其中,所述第一操作用于触发电子设备由所述目标应用程序切换至系统桌面,所述第一操作包括:通过导航手势触发的操作、或者通过导航键触发的操作;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. 7.根据权利要求6所述的装置,其特征在于,所述第二确定模块包括:7. The device according to claim 6, wherein the second determining module comprises: 第一确定子模块,用于当所述第二操作为滑动至所述第一区域的操作时,确定在切换至系统桌面后关闭所述目标应用程序;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. 8.根据权利要求6所述的装置,其特征在于,所述装置还包括:8. The device according to claim 6, characterized in that the device further comprises: 第三确定模块,用于在所述第一确定模块的确定结果为否的情况下,确定在切换至系统桌面后关闭所述目标应用程序。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. 9.根据权利要求6至8任一项所述的装置,其特征在于,所述第一区域为所述屏幕的左半区域,所述第二区域为所述屏幕的右半区域;或者,9. The device according to any one of claims 6 to 8, characterized in that 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. 10.根据权利要求9所述的装置,其特征在于,所述第一区域和第二区域上显示有提示语,其中,所述提示语用于指示用户操作与切换至系统桌面后所述目标应用程序运行方式的对应关系。10. The device according to claim 9 is characterized in that 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.
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 (2)

* 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
CN119829185A (en) * 2024-12-24 2025-04-15 浙江吉利控股集团有限公司 Interactive control method, computer readable storage medium and vehicle

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
CN112162665B (en) Operation method and device
CN112540740B (en) Split-screen display method, device, electronic device, and readable storage medium
CN112433693B (en) Split screen display method and device and electronic equipment
CN112732392B (en) Application program operation control method and device
CN112817555B (en) Volume control method and volume control device
CN112188001B (en) Shortcut setting method, shortcut setting device, electronic equipment and readable storage medium
CN114327726A (en) Display control method, display control device, electronic equipment and storage medium
CN113407280A (en) Display method and device and electronic equipment
CN114222355B (en) Terminal power-saving display method and device and electronic equipment
CN112099682B (en) Icon display method and device and electronic equipment
CN114564134A (en) Application icon display method and device
CN111831177B (en) Application icon display method and device and electronic equipment
CN113703630A (en) Interface display method and device
CN111930296A (en) Electronic equipment control method and device and electronic equipment
CN113778311B (en) Operation method, device and electronic equipment
CN112214297B (en) Application switching method and electronic device
CN116088989A (en) Application display method and application display device
CN111949322B (en) Information display method and device
CN113805756A (en) Interface display method, device, electronic device and storage medium
CN113778237B (en) Text display method, text display device, electronic equipment and medium
CN112765508A (en) Information display method and device and electronic equipment
CN114047991B (en) Method and device for determining focus movement sequence
CN112437196B (en) Page display method, device and electronic device
CN113805758B (en) Application icon operation method and device
CN115454263B (en) Text input methods, devices, electronic devices and storage media

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