Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for closing an application, which is applied to a mobile terminal, where the mobile terminal includes two sub-screens that can be folded relatively, and specifically, the method for closing the application includes:
step 101, when at least one of two sub-screens displays an operation interface of a preset application program, acquiring an included angle between the two sub-screens;
it should be noted that at least one sub-screen displays an operation interface of a preset application, that is, two sub-screens may display an operation interface of the same application together, or may display operation interfaces of different applications respectively.
Step 102, if the change of the included angle value between the two sub-screens meets the closing condition of a preset application program, closing at least one application program in the preset application program;
it should be noted that the preset shutdown condition of the application includes: the included angle between the two sub-screens is in a trend of becoming smaller and reaches a first preset angle value, or the included angle between the two sub-screens is in a trend of becoming larger and reaches a second preset angle value;
the first preset angle value is less than 180 degrees, and the second preset angle value is greater than 180 degrees.
It should be noted that, the closing at least one of the preset applications instep 102 refers to: the method for closing the running interface of at least one application in the preset applications, that is, closing the application here refers to closing the application in the foreground, and there is no limitation on whether the application closes the running interface in the background in the embodiment of the present invention, that is, in the embodiment of the present invention, the application in the background may be closed (that is, the application may exit in the background) when the running interface in the foreground of the application is closed, or in the embodiment of the present invention, only the running interface in the foreground of the application is closed, and the application does not exit in the background.
For example, as shown in fig. 2, the operation interface of the mobile terminal is divided into afirst sub-screen 21 and asecond sub-screen 22 by a dotted line in the figure, and thefirst sub-screen 21 and thesecond sub-screen 22 can be relatively folded with respect to the dotted line in the figure.
It should be noted that the two sub-screens may simultaneously display the same application (that is, the two sub-screens simultaneously display the operation interface of the same application), or may display different applications in a split-screen manner (that is, the two sub-screens display the operation interfaces of different applications), and the following specifically describes the embodiments of the present invention in different display manners.
One-screen and two-screen split-screen display application program
In this case, the specific implementation manner ofstep 102 is:
acquiring the movement directions of the two sub-screens in the process of changing the included angle of the two sub-screens;
it should be noted that the moving direction includes: the two sub-screens are subjected to relative folding motion; or, one sub-screen is stationary and the other sub-screen undergoes a folding motion toward the stationary sub-screen.
The moving directions of the two sub-screens influence the closing number of the application programs, so the moving directions of the two sub-screens need to be acquired first in the implementation mode, and the moving direction detection can be realized through an acceleration sensor.
Closing at least one application program in the preset application programs according to the movement direction;
after the movement directions of the two sub-screens are obtained, a specific application program can be selected to be closed according to the movement directions; the method specifically comprises the following steps:
1. when the movement direction is that the two sub-screens both generate relative folding movement, the implementation manner of closing at least one application program in the preset application programs is as follows: closing all the application programs in the preset application programs displayed on the two sub-screens; in this implementation, when both the sub-screens move, both the open applications on both the sub-screens are closed, where closing closes the running interface of the open application.
2. When the moving direction is that one sub-screen is static and the other sub-screen performs folding movement towards the static sub-screen, the specific implementation manner of closing at least one application program in the preset application programs is as follows: selecting a first application program on a sub-screen with folding motion in the preset application programs; closing the first application program; in this implementation, the application program opened on the sub-screen where the folding motion occurs is closed, where the closing closes the running interface of the opened application program.
The two implementation modes can facilitate the user to close the application program under any condition, and the user only needs to select which mode to use to close the application program according to the requirement of the user.
Two, two sub-screens for displaying the same application program
In this case, the specific implementation manner ofstep 102 is:
and closing the preset application programs displayed on the two sub-screens.
It should be noted that, in this case, generally, the two sub-screens need to display the running interface of one application together, and the running interface of the one application needs to be closed regardless of the moving directions of the two sub-screens, so in this case, as long as the included angle between the two sub-screens satisfies the closing condition of the application, the running interface of the displayed application is closed.
It should be noted that the moving direction of the sub-screen may be toward a direction in which the included angle becomes smaller, or may be toward a direction in which the included angle becomes larger, and according to the increase or decrease of the included angle in the moving direction of the sub-screen, the following respectively describes implementation manners of the present invention in different cases.
A1, the closing condition is that the included angle between the two sub-screens is in the trend of diminishing, and the included angle reaches a first preset angle value
In this case, after closing at least one of the preset applications, the method for closing an application according to the embodiment of the present invention further includes:
when the included angle between the two sub-screens is in a trend of becoming smaller and reaches a third preset angle value, performing screen locking processing on the display interface of the mobile terminal;
wherein the third preset angle value is less than or equal to the first preset angle value.
It should be noted that, when the third preset angle value is equal to the first preset angle value, that is, when the application program is closed, the screen of the display interface of the mobile terminal is locked at the same time.
It should be noted that, in this case, the two sub-screens move towards the direction of the smaller included angle, as shown in fig. 3, the included angle between the sub-screen 31 and the sub-screen 32 is 180 degrees (the position shown by the dotted lines on both sides), and the included angle becomes smaller than 180 degrees by performing the folding movement along the middle dotted line, and at this time, the screens of the sub-screen 31 and the sub-screen 32 are close to each other.
It should be noted that the above method illustrates that when the sub-screen moves to a first angle (e.g., 150 degrees), the application program is closed, and when the sub-screen moves to a second angle (e.g., 120 degrees), the screen locking operation of the mobile terminal is performed, and the mobile terminal is between the first angle and the second angle, specifically, fig. 4 illustrates a process of changing an included angle between two sub-screens, where the included angle between two sub-screens gradually changes from 180 degrees to angle a and gradually changes from angle a to angle B.
It should be noted that, when the third preset angle value is smaller than the first preset angle value, in this process, the method for closing the application program according to the embodiment of the present invention further includes:
displaying an icon list of a first target application program at a preset screen display position of the mobile terminal;
and receiving an opening operation instruction of a user, and displaying an interface of an application program corresponding to the icon selected in the icon list by the user on at least one screen of the two sub-screens for displaying.
It should be noted that, when the mobile terminal is between the first angle and the second angle, the mobile terminal may display icons of some applications, the applications may be applications that are recently used by the user, and the mobile terminal may display the icon of the application on the screen side of one sub-screen, for example, as shown in fig. 5, the icon of the application is displayed on the screen side of the sub-screen 51 (in the figure, an oval icon is an icon of the application).
Specifically, in this case, as shown in fig. 6, a specific implementation flow of the embodiment of the present invention is as follows:
601, displaying an application program M on a display screen of the mobile terminal;
at this time, the two sub-screens of the display screen are displayed together for the application program M.
Step 602, when the included angle between two sub-screens changes, detecting the included angle between the two sub-screens;
step 603, determining whether the included angle between the two sub-screens is continuously smaller and not smaller than a preset angle a (for example, 150 degrees), if yes, executingstep 604; otherwise, continue to step 601;
step 604, closing the running interface of the application program M;
step 605, determining whether the included angle between the two sub-screens is not smaller than a preset angle B (for example, 120 degrees) when the included angle between the two sub-screens is continuously reduced, if so, performingstep 606, and if not, performingstep 607.
Step 606, displaying icons of the latest commonly used application programs on any one side of the two sub-screens;
for example, a column of icons is shown in the left side bar of the left sub-screen to show the user's most recent applications, which can slide up and down, and the right normally shows all applications, sorted by user default. After the user closes the current application, the user can select the next application to be opened in the sidebar without changing the current gesture of holding the mobile phone, and if no application which the user wants to open is in the sidebar, the user can search all applications on the right for the application to be opened.
And step 607, locking the screen of the mobile terminal.
A2, the closing condition is that the included angle between the two sub-screens is in the trend of becoming bigger and reaches a second preset angle value
In this case, after closing at least one of the preset applications, the method for closing an application according to the embodiment of the present invention further includes:
when the change of the included angle value between the two sub-screens is in a trend of increasing and reaches a fourth preset angle value, performing screen locking processing on a display interface of the mobile terminal;
wherein the fourth preset angle value is greater than or equal to the second preset angle value.
In this case, the two sub-screens move toward a direction in which the included angle is increased, and the screens of the two sub-screens are deviated from each other. It should be further noted that, when the fourth preset angle value is equal to the second preset angle value, that is, when the application program is closed, the screen of the display interface of the mobile terminal is locked at the same time.
It should be further noted that, the above-mentioned method illustrates that when the sub-screen moves to a first angle (for example, 210 degrees), the closing operation of the application program is performed, and when the sub-screen moves to a second angle (for example, 240 degrees), the screen locking operation of the mobile terminal is performed, and when the mobile terminal is between the first angle and the second angle (in this case, the fourth preset angle value is greater than the second preset angle value), the closing method of the application program of the embodiment of the present invention further includes:
displaying an icon list of a second target application program at a preset screen display position of the mobile terminal;
and receiving an opening operation instruction of a user, and displaying an application program corresponding to the icon selected in the icon list by the user on at least one screen of the two sub-screens.
It should be noted that, when the mobile terminal is located between the first angle and the second angle, the mobile terminal may display icons of some applications, the applications may be applications that are recently used by the user, and the mobile terminal may display the icons of the applications on the screen side of one sub-screen.
It should be noted that, the embodiment of the present invention can close or exit the current application program in a faster and more convenient manner, and can improve the user experience of the mobile terminal.
As shown in fig. 7 to fig. 11, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes two sub-screens capable of being folded relatively, and specifically, the mobile terminal further includes:
a first obtainingmodule 701, configured to obtain an included angle between two sub-screens when an operation interface of a preset application program is displayed on at least one of the two sub-screens;
an executingmodule 702, configured to close at least one application program of preset application programs if a change in an included angle value between the two sub-screens meets a closing condition of the preset application programs;
wherein the preset closing condition of the application program comprises: the included angle between the two sub-screens is in a trend of becoming smaller and reaches a first preset angle value, or the included angle between the two sub-screens is in a trend of becoming larger and reaches a second preset angle value;
the first preset angle value is less than 180 degrees, and the second preset angle value is greater than 180 degrees.
Further, when the two sub-screens display the application in a split-screen manner, the executingmodule 702 includes:
the obtaining sub-module 7021 is configured to obtain the moving directions of the two sub-screens in the process of changing the included angle between the two sub-screens;
anexecution sub-module 7022, configured to close at least one of the preset application programs according to the moving direction;
wherein the direction of motion comprises: the two sub-screens are subjected to relative folding motion; or
One sub-screen is stationary and the other sub-screen undergoes a folding motion towards the stationary sub-screen.
Further, when the moving direction is that the two sub-screens generate relative folding movement, theexecution sub-module 7022 is configured to:
and closing all the application programs in the preset application programs displayed on the two sub-screens.
Specifically, when the moving direction is that one sub-screen is stationary and the other sub-screen performs a folding motion toward the stationary sub-screen, theexecution sub-module 7022 includes:
a selectingunit 70221, configured to select, from the preset application programs, a first application program on the sub-screen where the folding motion occurs;
anexecution unit 70222 for closing the first application.
Further, when the two sub-screens display the same application, theexecution module 702 is configured to:
and closing the preset application programs displayed on the two sub-screens.
Specifically, when the closing condition is that the included angle between the two sub-screens is in a decreasing trend and the included angle reaches a first preset angle value, after the execution module closes at least one application program of the preset application programs, the mobile terminal further includes:
the firstscreen locking module 703 is configured to perform screen locking processing on the display interface of the mobile terminal when an included angle between the two sub-screens is in a trend of becoming smaller and reaches a third preset angle value;
wherein the third preset angle value is less than or equal to the first preset angle value.
Further, when the included angle between the two sub-screens is smaller than the first preset angle value and larger than the third preset angle value, the method further includes:
afirst display module 704, configured to display an icon list of a first target application at a preset screen display position of the mobile terminal;
thesecond display module 705 is configured to receive an opening operation instruction of a user, and display an interface of an application program corresponding to an icon selected by the user in the icon list on at least one of the two sub-screens for display.
Specifically, when the closing condition is that the included angle between the two sub-screens is in a trend of becoming larger and the included angle reaches a second preset angle value, after the execution module closes at least one application program in the preset application programs, the mobile terminal further includes:
the secondscreen locking module 706 is configured to perform screen locking processing on the display interface of the mobile terminal when the change of the included angle value between the two sub-screens is in a trend of increasing and reaches a fourth preset angle value;
wherein the fourth preset angle value is greater than or equal to the second preset angle value.
Further, when the included angle between the two sub-screens is greater than the second preset angle value and is less than the fourth preset angle value, the method further includes:
athird display module 707, configured to display an icon list of a second target application at a preset screen display position of the mobile terminal;
afourth display module 708, configured to receive an opening operation instruction of the user, and display an application program corresponding to an icon selected by the user in the icon list on at least one of the two sub-screens.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiment of fig. 1, and is not described herein again in order to avoid repetition. According to the embodiment of the invention, the included angle between the two sub-screens of the mobile terminal meets the closing condition of the application program, and at least one application program in the preset application programs is closed; the method can realize the quick closing of the application program, and is convenient for the operation of a user when the screen size is larger.
Fig. 12 is a schematic diagram of a hardware structure of a mobile terminal implementing an embodiment of the present invention.
Themobile terminal 120 includes but is not limited to: aradio frequency unit 1210, anetwork module 1220, anaudio output unit 1230, aninput unit 1240, asensor 1250, adisplay unit 1260, auser input unit 1270, aninterface unit 1280, amemory 1290, aprocessor 1211, and apower supply 1212. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 12 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The mobile terminal comprises two sub-screens capable of being folded oppositely;
aprocessor 1211, configured to, when a running interface of a preset application program is displayed on at least one of the two sub-screens, obtain an included angle between the two sub-screens;
if the change of the included angle value between the two sub-screens meets the closing condition of a preset application program, closing at least one application program in the preset application program;
wherein the preset closing condition of the application program comprises: the included angle between the two sub-screens is in a trend of becoming smaller and reaches a first preset angle value, or the included angle between the two sub-screens is in a trend of becoming larger and reaches a second preset angle value;
the first preset angle value is less than 180 degrees, and the second preset angle value is greater than 180 degrees.
The mobile terminal of the embodiment of the invention closes at least one application program in the preset application programs by meeting the closing condition of the application programs through the included angle between the two sub-screens; the method can realize the quick closing of the application program, and is convenient for the operation of a user when the screen size is larger.
It should be understood that, in the embodiment of the present invention, therf unit 1210 may be used for receiving and transmitting signals during information transmission or communication, and specifically, receives downlink data from a base station and then processes the received downlink data to theprocessor 1211; in addition, the uplink data is transmitted to the base station. Generally,radio unit 1210 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 unit 1210 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through thenetwork module 1220, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
Theaudio output unit 1230 may convert audio data received by theradio frequency unit 1210 or thenetwork module 1220 or stored in thememory 1290 into an audio signal and output as sound. Also, theaudio output unit 1230 may also provide audio output related to a specific function performed by the mobile terminal 120 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 1230 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 1240 is used to receive audio or video signals. Theinput Unit 1240 may include a Graphics Processing Unit (GPU) 1241 and amicrophone 1242, and theGraphics processor 1241 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on thedisplay unit 1260. The image frames processed by thegraphic processor 1241 may be stored in the memory 1290 (or other storage medium) or transmitted via theradio frequency unit 1210 or thenetwork module 1220. Themicrophone 1242 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio unit 1210 in case of a phone call mode.
Themobile terminal 120 also includes at least onesensor 1250, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of thedisplay panel 1261 according to the brightness of ambient light, and a proximity sensor that turns off thedisplay panel 1261 and/or backlight when themobile terminal 120 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); thesensors 1250 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 1260 is used to display information input by a user or information provided to a user. The Display unit 126 may include aDisplay panel 1261, and theDisplay panel 1261 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 1270 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, theuser input unit 1270 includes atouch panel 1271 andother input devices 1272.Touch panel 1271, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., user operations ontouch panel 1271 or neartouch panel 1271 using a finger, stylus, or any other suitable object or attachment).Touch panel 1271 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to theprocessor 1211, receives a command from theprocessor 1211, and executes the command. In addition, thetouch panel 1271 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition totouch panel 1271, user input unit 127 may includeother input devices 1272. In particular,other input devices 1272 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further,touch panel 1271 can be overlaid ondisplay panel 1261, and whentouch panel 1271 detects a touch operation thereon or nearby, it can be transmitted toprocessor 1211 for determining the type of touch event, andprocessor 1211 can then provide a corresponding visual output ondisplay panel 1261 according to the type of touch event. Although in fig. 12, thetouch panel 1271 and thedisplay panel 1261 are implemented as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, thetouch panel 1271 and thedisplay panel 1261 may be integrated to implement the input and output functions of the mobile terminal, and are not limited herein.
Theinterface unit 1280 is an interface through which an external device is connected to themobile terminal 120. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 1280 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within themobile terminal 120 or may be used to transmit data between themobile terminal 120 and external devices.
Thememory 1290 may be used for storing software programs and various data. Thememory 1290 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, thememory 1290 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Theprocessor 1211 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in thememory 1290 and calling data stored in thememory 1290, thereby monitoring the mobile terminal as a whole.Processor 1211 may include one or more processing units; preferably, theprocessor 1211 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It is to be understood that the modem processor may not be integrated into theprocessor 1211.
Themobile terminal 120 may also include a power supply 1212 (e.g., a battery) for powering the various components, and thepower supply 1212 may be logically connected to theprocessor 1211 via a power management system that may be configured to manage charging, discharging, and power consumption.
In addition, themobile terminal 120 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, including aprocessor 1211, amemory 1290, and a computer program stored in thememory 1290 and operable on theprocessor 1211, where the computer program, when executed by theprocessor 1211, implements each process of the embodiment of the method for closing an application program applied to the mobile terminal side, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here.
The 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 computer program implements each process of the embodiment of the method for closing an application program applied to a mobile terminal, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the preferred embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims.