CN108874288B - Application program switching method, device, terminal and storage medium - Google Patents

Application program switching method, device, terminal and storage medium Download PDF

Info

Publication number
CN108874288B
CN108874288B CN201810569559.4A CN201810569559A CN108874288B CN 108874288 B CN108874288 B CN 108874288B CN 201810569559 A CN201810569559 A CN 201810569559A CN 108874288 B CN108874288 B CN 108874288B
Authority
CN
China
Prior art keywords
application
curved surface
user interface
sliding
surface display
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
CN201810569559.4A
Other languages
Chinese (zh)
Other versions
CN108874288A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810569559.4A priority Critical patent/CN108874288B/en
Publication of CN108874288A publication Critical patent/CN108874288A/en
Application granted granted Critical
Publication of CN108874288B publication Critical patent/CN108874288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an application program switching method, an application program switching device, a terminal and a storage medium, and belongs to the field of human-computer interaction. The method is used for a terminal provided with an edge touch area, and comprises the following steps: displaying a first user interface, wherein the first user interface is a main screen interface or a user interface of a first application program; receiving a sliding signal in an edge touch area; performing gesture recognition according to the sliding signal to obtain a gesture recognition result; and if the gesture recognition result is an application switching gesture, switching the first user interface to a second user interface, wherein the second user interface is a user interface of a second application program, and the second application program is an application program running in the background. Compared with the method that the user triggers the terminal to display the multitask list and manually select the application program, the operation of switching the application program by using the designated gesture is simpler by means of the touch function of the edge touch area, and the application switching efficiency is improved.

Description

Application program switching method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the field of human-computer interaction, in particular to an application program switching method, an application program switching device, a terminal and a storage medium.
Background
With the continuous improvement of the hardware configuration of the mobile terminal, the mobile terminal can simultaneously run a plurality of application programs (one is run in the foreground, and the other is run in the background), and the user can switch the application program running in the foreground through the multi-task switching function.
When the multitask switching mode is adopted, a user triggers the terminal to display the multitask list by clicking a virtual key or a physical key, and selects an application program running in the foreground from the multitask list, so that switching of the application program in the foreground is completed.
Disclosure of Invention
The embodiment of the application program switching method and device, the terminal and the storage medium can solve the problem that when multitask switching is carried out in the related technology, the terminal needs to be triggered to display a multitask list, foreground running application programs are selected from the multitask list, and the switching process is complex. The technical scheme is as follows:
in one aspect, an application switching method is provided, where the method is used for a terminal provided with an edge touch area, and the method includes:
displaying a first user interface, wherein the first user interface is a main screen interface or a user interface of a first application program;
receiving a sliding signal in the edge touch area;
performing gesture recognition according to the sliding signal to obtain a gesture recognition result;
and if the gesture recognition result is an application switching gesture, switching the first user interface to a second user interface, wherein the second user interface is a user interface of a second application program, and the second application program is an application program running in a background.
In another aspect, an application switching apparatus is provided, where the apparatus is provided with an edge touch area, and the apparatus includes:
the display module is used for displaying a first user interface, and the first user interface is a main screen interface or a user interface of a first application program;
the receiving module is used for receiving the sliding signal in the edge touch control area;
the recognition module is used for carrying out gesture recognition according to the sliding signal to obtain a gesture recognition result;
and the switching module is used for switching the first user interface into a second user interface when the gesture recognition result is an application switching gesture, wherein the second user interface is a user interface of a second application program, and the second application program is an application program running in a background.
In another aspect, a terminal is provided that includes a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the application switching method as described in the above aspect.
In another aspect, a computer-readable storage medium is provided, the storage medium storing at least one instruction for execution by a processor to implement the application switching method of the above aspect.
In the application switching method provided by the embodiment of the application, the terminal receives the sliding signal in the edge touch area of the terminal, and switches the currently displayed first user interface to the second user interface running the application at the background when the gesture recognition result indicated by the sliding signal is the application switching gesture, so that the user can complete application switching only by executing the preset sliding gesture at the edge touch area.
Drawings
Fig. 1 is a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal according to another exemplary embodiment of the present application;
fig. 3 to 8 are schematic diagrams of five terminals with different display screens according to the embodiments shown in fig. 1 and 2;
FIG. 9 illustrates a flow chart of an application switching method, shown in an exemplary embodiment of the present application;
FIGS. 10 and 11 are schematic diagrams of an implementation of an application switching method;
FIG. 12 is a flowchart illustrating an application switching method provided by another exemplary embodiment of the present application;
FIG. 13 is a schematic view of a preset sliding direction;
FIG. 14 is a diagrammatic illustration of an interface for prompting at a first user interface;
FIG. 15 is a schematic view of a first curved display sub-region and a second curved display sub-region;
FIG. 16 is a flowchart illustrating an application switching method provided by another exemplary embodiment of the present application;
FIG. 17 is a schematic diagram of a sliding signal mask reissue mechanism;
fig. 18 is a block diagram illustrating an application switching apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Referring to fig. 1 and 2, a block diagram of a terminal 100 according to an exemplary embodiment of the present application is shown. The terminal 100 may be a mobile phone, a tablet computer, a notebook computer, an e-book, etc. The terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and a touch display screen 130.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed by the touch display screen 130; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a single chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 120 includes a non-transitory computer-readable medium. The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the terminal 100, and the like.
Taking an operating system as an Android (Android) system as an example, programs and data stored in the memory 120 are shown in fig. 1, and a Linux kernel layer 220, a system runtime layer 240, an application framework layer 260, and an application layer 280 are stored in the memory 120. The Linux kernel layer 220 provides underlying drivers for various hardware of the terminal 100, such as a display driver, an audio driver, a camera driver, a bluetooth driver, a Wi-Fi driver, power management, and the like. The system runtime library layer 240 provides the main feature support for the Android system through some C/C + + libraries. For example, the SQLite library provides support for a database, the OpenGL/ES library provides support for 6 drawings, the Webkit library provides support for a browser kernel, and the like. Also provided in the system Runtime layer 240 is an Android Runtime library 242(Android Runtime), which mainly provides some core libraries and can allow developers to write Android applications using the Java language. The application framework layer 260 provides various APIs that may be used in building applications, and developers may build their own applications by using these APIs, such as activity management, window management, view management, notification management, content provider, package management, session management, resource management, and location management. At least one application program runs in the application layer 280, and the application programs may be a contact program, a short message program, a clock program, a camera application, etc. of the operating system; or an application program developed by a third-party developer, such as an instant messaging program, a photo beautification program, and the like.
Taking an operating system as an IOS system as an example, programs and data stored in the memory 120 are shown in fig. 2, and the IOS system includes: a Core operating system Layer 320(Core OS Layer), a Core Services Layer 340(Core Services Layer), a Media Layer 360(Media Layer), and a touchable Layer 380(Cocoa Touch Layer). The kernel operating system layer 320 includes an operating system kernel, drivers, and underlying program frameworks that provide functionality closer to hardware for use by program frameworks located in the kernel services layer 340. The core services layer 340 provides system services and/or program frameworks, such as a Foundation framework, an account framework, an advertisement framework, a data storage framework, a network connection framework, a geographic location framework, a motion framework, and so forth, that are needed by the application. The media layer 360 provides audiovisual interfaces for applications, such as graphics-related interfaces, audio-related interfaces, video-related interfaces, and audio/video transmission technology wireless broadcast (AirPlay) interfaces. The touchable layer 380 provides various common interface-related frameworks for application development, and the touchable layer 380 is responsible for user touch interaction operations on the terminal 100. Such as a local notification service, a remote push service, an advertising framework, a game tool framework, a messaging User Interface (UI) framework, a User Interface UIKit framework, a map framework, and so forth.
In the framework shown in FIG. 2, the framework associated with most applications includes, but is not limited to: a base framework in the core services layer 340 and a UIKit framework in the touchable layer 380. The base framework provides many basic object classes and data types, provides the most basic system services for all applications, and is UI independent. While the class provided by the UIKit framework is a basic library of UI classes for creating touch-based user interfaces, iOS applications can provide UIs based on the UIKit framework, so it provides an infrastructure for applications for building user interfaces, drawing, processing and user interaction events, responding to gestures, and the like.
The touch display screen 130 is used for receiving a touch operation of a user on or near the touch display screen using any suitable object such as a finger, a touch pen, or the like, and displaying a user interface of each application program. The touch display 130 is generally disposed on a front panel of the terminal 130. The touch display screen 130 may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen 130 can also be designed as a combination of a full-screen and a curved screen, and a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment. Wherein:
full screen
A full screen may refer to a screen design where the touch display screen 130 occupies a screen fraction of the front panel of the terminal 100 that exceeds a threshold (e.g., 80% or 90% or 95%). One way of calculating the screen occupation ratio is as follows: (area of touch display 130/area of front panel of terminal 100) × 100%; another way to calculate the screen ratio is: (area of actual display area in touch display 130/area of front panel of terminal 100) × 100%; another calculation method of the screen occupation ratio is as follows: (diagonal of touch display screen 130/diagonal of front panel at terminal 100) × 100%. In the example shown schematically in fig. 3, nearly all areas on the front panel of the terminal 100 are the touch display 130, and all areas on the front panel 40 of the terminal 100 except for the edge created by the bezel 41 are the touch display 130. The four corners of the touch display screen 130 may be right angles or rounded.
A full-screen may also be a screen design that integrates at least one front panel component within or underneath the touch screen display 130. Optionally, the at least one front panel component comprises: cameras, fingerprint sensors, proximity light sensors, distance sensors, etc. In some embodiments, other components on the front panel of the conventional terminal are integrated in all or a part of the area of the touch display screen 130, such as after splitting the light sensing element in the camera into a plurality of light sensing pixels, each light sensing pixel is integrated in a black area in each display pixel in the touch display screen 130. The full-screen has a higher screen-to-screen ratio due to the integration of at least one front panel component inside the touch display screen 130.
Of course, in other embodiments, the front panel component of the front panel of the conventional terminal may be disposed at the side or back of the terminal 100, such as disposing the ultrasonic fingerprint sensor below the touch screen 130, disposing the bone conduction receiver inside the terminal 130, and disposing the camera head in a pluggable structure at the side of the terminal.
In some optional embodiments, when the terminal 100 employs a full-screen, a single side, or two sides (e.g., two left and right sides), or four sides (e.g., four upper, lower, left and right sides) of the middle frame of the terminal 100 is provided with an edge touch sensor, and the edge touch sensor is configured to detect at least one of a touch operation, a click operation, a press operation, a slide operation, and the like of a user on the middle frame. The edge touch sensor may be any one of a touch sensor, a thermal sensor, a pressure sensor, and the like. The user may apply operations on the edge touch sensor to control the application in the terminal 100.
Curved surface screen
The curved screen refers to a screen design in which the cross section of the touch display screen 130 has a curved shape, and a projection in a direction parallel to the cross section is a plane, and the curved shape may be a U shape. Alternatively, a curved screen refers to a screen design where at least one side is curved. Alternatively, the curved screen means that at least one side edge of the touch display screen 130 extends to cover the middle frame of the terminal 100. Since the side of the touch display screen 130 extends to cover the middle frame of the terminal 100, that is, the middle frame which does not have the display function and the touch function originally is covered as the displayable area and/or the operable area, the curved screen has a higher screen occupation ratio. Alternatively, as in the example shown in fig. 4, the curved screen refers to a screen design in which the left and right sides 42 are curved; or, the curved screen refers to a screen design in which the upper and lower sides are curved; or, the curved screen refers to a screen design in which the upper side, the lower side, the left side and the right side are all in a curved shape. In an alternative embodiment, the curved screen is made of a touch screen material with certain flexibility.
Special-shaped screen
The special-shaped screen is a touch display screen with an irregular shape, and the irregular shape is not a rectangle or a rounded rectangle. Optionally, the irregular screen refers to a screen design in which a protrusion, a notch and/or a hole is/are formed on the rectangular or rounded rectangular touch display screen 130. Alternatively, the protrusions, indentations, and/or cutouts may be located at the edges of the touch screen display 130, at the center of the screen, or both. When the protrusion, the notch and/or the dug hole are arranged on one edge, the protrusion, the notch and/or the dug hole can be arranged in the middle or at two ends of the edge; when the projection, notch and/or cutout is provided in the center of the screen, it may be provided in one or more of an upper region, an upper left region, a left side region, a lower left region, a lower right region, a right side region, and an upper right region of the screen. When the projections, the notches and the dug holes are arranged in a plurality of areas, the projections, the notches and the dug holes can be distributed in a concentrated mode or in a dispersed mode; the distribution may be symmetrical or asymmetrical. Optionally, the number of projections, indentations and/or cutouts is also not limited.
The special-shaped screen covers the upper forehead area and/or the lower forehead area of the touch display screen as the displayable area and/or the operable area, so that the touch display screen occupies more space on the front panel of the terminal, and the special-shaped screen also has a larger screen occupation ratio. In some embodiments, the indentation and/or cutout is configured to receive at least one front panel component therein, the front panel component including at least one of a camera, a fingerprint sensor, a proximity light sensor, a distance sensor, an earpiece, an ambient light level sensor, and a physical key.
For example, the notch may be provided on one or more edges, and the notch may be a semicircular notch, a right-angled rectangular notch, a rounded rectangular notch, or an irregularly shaped notch. In the example shown in fig. 5, the special-shaped screen may be a screen design in which a semicircular notch 43 is formed at the center of the upper edge of the touch display screen 130, and the semicircular notch 43 is used to accommodate at least one front panel component of a camera, a distance sensor (also called a proximity sensor), an earpiece, and an ambient light sensor; as schematically shown in fig. 6, the irregular screen may be a screen design in which a semicircular notch 44 is formed at a central position of a lower edge of the touch display screen 130, and the semicircular notch 44 is free for accommodating at least one of a physical key, a fingerprint sensor, and a microphone; in an exemplary embodiment as shown in fig. 7, the special-shaped screen may be a screen design in which a semi-elliptical notch 45 is formed in the center of the lower edge of the touch display screen 130, and a semi-elliptical notch is also formed on the front panel of the terminal 100, and the two semi-elliptical notches form an elliptical area for accommodating a physical key or a fingerprint recognition module; in the illustrative example shown in fig. 8, the contoured screen may be a screen design having at least one aperture 45 in the upper half of the touch screen display 130, the aperture 45 being free to receive at least one of a camera, a distance sensor, an earpiece, and an ambient light level sensor.
In addition, those skilled in the art will appreciate that the configuration of terminal 100 as illustrated in the above-described figures is not intended to be limiting of terminal 100, and that terminals may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components. For example, the terminal 100 further includes a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
The embodiment of the present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the application switching method according to the following embodiments.
The embodiment of the present application further provides a computer program product, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the application switching method according to the following embodiments.
Referring to fig. 9, a flowchart of an application switching method according to an exemplary embodiment of the present application is shown. The present embodiment is illustrated by applying the method to the terminal shown in fig. 1 or 2. The method comprises the following steps:
step 901, a first user interface is displayed, where the first user interface is a home screen interface or a user interface of a first application.
And the first user interface is an interface displayed in the terminal display screen in a bright screen and unlocked state.
And when the application program running in the foreground does not exist, the first user interface is a main screen interface, and the main screen interface comprises at least one application icon. When receiving the click operation of the application icon in the main screen interface, the terminal starts the corresponding application program or switches the corresponding application program from the background running state to the foreground running state.
Schematically, as shown in fig. 10, a home screen interface 102 is displayed in a curved screen 101 of the terminal.
When there is an application running in the foreground, the first user interface is a user interface of the foreground application (i.e., a first application), and the first application may be an instant messaging application, a video playing application, a game application, a browser application, a social application, or the like, which is not limited in this application.
Illustratively, as shown in fig. 11, a curved screen 101 of the terminal has a browser application interface 103 displayed therein.
Optionally, the first user interface may be displayed only in the flat display area of the curved screen, or may be displayed in both the flat display area and the curved display area.
Step 902, a sliding signal in an edge touch area is received.
In one possible embodiment, the edge touch area is located on a side frame of the terminal, and the touch function is implemented by a sensor, which may be a pressure sensor, a capacitance sensor, a temperature sensor, or the like.
In another possible implementation, the terminal has a curved screen, and the curved screen includes a flat display area and at least one curved display area (with a touch function), where the at least one curved display area is located at an edge of the curved screen, and each curved display area corresponds to one edge of the terminal, and the edge touch area is the at least one curved display area.
Schematically, as shown in fig. 10 or 11, the curved screen 101 includes two curved display areas 1011 and one flat display area 1012, and the two curved display areas 1011 are oppositely disposed on two sides of the flat display area 1012. In other possible implementations, one, three, or four curved surface display areas may be included in the curved surface screen, and the number and the positions of the curved surface display areas are not limited in this embodiment.
Taking the terminal with the curved screen as an example, in a bright screen state, the sliding signal in the curved display area is received, where the sliding signal may be a signal triggered when the user slides on the curved display area with a finger.
And 903, performing gesture recognition according to the sliding signal to obtain a gesture recognition result.
Further, the terminal performs gesture recognition according to the sliding signal, and determines whether the gesture triggering the sliding signal is an application switching gesture. Optionally, the application switching gesture indicates that the application switching gesture continuously slides for a preset number of times in a preset sliding direction in the edge touch area, where the preset sliding direction may be along a long edge of the terminal and point to the bottom of the terminal from the top of the terminal, or may be along the long edge of the terminal and point to the top of the terminal from the bottom of the terminal, and the preset number of times may be 2 times or 3 times.
If the gesture recognition result is an application switching gesture, the terminal performs step 904; and if the gesture recognition result is not the application switching gesture, the terminal does not switch the application program.
Step 904, if the gesture recognition result is an application switching gesture, switching the first user interface to a second user interface, where the second user interface is a user interface of a second application program, and the second application program is an application program running in a background.
Optionally, when the first user interface is a home screen interface, the second application is an application that has recently run in the foreground. Illustratively, as shown in fig. 10, a main screen interface 102 is displayed in a curved screen 101 of the terminal, and when the user slides continuously downward 2 times within a curved display area 1012 using a finger and an application that has recently been run in the foreground is an instant messaging application, the terminal displays an instant messaging application interface 104 in the curved screen 101.
Optionally, when the first user interface is a user interface of the first application, the second application is an application that was previously running in the foreground of the first application. Illustratively, as shown in fig. 11, a browser application interface 103 is displayed in the curved screen 101 of the terminal, and when the user uses a finger to continuously slide down for 2 times in the curved display area 1012 and the application program previously running in the foreground of the browser application program is an instant messaging application program, the terminal displays an instant messaging application interface 104 in the curved screen 101.
Optionally, in order to avoid privacy disclosure of the user, when the terminal processes a bright screen and a screen locking state, the terminal displays a screen locking picture, and even if the gesture recognition result is an application switching gesture, the terminal does not perform application switching.
In an application scene, when a user unlocks the terminal and wants to continue processing the transaction before locking the screen, the terminal can switch and display the application program which is recently operated in the foreground only by continuously sliding downwards twice in the edge touch area so that the user can continue processing the transaction; in another application scenario, the user jumps out of the game application program in the game process, searches for the game strategy by using the browser application program, and when the user needs to return to the game, the terminal can switch and display the game picture only by continuously sliding downwards twice in the edge touch area, so that the user can continue the game.
To sum up, in the application switching method provided in the embodiment of the present application, the terminal receives the sliding signal in the edge touch area of the terminal, and switches the currently displayed first user interface to the second user interface running the application in the background when the gesture recognition result indicated by the sliding signal is the application switching gesture, so that the user can complete the application switching only by executing the predetermined sliding gesture at the edge touch area.
In a possible application scenario, the curved screen of the terminal includes two curved display areas, and when the two curved display areas are located on two sides of the planar display area, the user switches the application program running in the foreground by executing a predetermined application switching gesture on the curved display areas. However, when the user adjusts the holding posture or performs an operation with one hand in the flat display area, the finger knuckle or the palm portion may slide on the curved display area. In order to avoid that the sliding is mistakenly recognized as the application switching gesture, so that the accuracy of application switching is improved, the terminal performs subsequent gesture recognition only when receiving the sliding signal in the single-side curved surface display area. The following description will be made by using exemplary embodiments.
Referring to fig. 12, a flowchart of an application switching method according to another exemplary embodiment of the present application is shown. The present embodiment is exemplified by the method applied to a terminal having a curved screen. The method comprises the following steps:
step 1201, displaying a first user interface, the first user interface being a home screen interface or a user interface of a first application.
In this embodiment, the terminal displays the first user interface in the curved screen in the bright screen and unlocked state.
Step 1202, receiving a sliding signal in a curved surface display area.
In this embodiment, the terminal receives the trigger signal in the planar display area while receiving the slide signal in the curved display area.
Step 1203, in the vertical screen state, determining a target curved surface display area in the two curved surface display areas according to the current holding state.
In the vertical screen state, when a user holds the terminal with one hand, the difficulty of operating the terminal with the holding hand in the curved surface display area on one side of the holding hand is low, so that the terminal can be selected, and the curved surface display area on one side of the holding hand is preset as a trigger area for applying the switching gesture.
Correspondingly, in the vertical screen state, after the terminal receives the sliding signal in the curved surface display area, the target curved surface display area (the trigger area for applying the switching gesture) is determined according to the current holding state of the terminal, and then gesture recognition is performed according to the sliding signal in the target curved surface display area, so that the difficulty of gesture recognition is reduced, and the accuracy of gesture recognition is improved.
When the holding state is a left-hand holding state, the target curved surface display area is a curved surface display area on the left side of the plane display area; when the holding state is the right-hand holding state, the target curved surface display area is a curved surface display area on the right side of the plane display area.
The curved surface display area on the left side of the plane display area is the curved surface display area on one side of the left-hand thumb touch area in the left-hand holding state, and the curved surface display area on the right side of the plane display area is the curved surface display area on one side of the right-hand thumb touch area in the right-hand holding state.
Optionally, in the landscape screen state, the difficulty of the user operating the display area with the curved surface on any side is low, so that the target display area with the curved surface in the landscape screen state may be the display area with the curved surface on any side, or the target display area with the curved surface is the default or curved display area set by the user.
It should be noted that this step is an optional step, and if a target curved surface display area for triggering application switching is preset, after receiving the sliding signal, the terminal does not need to determine the target curved surface area, and directly executes step 1204.
In step 1204, if the target curved surface display area includes a sliding signal, and the other curved surface display areas do not include a sliding signal, and the flat surface display area does not include a touch signal, the sliding times and the sliding direction indicated by the sliding signal are obtained.
In one possible implementation mode, the terminal determines whether the sliding signal is located in the target curved surface display area according to the coordinates of the sliding path indicated by the sliding signal and the area coordinates of the target curved surface display area; and when the sliding signal is detected to be positioned in the target curved surface display area, whether the sliding signal is contained in the other curved surface display area or not and whether the trigger signal is contained in the plane display area or not are further detected.
Optionally, in a one-handed holding state, in order to keep the holding stable, the holding hand may contact another curved surface display region (non-target curved surface display region) (for example, four fingers of the holding hand contact the non-target curved surface display region), and a signal triggered by such contact is not a sliding signal (usually, a long-press signal or a press signal). The trigger signal in the flat display area may be a slide signal, a click signal, a long press signal, a press signal, or the like.
Schematically, as shown in fig. 10 or 11, in the state of being held by the right hand, the terminal detects whether the slide signal is located in the right curved display area 1012, and if the slide signal is located in the right curved display area 1012, further detects whether the slide signal is contained in the left curved display area 1012 and the trigger signal is contained in the flat display area 1011, and if not, performs gesture recognition; if yes, no gesture recognition is performed.
And after the sliding signal is received only in the single-side curved surface display area, the terminal further obtains the sliding times and the sliding direction indicated by the sliding signal. Wherein, in a single sliding, the series of events received by the terminal include: a down event (triggered when the curved display area is clicked), a move event (triggered when the curved display area is slid) and an up event (triggered when the curved display area is left); the sliding times are the times of single sliding within a preset time length (for example, 0.5s), and the sliding direction is the direction indicated by the sliding path.
And 1205, if the sliding times are preset times and the sliding direction is a preset sliding direction, determining that the gesture recognition result is an application switching gesture.
In this embodiment, the application switching gesture preset in the terminal is as follows: and continuously sliding for a preset number of times along a preset sliding direction in the curved surface display area. Correspondingly, the terminal detects whether the sliding times are preset times and whether the sliding direction is a preset sliding direction.
Optionally, in the vertical screen state, an included angle between the preset sliding direction and the long side direction of the terminal is smaller than a first threshold; in the horizontal screen state, an included angle between the preset sliding direction and the long side direction of the terminal is smaller than a second threshold, and the first threshold and the second threshold may be the same or different. For example, the first threshold value and the second threshold value are both 30 °.
Schematically, as shown in fig. 13, in a normal vertical state (interface is vertical and displayed in a forward direction), the terminal sequentially comprises a first wide side 1311, a first long side 1312, a second wide side 1313 and a second long side 1314, wherein the first wide side 1311 is opposite to the second wide side 1313, and the first long side 1312 is opposite to the second long side 1314. The terminal long side direction in this embodiment is the direction in which the first long side 1312 and the second long side 1314 are located, and the terminal long side direction may be the direction in which the first broad side 1311 points to the second broad side 1313, or the direction in which the second broad side 1313 points to the first broad side 1311.
In a possible implementation manner, in a normal vertical screen state, when the preset sliding direction is along the long side of the terminal and the top of the terminal points to the bottom of the terminal, if the sliding signal indicates that the sliding direction points from the first broad side to the second broad side and the sliding frequency is the preset frequency, the terminal determines that the gesture recognition result is the application switching gesture.
In another possible implementation manner, in a normal vertical screen state, when the preset sliding direction is along the long side of the terminal and the bottom of the terminal points to the top of the terminal, if the sliding direction indicated by the sliding signal points to the first wide side from the second wide side and the sliding frequency is the preset frequency, the terminal determines that the gesture recognition result is the application switching gesture.
In another possible implementation manner, in the inverted vertical screen state, when the preset sliding direction is along the long side of the terminal and the top of the terminal points to the bottom of the terminal, if the sliding direction indicated by the sliding signal points to the first wide side from the second wide side and the sliding frequency is the preset frequency, the terminal determines that the gesture recognition result is the application switching gesture.
In another possible implementation manner, in the inverted vertical screen state, when the preset sliding direction is along the long side of the terminal and the bottom of the terminal points to the top of the terminal, if the sliding direction indicated by the sliding signal points to the second wide side from the first wide side and the sliding frequency is the preset frequency, the terminal determines that the gesture recognition result is the application switching gesture.
In another possible implementation manner, in the landscape state, when the preset sliding direction is along the long side of the terminal and points to the bottom of the terminal from the top of the terminal, if the sliding direction indicated by the sliding signal points to the second wide side from the first wide side and the sliding frequency is the preset frequency, the terminal determines that the gesture recognition result is the application switching gesture.
In another possible implementation manner, in the landscape state, when the preset sliding direction is along the long side of the terminal and points to the top of the terminal from the bottom of the terminal, if the sliding direction indicated by the sliding signal points to the first broadside from the second broadside and the sliding frequency is the preset frequency, the terminal determines that the gesture recognition result is the application switching gesture.
Illustratively, as shown in fig. 13, when the number of sliding is 2, and an included angle between the sliding direction 1320 and the terminal long side direction (the direction in which the first broad side 1311 points to the second broad side 1313) is less than or equal to 30 °, the terminal determines that the gesture recognition result is the application switching gesture.
Optionally, if the sliding frequency within the predetermined time does not reach the preset frequency, or exceeds the preset frequency, and/or an included angle between the sliding direction and the preset sliding direction is greater than a threshold (a first threshold in the case of vertical screen, a second threshold in the case of horizontal screen), the terminal determines that the gesture recognition result is not the application switching gesture.
In step 1206, if the gesture recognition result is an application switching gesture, a target background application program is obtained, where the target background application program is the background application program that is closest to the current moment in the foreground exiting moment.
In one possible implementation, when the application switching gesture is used to switch the most recently used application from the background to the foreground, the terminal obtains the target background application (i.e., the most recently used application) which exits from the foreground at the time closest to the current time, wherein the target background application is recorded in the background by the terminal.
In another possible implementation, the terminal updates and maintains a multitask list, and the terminal determines a target background application program based on the multitask list. This step may include the following steps.
If the gesture recognition result is an application switching gesture, a multitask list is obtained, wherein the multitask list comprises n application programs, and n is larger than or equal to 2.
When the application is switched according to the application switching gesture, the terminal firstly obtains a multitask list, the multitask list comprises application programs which are currently running in a foreground and/or running in a background, the application programs in the multitask list are sorted according to the sequence of the time of exiting from the foreground, the time of exiting from the foreground is the time of exiting from the foreground to the background, the exit time of the i-1 th application program is prior to the time of exiting from the foreground of the i-th application program, and i is more than or equal to 2 and less than or equal to n.
For example, if the user sequentially opens the video application a, the instant messaging application B, and the browser application C (none exit after opening), the obtained multitask list is: [ video application A, instant messaging application B, browser application C ].
And secondly, when the first user interface is a main screen interface, determining the nth application program in the multitasking list as a target background application program.
When the terminal displays the home screen interface, the terminal determines the most recently used application, i.e., the nth application (the latest exit foreground moment) in the multitasking list as the target background application.
With reference to the example in the above step, if the home screen interface is currently displayed, the terminal determines the browser application C (i.e., the third application) as the target background application according to the multitask list.
Optionally, when the multitasking list is empty, that is, when neither the foreground nor the background runs the application program, the terminal determines that the target background application program is empty.
And thirdly, when the first user interface is the user interface of the first application program and the first application program is the nth application program in the multitasking list, determining the nth-1 application program in the multitasking list as the target background application program.
If the user interface of the first application program is displayed currently, the terminal determines the application program which runs in the foreground before the first application program as the second application program according to the position of the first application program in the multitask list.
In a possible implementation manner, the terminal switches the application program running in the background to the application program running in the foreground according to the application switching gesture, and meanwhile, updates the arrangement sequence of the application programs in the multitask list. Accordingly, the user can switch back and forth between the two most recently used application programs by applying the switching gesture.
For example, in combination with the example in the above step, the browser application C (i.e., the first application) is currently running in the foreground, and when the application switching gesture is detected, the terminal determines the instant messaging application B as the second application according to the multitasking list, and updates the multitasking list as follows: [ video application A, browser application C, instant Messaging application B ]. And when the application switching gesture is detected again subsequently, the terminal switches the instant messaging application B into the browser application C, so that the reciprocating switching between the two application programs is realized.
In another possible implementation manner, the terminal locks the multitask list while switching the application program running in the background to run in the foreground according to the application switching gesture, and does not update the multitask list. When the application switching gesture is detected again, the terminal switches and displays the previous application program in the list according to the locked multitask list, namely when the ith application program in the multitask list is the first application program, the terminal determines the target background application program for the ith-1 application program in the multitask list, and i is more than or equal to 2 and less than or equal to n.
For example, in combination with the example in the above step, the browser application C (i.e., the first application) is currently running in the foreground, and when the application switching gesture is detected, the terminal determines the instant messaging application B as the second application according to the multitasking list, and locks the multitasking list. And when the application switching gesture is detected again subsequently, the terminal determines the video application A as a second application program according to the multitask list, so that the video application A can traverse each application program in the multitask list.
It should be noted that, when traversing the multitask list by using the application switching gesture, the user may further instruct the terminal to switch and display the subsequent application program in the multitask list by reversely applying the switching gesture (the sliding times corresponding to the application switching gesture are the same, and the sliding direction is opposite), which is not limited in this embodiment.
Optionally, after the multitasking list is obtained, when the first user interface is a user interface of the first application program and the first application program is the 1 st application program in the multitasking list, or when the first user interface is a main screen interface and the multitasking list is empty, the terminal displays prompt information (for example, using toast to prompt) on the first user interface, where the prompt information is used to prompt that no other application program running in the foreground exists before the first application program.
Illustratively, as shown in fig. 14, a curved screen 101 of the terminal displays a browser application interface 103, and the terminal displays a Toast prompt 105 because the first application program in the multitasking list is applied by the browser.
In step 1207, the target background application is determined to be the second application.
Further, the terminal determines the obtained target background application program as a second application program to be switched.
Step 1208, switching the first user interface to a second user interface of a second application.
Further, the first user interface of the terminal is switched to a second user interface of a second application program, so that application program switching is realized.
In the embodiment, based on the structural characteristics of the curved screen, when the terminal detects that the sliding signal exists in the curved display area on one side of the holding hand, gesture recognition is performed according to the sliding signal, so that the recognition accuracy of the application switching gesture is improved; meanwhile, in the vertical screen state, the terminal dynamically determines a curved surface display area for triggering application switching according to the holding state, so that a user can conveniently and quickly use a holding hand to switch applications.
In addition to triggering display of the most recently used application through the application switching gesture, the terminal may also display other applications associated with the current application according to the application switching gesture. As shown in fig. 12, the step 1205 may further include the following steps.
Step 1209, a multitask list is obtained, wherein the multitask list comprises n application programs, and n is larger than or equal to 2.
The manner of obtaining the multitask list may refer to the step 1206, and this embodiment is not described herein again.
At step 1210, when the first user interface is a user interface of a first application, an application associated with the first application in the multitasking list is determined as a second application.
Since there is usually a relationship between the applications switched and used by the user, when the terminal switches the applications according to the application switching gesture, the application associated with the current application may be determined as the second application, and the second application is located in the multitasking list.
In a possible implementation manner, the terminal collects switching rules among the applications in the terminal, determines the two applications with the highest switching frequency as the applications which are associated with each other, detects whether the application associated with the current application is included in the multitask list when the application switching gesture is recognized, and determines the application as the second application when the application is included.
In another possible implementation, the terminal inputs an application program before switching as a sample, outputs a switched application program as a sample, trains an application switching model through a machine learning algorithm, inputs a current application program into the application switching model when an application switching gesture is recognized, and determines the application program output by the application switching model as a second application program when the application program is included in the multitask list.
In other possible implementations, the terminal may further determine the second application according to an application association relationship set by the user, and the embodiment of the present application does not limit the specific way of determining the associated application.
In this embodiment, the terminal switches and displays the application program that runs in the latest foreground or the application program associated with the current application program based on the multitasking list, thereby further improving the efficiency of switching the application program for the user.
During the process of using the curved-surface screen terminal, the user may operate the application program through the curved-surface display area, for example, slide on the curved-surface display area with a finger, thereby implementing the screen scrolling function. To avoid misidentifying the application switching gesture as an operation gesture within the current application (or misidentifying the operation gesture within the current application as an application switching gesture), in one possible embodiment, as shown in fig. 15, each curved display region 1511 of the curved screen includes a first curved display sub-region 1511a and a second curved display sub-region 1511b, and the second curved display sub-region 1511b is adjacent to the flat display region 1512.
The first curved surface display sub-region 1511a is a landing region and an event interception region for switching a gesture down event, when the down event corresponding to the sliding signal is located in the region, the terminal performs gesture recognition according to the sliding signal, and the application program does not respond to the signal in the region (that is, the event in the region intercepts the application); the second curved surface display sub-region 1511b is a gesture recognition region and an event reissue region, and when the move time corresponding to the slide signal reaches the region, the terminal outputs a gesture recognition result and performs event reissue when the gesture recognition result is not an application switching gesture.
Since the user typically controls the application in the curved display area close to the flat display area, in order to distinguish the application control gesture from the application switching gesture, in one possible implementation, the slide signal triggering the application switching indicates to slide from the first curved display sub-area to the second curved display sub-area, which is described below with an illustrative example.
Referring to fig. 16, a flowchart of an application switching method according to another exemplary embodiment of the present application is shown.
Step 1601, displaying a first user interface, where the first user interface is a home screen interface or a user interface of a first application.
Step 1602, a sliding signal in the curved surface display area is received.
The implementation of steps 1601 to 1602 is similar to that of steps 1201 to 1202, and this embodiment is not described herein again.
After receiving the sliding signal, the terminal detects whether a sliding starting point (i.e., a down event) indicated by the sliding signal is located in a first curved display sub-region away from the flat display region, and if so, performs gesture recognition through step 1603; if not, go to step 1604.
In step 1603, if the sliding starting point indicated by the sliding signal is located in the first curved surface display sub-area, gesture recognition is performed according to the sliding signal.
In a possible implementation manner, the terminal stores a coordinate range of the first curved display sub-region, and when the coordinate of the sliding starting point is located in the coordinate range, the terminal determines that the sliding starting point is located in the first curved display sub-region, so as to perform gesture recognition. The gesture recognition process may refer to the above embodiments, and this embodiment is not described herein again.
When the user performs the sliding operation in the curved surface area, the sliding path formed in the sliding process may cover the first curved surface display sub-area and the second curved surface display sub-area, so as to avoid the failure of the application switching gesture caused by the direct response of the application program to the sliding signal in the second curved surface display sub-area, and a signal shielding and sending-back mechanism is introduced in this embodiment.
Schematically, as shown in fig. 15, in the present embodiment, the sliding path indicated by the sliding signal includes a first sliding path 1521 and a second sliding path 1522, where the first sliding path 1521 is located in the first curved display sub-region 1511a, and the second sliding path 1522 is located in the second curved display sub-region 1511 b.
In a possible implementation manner, when the sliding starting point indicated by the sliding signal is located in the first curved surface display sub-region, the terminal starts gesture recognition, and when the sliding path reaches the second curved surface display sub-region, the terminal shields the sliding signal (signal shielding mechanism) in the second curved surface display sub-region for the current application program, and obtains the sliding times and the sliding direction indicated by the sliding signal. If the sliding times are preset times and the sliding direction is a preset sliding direction, determining that the gesture recognition result is an application switching gesture; and if the sliding times are not the preset times or the sliding direction is not the preset sliding direction, determining that the gesture recognition result is not the application switching gesture.
And 1604, responding to the sliding signal in the second curved surface display sub-area if the sliding starting point indicated by the sliding signal is located in the second curved surface display sub-area.
And if the sliding starting point is positioned in the second curved surface display sub-area, the terminal determines that the sliding signal does not trigger application switching, so that gesture recognition is not carried out, and the sliding signal in the second curved surface display sub-area is responded in the first user interface.
Step 1605, if the gesture recognition result is an application switching gesture, switching the first user interface to a second user interface, where the second user interface is a user interface of a second application program, and the second application program is an application program running in the background.
Optionally, when the sliding starting point indicated by the sliding signal is located in the first curved display sub-region, but the sliding paths are located in the first curved display sub-region, the terminal determines that the gesture recognition result is not the application switching gesture, and does not respond to the sliding signal (because the first curved display sub-region is the event intercepting region).
And 1606, if the gesture recognition result is not the application switching gesture, responding to a sliding signal corresponding to the second sliding path in the second curved surface display sub-area.
When the gesture recognition result is not the application switching gesture, in order to enable the current application program to respond to the sliding signal in the second curved surface display sub-area, the terminal performs complement transmission (namely a signal complement mechanism) on the previously shielded sliding signal in the second curved surface display sub-area so that the current application program responds to the sliding signal.
As shown in fig. 17, after receiving a sliding signal 1701 in a curved surface display area, the terminal system first shields the dispatch of a ViewRootImpl event 1702 (i.e., the sliding touch event is not passed to the application), and performs gesture recognition according to the sliding signal; if the gesture recognition result 1703 is an application switching gesture 1704, switching the application program; if the gesture recognition result 1703 is not the application switching gesture 1704, the ViewRootImpl event mask is released, and a sliding touch event is reissued to the current application program according to the sliding signal 1701, so that the current application program responds to the sliding touch event.
In this embodiment, the terminal defines the sliding signal for triggering application switching to slide from the first curved-surface display sub-region to the second curved-surface display sub-region, so as to distinguish a control gesture in the application from an application switching gesture, thereby further improving the accuracy of application switching.
Referring to fig. 18, a block diagram of an application switching device according to an embodiment of the present application is shown. The application switching device can be implemented by software, hardware or a combination of the two as all or part of the terminal (with the edge touch area). The device includes:
a display module 1810, configured to display a first user interface, where the first user interface is a home screen interface or a user interface of a first application;
a receiving module 1820, configured to receive a sliding signal in the edge touch area;
the recognition module 1830 is configured to perform gesture recognition according to the sliding signal to obtain a gesture recognition result;
a switching module 1840, configured to switch the first user interface to a second user interface when the gesture recognition result is an application switching gesture, where the second user interface is a user interface of a second application program, and the second application program is an application program running in a background.
Optionally, the identifying module 1830 is configured to:
acquiring the sliding times and the sliding direction indicated by the sliding signal;
and if the sliding times are preset times and the sliding direction is a preset sliding direction, determining that the gesture recognition result is the application switching gesture.
Optionally, the terminal has a curved screen, the curved screen includes a flat display area and at least one curved display area, the at least one curved display area is located at an edge of the curved screen, and the edge touch area is the at least one curved display area.
Optionally, the apparatus further comprises:
the determining module is used for determining a target curved surface display area in the at least one curved surface display area according to the current holding state in the vertical screen state, wherein the holding state comprises a left-hand holding state and a right-hand holding state;
the identification module 1830 is further configured to execute the step of performing gesture recognition according to the sliding signal if the target curved surface display area includes the sliding signal, and other curved surface display areas do not include the sliding signal, and the planar display area does not include a touch signal.
Optionally, when the holding state is the left-hand holding state, the target curved surface display area is a curved surface display area on the left side of the planar display area; and when the holding state is the right-hand holding state, the target curved surface display area is a curved surface display area on the right side of the plane display area.
Optionally, each curved surface display area includes a first curved surface display sub-area and a second curved surface display sub-area corresponding to each other, and the second curved surface display sub-area of each curved surface display area is located between the corresponding first curved surface display sub-area and the plane display area;
the device further comprises:
the recognition module 1830 is further configured to execute the step of performing gesture recognition according to the sliding signal if the sliding start point indicated by the sliding signal is located in the first curved surface display sub-region;
and the first response module is used for responding the sliding signal in the second curved surface display sub-area if the sliding starting point indicated by the sliding signal is positioned in the second curved surface display sub-area.
Optionally, the sliding path indicated by the sliding signal includes a first sliding path and a second sliding path, the first sliding path is located in the first curved display sub-area, and the second sliding path is located in the second curved display sub-area;
the device further comprises:
and the second response module is used for responding to the sliding signal corresponding to the second sliding path in the second curved surface display sub-area if the gesture recognition result is not the application switching gesture.
Optionally, the switching module 1840 is configured to:
acquiring a target background application program, wherein the target background application program is a background application program which is the closest to the current moment from the moment of exiting from the foreground;
determining the target background application as the second application;
switching the first user interface to the second user interface of the second application.
Optionally, the obtaining the target background application includes:
acquiring a multitask list, wherein the multitask list comprises n application programs, n is more than or equal to 2, the exit foreground time of the (i-1) th application program is prior to the foreground exit time of the (i) th application program, and i is more than or equal to 2 and less than or equal to n;
determining an nth application in the multitasking list as the target background application when the first user interface is the home screen interface;
alternatively, the first and second electrodes may be,
when the first user interface is a user interface of the first application and the first application is the nth application in the multitasking list, determining the (n-1) th application in the multitasking list as the target background application.
Optionally, the switching module 1840 is further configured to:
acquiring a multitask list, wherein the multitask list comprises n application programs, and n is more than or equal to 2;
when the first user interface is a user interface of the first application, determining an application in the multitasking list associated with the first application as the second application;
switching the first user interface to the second user interface of the second application.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An application switching method is used for a terminal provided with an edge touch area, the terminal is provided with a curved screen, the curved screen comprises a plane display area and at least one curved display area, the at least one curved display area is located at the edge of the curved screen, and the edge touch area is the at least one curved display area, and the method comprises the following steps:
displaying a first user interface, wherein the first user interface is a main screen interface or a user interface of a first application program;
receiving a sliding signal in the edge touch area;
in the vertical screen state, determining a target curved surface display area in the at least one curved surface display area according to the current holding state, wherein the holding state comprises a left-hand holding state and a right-hand holding state;
if the target curved surface display area contains the sliding signal, other curved surface display areas do not contain the sliding signal, and the plane display area does not contain the touch signal, determining a sliding starting point and a sliding path indicated by the sliding signal;
if the sliding starting point is located in a first curved surface display sub-area and the sliding path reaches a second curved surface display sub-area, shielding the sliding signal in the second curved surface display sub-area for the first application program, and performing gesture recognition according to the sliding signal to obtain a gesture recognition result, wherein the first curved surface display sub-area is a sub-area far away from the plane display area in the target curved surface display area, and the second curved surface display sub-area is a sub-area located between the first curved surface display sub-area and the plane display area in the target curved surface display area;
if the gesture recognition result is an application switching gesture, switching the first user interface to a second user interface, wherein the second user interface is a user interface of a second application program, and the second application program is an application program running in a background;
and if the gesture recognition result is not the application switching gesture, responding to the sliding signal corresponding to the sliding path in the second curved surface display sub-area.
2. The method according to claim 1, wherein the performing gesture recognition according to the sliding signal to obtain a gesture recognition result comprises:
acquiring the sliding times and the sliding direction indicated by the sliding signal;
and if the sliding times are preset times and the sliding direction is a preset sliding direction, determining that the gesture recognition result is the application switching gesture.
3. The method of claim 1,
when the holding state is the left-hand holding state, the target curved surface display area is a curved surface display area on the left side of the plane display area; and when the holding state is the right-hand holding state, the target curved surface display area is a curved surface display area on the right side of the plane display area.
4. The method of claim 1,
after receiving the sliding signal in the edge touch area, the method further includes:
and if the sliding starting point indicated by the sliding signal is positioned in the second curved surface display sub-area, responding to the sliding signal in the second curved surface display sub-area.
5. The method of claim 1 or 2, wherein switching the first user interface to the second user interface comprises:
acquiring a target background application program, wherein the target background application program is a background application program which is the closest to the current moment from the moment of exiting from the foreground;
determining the target background application as the second application;
switching the first user interface to the second user interface of the second application.
6. The method of claim 5, wherein obtaining the target background application comprises:
acquiring a multitask list, wherein the multitask list comprises n application programs, n is more than or equal to 2, the exit foreground time of the (i-1) th application program is prior to the foreground exit time of the (i) th application program, and i is more than or equal to 2 and less than or equal to n;
determining an nth application in the multitasking list as the target background application when the first user interface is the home screen interface;
alternatively, the first and second electrodes may be,
when the first user interface is a user interface of the first application and the first application is the nth application in the multitasking list, determining the (n-1) th application in the multitasking list as the target background application.
7. The method of claim 1 or 2, wherein switching the first user interface to the second user interface comprises:
acquiring a multitask list, wherein the multitask list comprises n application programs, and n is more than or equal to 2;
when the first user interface is a user interface of the first application, determining an application in the multitasking list associated with the first application as the second application;
switching the first user interface to the second user interface of the second application.
8. The utility model provides an application auto-change over device, its characterized in that, the device is used for being provided with the terminal of marginal touch-control region, the terminal has the curved surface screen, the curved surface screen includes plane display area and at least one curved surface display area, at least one curved surface display area is located the edge of curved surface screen, marginal touch-control region is at least one curved surface display area, the device includes:
the display module is used for displaying a first user interface, and the first user interface is a main screen interface or a user interface of a first application program;
the receiving module is used for receiving the sliding signal in the edge touch control area;
the determining module is used for determining a target curved surface display area in the at least one curved surface display area according to the current holding state in the vertical screen state, wherein the holding state comprises a left-hand holding state and a right-hand holding state;
the identification module is used for determining a sliding starting point and a sliding path indicated by the sliding signal if the target curved surface display area contains the sliding signal, other curved surface display areas do not contain the sliding signal, and the plane display area does not contain a touch signal;
the identification module is further configured to shield the sliding signal in the second curved surface display sub-region for the first application program if the sliding starting point is located in a first curved surface display sub-region and the sliding path reaches a second curved surface display sub-region, and perform gesture identification according to the sliding signal to obtain a gesture identification result, where the first curved surface display sub-region is a sub-region far away from the planar display region in the target curved surface display region, and the second curved surface display sub-region is a sub-region located between the first curved surface display sub-region and the planar display region in the target curved surface display region;
the switching module is used for switching the first user interface into a second user interface when the gesture recognition result is an application switching gesture, wherein the second user interface is a user interface of a second application program, and the second application program is an application program running in a background;
and the second response module is used for responding to the sliding signal corresponding to the sliding path in the second curved surface display sub-area if the gesture recognition result is not the application switching gesture.
9. A terminal, characterized in that the terminal comprises a processor and a memory; the memory stores at least one instruction for execution by the processor to implement the application switching method of any of claims 1 to 7.
10. A computer-readable storage medium having stored thereon at least one instruction for execution by a processor to implement the application switching method of any one of claims 1 to 7.
CN201810569559.4A 2018-06-05 2018-06-05 Application program switching method, device, terminal and storage medium Active CN108874288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810569559.4A CN108874288B (en) 2018-06-05 2018-06-05 Application program switching method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810569559.4A CN108874288B (en) 2018-06-05 2018-06-05 Application program switching method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108874288A CN108874288A (en) 2018-11-23
CN108874288B true CN108874288B (en) 2020-08-25

Family

ID=64336754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810569559.4A Active CN108874288B (en) 2018-06-05 2018-06-05 Application program switching method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108874288B (en)

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582144A (en) * 2018-12-06 2019-04-05 江苏萝卜交通科技有限公司 A kind of gesture identification method of human-computer interaction
CN109766043A (en) * 2018-12-29 2019-05-17 华为技术有限公司 The operating method and electronic equipment of electronic equipment
CN110691165A (en) * 2019-04-30 2020-01-14 华为技术有限公司 Navigation operation method and electronic equipment
CN112534379B (en) * 2019-07-19 2024-03-08 京东方科技集团股份有限公司 Media resource pushing device, method, electronic equipment and storage medium
CN110602321B (en) * 2019-09-11 2020-12-01 腾讯科技(深圳)有限公司 Application program switching method and device, electronic device and storage medium
CN110764856A (en) * 2019-09-29 2020-02-07 维沃移动通信有限公司 Application control method and terminal equipment
CN111061419B (en) * 2019-10-23 2023-03-03 华为技术有限公司 Application bar display method and electronic equipment
CN110941472A (en) * 2019-11-26 2020-03-31 天津网之易创新科技有限公司 Function switching method, medium, device and computing equipment
CN111176764B (en) * 2019-12-10 2022-04-05 华为技术有限公司 Display control method and terminal equipment
CN113552962A (en) * 2020-04-23 2021-10-26 北京小米移动软件有限公司 Control method and control device for intelligent equipment, intelligent equipment and storage medium
CN113687922A (en) * 2020-05-19 2021-11-23 Oppo(重庆)智能科技有限公司 Task switching control method and device and related equipment
CN111638826A (en) * 2020-05-28 2020-09-08 维沃移动通信有限公司 Interface display method and device and electronic equipment
CN111766972A (en) * 2020-06-09 2020-10-13 Oppo广东移动通信有限公司 Display screen assembly and electronic device
CN111725283B (en) * 2020-06-22 2023-06-30 Oppo广东移动通信有限公司 Display module, display screen assembly and electronic equipment
CN111813307B (en) * 2020-06-23 2022-03-01 维沃移动通信有限公司 Application program display method and device and electronic equipment
CN112214297A (en) * 2020-09-30 2021-01-12 维沃移动通信(杭州)有限公司 Application switching method and electronic equipment
WO2022141286A1 (en) * 2020-12-28 2022-07-07 安徽鸿程光电有限公司 Application switching method and apparatus, and electronic device and machine-readable storage medium
CN114816158A (en) * 2021-01-11 2022-07-29 华为技术有限公司 Interface control method and device, electronic equipment and readable storage medium
CN113064686A (en) * 2021-03-18 2021-07-02 北京达佳互联信息技术有限公司 Interface display method and device, electronic equipment and storage medium
CN113891160B (en) * 2021-09-22 2024-02-13 百果园技术(新加坡)有限公司 Sliding switching method and device for content card, terminal and storage medium
CN114637451B (en) * 2022-05-06 2023-06-20 荣耀终端有限公司 Display optimization method, device and storage medium during application switching
CN117555462B (en) * 2024-01-11 2024-05-24 深圳市天之眼高新科技有限公司 Control method of vehicle-mounted terminal, control device of vehicle-mounted terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325749A (en) * 2016-08-25 2017-01-11 维沃移动通信有限公司 Operation method of mobile terminal, and mobile terminal
CN106874046A (en) * 2017-01-22 2017-06-20 维沃移动通信有限公司 The operating method and mobile terminal of a kind of application program
CN107678592A (en) * 2017-09-30 2018-02-09 联想(北京)有限公司 A kind of method of toch control, device and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156073B (en) * 2014-08-29 2017-12-22 努比亚技术有限公司 Mobile terminal and its operating method
CN105867732A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 Method and terminal for display mode switching
CN107590006B (en) * 2017-09-05 2019-02-05 Oppo广东移动通信有限公司 Document handling method, device and mobile terminal
CN107870784A (en) * 2017-11-24 2018-04-03 维沃移动通信有限公司 A kind of display control method, mobile terminal and computer-readable recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106325749A (en) * 2016-08-25 2017-01-11 维沃移动通信有限公司 Operation method of mobile terminal, and mobile terminal
CN106874046A (en) * 2017-01-22 2017-06-20 维沃移动通信有限公司 The operating method and mobile terminal of a kind of application program
CN107678592A (en) * 2017-09-30 2018-02-09 联想(北京)有限公司 A kind of method of toch control, device and equipment

Also Published As

Publication number Publication date
CN108874288A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108874288B (en) Application program switching method, device, terminal and storage medium
CN108958681B (en) Split screen display method, device, terminal and storage medium
US11467715B2 (en) User interface display method, terminal and non-transitory computer-readable storage medium for splitting a display using a multi-finger swipe
CN107688422B (en) Notification message display method and device
EP3842905B1 (en) Icon display method and apparatus, terminal and storage medium
CN108089786B (en) User interface display method, device, equipment and storage medium
CN109164964B (en) Content sharing method and device, terminal and storage medium
CN108804190B (en) User interface display method, device, terminal and storage medium
CN108491127B (en) Input method interface display method, device, terminal and storage medium
CN109101157B (en) Sidebar icon setting method and device, terminal and storage medium
CN108762619B (en) Buoy display method, device, terminal and storage medium
EP3680764B1 (en) Icon moving method and device
CN108803964B (en) Buoy display method, device, terminal and storage medium
US11061558B2 (en) Touch operation response method and device
CN109656445B (en) Content processing method, device, terminal and storage medium
CN107608550B (en) Touch operation response method and device
CN109117060B (en) Pull-down notification bar display method, device, terminal and storage medium
CN108845854B (en) User interface display method, device, terminal and storage medium
WO2019233307A1 (en) User interface display method and apparatus, and terminal and storage medium
US11086442B2 (en) Method for responding to touch operation, mobile terminal, and storage medium
CN108803990B (en) Interaction method, device and terminal
CN109726539B (en) Application starting method, device, terminal and storage medium
CN110442267B (en) Touch operation response method and device, mobile terminal and storage medium
US11194425B2 (en) Method for responding to touch operation, mobile terminal, and storage medium
CN109714474B (en) Content copying method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant