CN111399742A - Interface switching method and device and electronic equipment - Google Patents

Interface switching method and device and electronic equipment Download PDF

Info

Publication number
CN111399742A
CN111399742A CN202010177866.5A CN202010177866A CN111399742A CN 111399742 A CN111399742 A CN 111399742A CN 202010177866 A CN202010177866 A CN 202010177866A CN 111399742 A CN111399742 A CN 111399742A
Authority
CN
China
Prior art keywords
interface
application program
displaying
preset area
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010177866.5A
Other languages
Chinese (zh)
Other versions
CN111399742B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010177866.5A priority Critical patent/CN111399742B/en
Priority claimed from CN202010177866.5A external-priority patent/CN111399742B/en
Publication of CN111399742A publication Critical patent/CN111399742A/en
Priority to PCT/CN2021/079793 priority patent/WO2021180089A1/en
Application granted granted Critical
Publication of CN111399742B publication Critical patent/CN111399742B/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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The embodiment of the application provides an interface switching method, an interface switching device and electronic equipment, wherein in the interface switching method, interface switching operation of a user is detected, and interface identifiers of at least two interfaces of at least one target application program are obtained; displaying the acquired interface in a first preset area; according to the method, the target interface identification is selected from the interface identifications displayed in the first preset area by the user for operation, and the interface corresponding to the target interface identification is displayed on the screen, so that switching between the interfaces in the application programs or between the interfaces in the application programs can be conveniently and quickly carried out, and the user experience is improved.

Description

Interface switching method and device and electronic equipment
Technical Field
The application relates to the technical field of intelligent terminals, in particular to an interface switching method and device and electronic equipment.
Background
When a certain application program is used in a mobile terminal such as a mobile phone and a tablet computer running an Android (Android) system, if a user wants to return to a certain interface opened before from a currently opened interface in the application program, the user needs to press a back key for realization, the more the level difference between the two interfaces is, the more times the back key needs to be pressed is, the more the user operation is complex, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides an interface switching method and device and electronic equipment, which can conveniently and quickly switch interfaces in application programs or between application programs, and improve user experience.
In a first aspect, the present application provides an interface switching method, including:
detecting interface switching operation of a user, and acquiring interface identifications of at least two interfaces corresponding to at least one target application program; the interface comprises an interface opened by the target application program; the target application is an opened application; the interface identifier is information for displaying interface features, and may be, for example, a complete interface, a simplified interface, or an interface screenshot;
displaying the acquired interface identifications of at least two interfaces in a first preset area;
and displaying the interface corresponding to the target interface identifier on the screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
The method enables the user to conveniently and rapidly switch the interfaces in the application programs or between the application programs, and the back key does not need to be pressed for many times to switch the interfaces, so that misoperation of the user is reduced, and user experience is improved.
The method for detecting the interface switching operation of the user comprises the following steps:
detecting interface switching operation of a user aiming at an application program to which a current display interface belongs; the current display interface refers to an interface which is displayed on a screen of the electronic equipment when the interface switching operation is executed;
the method for acquiring the interface identifications of the at least two interfaces corresponding to the at least one target application program comprises the following steps:
and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
After detecting the interface switching operation of the user, the method comprises the following steps:
acquiring an application program identifier of an opened application program; the application identification includes at least one of: the method comprises the following steps of (1) obtaining application program names, application program icons and interface screenshots of the application programs;
displaying the obtained application program identification in a second preset area;
and detecting that the user selects the target application program operation in the application program identification displayed in the second preset area.
Further, after detecting the interface switching operation of the user, the method further includes:
acquiring the quantity information of opened interfaces in each opened application program;
displaying the obtained application program identifier in a second preset area, including:
and correspondingly displaying the quantity information and the application program identification in a second preset area.
Displaying the acquired interface identifications of the at least two interfaces in a first preset area, wherein the displaying comprises the following steps:
splicing and displaying the interface identification in a first preset area according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a stacking manner according to the level sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a paging mode according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or paging interface identifications in the first sub-area according to the level sequence of the interface, and displaying selected interface identifications in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in a first preset area according to the hierarchical sequence of the interface according to the sliding offset of the interface switching operation on the screen.
Displaying the acquired interface identifications of the at least two interfaces in a first preset area, wherein the displaying comprises the following steps:
splicing and displaying the interface identification in a first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a superposition mode according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or displaying interface identifiers in the first sub-area sequentially according to the sequence of an application program and the level sequence of interfaces in the application program, and displaying the selected interface identifiers in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in the first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence according to the sliding offset of the interface switching operation on the screen.
In a second aspect, an embodiment of the present application provides an interface switching apparatus, configured to execute the method of the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the steps of:
detecting interface switching operation of a user, and acquiring interface identifications of at least two interfaces corresponding to at least one target application program; the interface comprises an interface opened by the target application program; the target application is an opened application;
displaying the acquired interface identifications of at least two interfaces in a first preset area;
and displaying the interface corresponding to the target interface identifier on the screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
Wherein the instructions, when executed by the device, cause the device to perform the step of detecting the user's interface switching operation comprises:
detecting interface switching operation of a user aiming at an application program to which a current display interface belongs;
the step of enabling the device to acquire the interface identifications of the at least two interfaces corresponding to the at least one target application program includes:
and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
Wherein the instructions, when executed by the device, cause the device to perform the following steps after the step of detecting the interface switching operation of the user is performed:
acquiring an application program identifier of an opened application program;
displaying the obtained application program identification in a second preset area;
and detecting that the user selects the target application program operation in the application program identification displayed in the second preset area.
Wherein the instructions, when executed by the device, cause the device to perform the following steps after the step of detecting the interface switching operation of the user is performed:
acquiring the quantity information of opened interfaces in each opened application program;
the step of causing the device to execute the step of displaying the acquired application program identification in the second preset area comprises:
and correspondingly displaying the quantity information and the application program identification in a second preset area.
The step of displaying the acquired interface identifications of the at least two interfaces in a first preset area by the equipment when the instruction is executed by the equipment comprises the following steps:
splicing and displaying the interface identification in a first preset area according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a stacking manner according to the level sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a paging mode according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or paging interface identifications in the first sub-area according to the level sequence of the interface, and displaying selected interface identifications in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in a first preset area according to the hierarchical sequence of the interface according to the sliding offset of the interface switching operation on the screen.
The step of displaying the acquired interface identifications of the at least two interfaces in a first preset area by the equipment when the instruction is executed by the equipment comprises the following steps:
splicing and displaying the interface identification in a first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a superposition mode according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the interface identification in a first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or displaying interface identifiers in the first sub-area sequentially according to the sequence of an application program and the level sequence of interfaces in the application program, and displaying the selected interface identifiers in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in the first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence according to the sliding offset of the interface switching operation on the screen.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program, which, when run on a computer, causes the computer to perform the method of the first aspect.
In a fifth aspect, the present application provides a computer program for performing the method of the first aspect when the computer program is executed by a computer.
In a possible design, the program of the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
FIG. 1 is an exemplary illustration of an interface according to an embodiment of the present application;
FIG. 2A is a flowchart of an embodiment of an interface switching method according to the present application;
FIG. 2B is an exemplary illustration of an interface identifier according to an embodiment of the disclosure;
FIG. 2C is a diagram illustrating a position of a first predetermined area in a screen according to an embodiment of the present application;
FIG. 3A is a flowchart of another embodiment of an interface switching method according to the present application;
FIGS. 3B-3G are schematic diagrams illustrating a method for displaying an interface identifier according to an embodiment of the present disclosure;
FIG. 4A is a flowchart of another embodiment of an interface switching method according to the present application;
FIG. 4B is a diagram illustrating a task stack management method according to an embodiment of the present application;
FIG. 4C is a diagram illustrating an example of interface switching according to an embodiment of the present application;
FIG. 5A is a flowchart of another embodiment of an interface switching method according to the present application;
FIG. 5B is a diagram illustrating an example of interface switching according to an embodiment of the present application;
FIG. 6 is a block diagram of an embodiment of an interface switching device according to the present application;
FIG. 7 is a schematic structural diagram of an embodiment of an electronic device of the present application;
fig. 8 is a block diagram of a software system of the electronic device of the present application.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
First, an interface of an application program in the embodiment of the present application will be described.
The interface of the application program in the embodiment of the application program is a medium interface for interaction and information exchange between the application program and a user, and the conversion between the internal form of the information and the form acceptable by the user is realized. A common presentation form of an Interface of an application program is a Graphical User Interface (GUI), which refers to a User Interface related to computer operation and displayed in a graphical manner. The interface of the application program may be composed of visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and the like.
The interface of the application program allows a user to select an icon or a menu option in the interface by using an input device such as a mouse and the like so as to open a new interface. For example, as shown in fig. 1, taking the step-by-step menu option opening by the user as an example, the user opens one application program 1, enters an initial interface of the application program 1, can click a first-level menu 1 on the initial interface, enter an interface corresponding to the first-level menu 1, open a second-level menu 12 on the interface corresponding to the first-level menu 1, enter an interface corresponding to the second-level menu 12, and continue to open, for example, a third-level menu 123 on the interface corresponding to the second-level menu 12, and then an interface corresponding to the third-level menu 123, and so on.
In the existing implementation scheme, if a user wants to return to a certain interface which is opened before from a currently opened interface in an application program, the user needs to press a back key to implement the method, the more the hierarchy difference between the two interfaces is, the more times the back key needs to be pressed is, the complex operation is realized, and the user experience is influenced by the misoperation caused by the fact that the back key is pressed more easily.
Therefore, the embodiment of the application provides an interface switching method and device and electronic equipment, which can conveniently and quickly switch interfaces in application programs or between application programs, reduce misoperation of users, and improve user experience.
It should be noted that the application scope of the present application is not limited to the above mobile terminal using the android system, and the present application may be applied to an electronic device using the android system or another system, such as an IOS system. The electronic equipment can comprise mobile terminals (mobile phones), smart screens, unmanned aerial vehicles, Intelligent Internet vehicles (ICV for short), Intelligent (automobile) vehicles (smart/Intelligent car) or Vehicle-mounted equipment and the like.
The following describes an interface switching method according to an embodiment of the present application.
Fig. 2A is a flowchart of an embodiment of an interface switching method according to the present application, and as shown in fig. 2A, the method may include:
step 201: detecting interface switching operation of a user, and acquiring interface identifications of at least two interfaces corresponding to at least one target application program; the interface comprises an interface opened by a target application program; the target application is an opened application.
The interface switching operation may be directed to switching an interface within an application program, or may be directed to switching an interface between different application programs.
Referring to fig. 1, the interface opened by the user in the application 1, such as the initial interface, the interface corresponding to the first-level menu 1, the interface corresponding to the second-level menu 12, and the like, becomes an opened interface after being opened by the user. However, the application may close the opened interface based on a rule, and the embodiment of the application is not limited thereto.
Wherein, for the interface switching operation:
in one possible implementation, the interface switching operation may be a specific gesture made by the user on the screen, such as a three-finger pinch-and-slide, a two-finger merge-and-slide, a continuous click, and so on.
In another possible implementation manner, the interface switching operation may be to press a predetermined physical key once or multiple times continuously, or to press a predetermined physical key continuously for a predetermined time length. The specific pressing times of the continuous multiple pressing is not limited in the application, and the preset time length is not limited in the application.
The interface identifier of the interface is information for showing interface features, for example, the interface identifier of the interface may be a complete interface, that is, includes all interface elements of the interface; or, the interface identifier of the interface may also be a simplified interface, that is, the interface identifier includes interface middle interface element; alternatively, the interface identifier of the interface may be an interface screenshot of the interface. For example, referring to fig. 2B, assuming that the user clicks the icon of the application 1, the initial interface of the application 1 displayed on the screen of the electronic device is as shown in the left diagram of fig. 2B, and then the left diagram is the complete interface of the initial interface, the initial interface includes 4 first-level menu option buttons, and the interface including only 2 first-level menu option buttons in the right diagram of fig. 2B is the simplified interface of the initial interface; and the screenshot of the initial interface is the interface screenshot of the initial interface.
Step 202: and displaying the acquired interface identifications of the at least two interfaces in a first preset area.
The first preset area may be a part or all of the area on the screen, and the specific implementation may be set autonomously in the actual application. For example, referring to fig. 2C, the portion filled with oblique lines is a first preset region, a certain proportion of the upper region of the screen may be used as the first preset region, or a certain proportion of the lower region of the screen may be used as the first preset region, or a certain proportion of the middle region of the screen may be used as the first preset region. The specific value of the ratio can be set independently in practical application as long as the purpose of displaying the interface identifier can be achieved.
Step 203: and displaying an interface corresponding to the target interface identification on a screen according to the operation of selecting the target interface identification from the interface identifications displayed in the first preset area by the user.
If the interface identifier obtained in step 201 is a complete interface, displaying a target interface according to the target interface identifier in this step; if the interface identifier obtained in step 201 is a simplified interface or an interface screenshot, in this step, when the target interface corresponding to the target interface identifier is displayed on the screen, an interface corresponding to the target interface identifier needs to be obtained first, and then the obtained interface is displayed on the screen.
In a possible implementation manner, when the interface corresponding to the target interface identifier is displayed on the screen, information input by the user when the interface is opened last time can be displayed on the screen, so that the user does not need to input information on the interface again, and the user experience is improved.
In the method shown in fig. 2A, an interface switching operation of a user is detected, interface identifiers of at least two interfaces corresponding to at least one target application program are obtained, the interfaces include interfaces opened by the target application program, the target application program is an opened application program, the obtained interface identifiers of the at least two interfaces are displayed in a first preset area, and an interface corresponding to the target interface identifier is displayed on a screen according to an operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user, so that the user can conveniently and quickly switch the interfaces in the application program or between the application programs, and does not need to press a back key for multiple times to switch the interfaces, thereby reducing misoperation of the user and improving user experience.
In the embodiment of the present application shown in fig. 3A, taking an interface switch in an application as an example, referring to fig. 3A, the method may include:
step 301: and detecting interface switching operation of a user aiming at the application program to which the current display interface belongs, and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
The current display interface refers to an interface which is being displayed on a screen of the electronic equipment when the interface switching operation is executed. Taking fig. 1 as an example, suppose that a user clicks an icon of an application 1 to open the application 1, and an initial interface of the application 1 is displayed on a screen of the electronic device, at this time, the initial interface of the application 1 is a current display interface, and the application 1 is an application to which the current display interface belongs.
The user does not limit how to implement the embodiment of the present application specifically for the interface switching operation of the application program to which the current display interface belongs. For example:
in one possible implementation manner, the interface switching operation of the user for the application program to which the current display interface belongs may be a specific gesture, such as three-finger pinch-and-slide, two-finger pinch-and-slide, continuous clicking and the like, performed by the user on the screen.
In another possible implementation manner, the interface switching operation of the user for the application to which the current display interface belongs may be to press a certain preset entity key once or continuously for multiple times, or to continuously press a certain preset entity key for a preset time length. The specific pressing times of the continuous multiple pressing is not limited in the embodiment of the present application, and the preset time length is not limited in the embodiment of the present application.
The obtaining of the interface identifiers of at least two interfaces of the application program to which the current display interface belongs may include:
the method comprises the steps of obtaining information of at least two interfaces of an application program to which a current display interface belongs, and obtaining interface identifications of the at least two interfaces according to the information of the at least two interfaces. The information of the interface may include: and (4) interface ID.
The obtaining of the information of the at least two interfaces of the application program to which the current display interface belongs may include:
acquiring information of a current display interface and information of at least one interface close to the hierarchy of the current display interface; or acquiring information of at least two interfaces close to the hierarchy of the currently displayed interface.
In practical application, the information of the interface can be obtained by calling ActivityStack, and the interface screenshot of the interface can be obtained by the capture L player function of the SurfaceControl.
Step 302: and displaying the acquired interface identification in a first preset area.
In a possible implementation manner, the acquired interface identifiers may be displayed in a first preset area in a splicing manner according to a hierarchical sequence of the interface corresponding to the interface identifier, where the hierarchical sequence may be from high to low, or from low to high, and the like.
When the number of the acquired interface identifiers is small, the acquired interface identifiers can be directly arranged and spliced from left to right in sequence according to a hierarchical order, for example, assuming that 3 interface identifiers are acquired, the hierarchical order is interface 1, interface 2 and interface 3 from low to high, as shown in fig. 3B, the 3 interface identifiers can be spliced and displayed in a first preset area according to the order of the hierarchy of the interface from low to high;
when the number of the acquired interface identifiers is large, the interface identifiers may be divided into 2 rows or more in a hierarchical order for splicing display, for example, assuming that 6 interface identifiers are acquired, the hierarchical order of the corresponding interfaces is from interface 1 to interface 6 from low to high, as shown in fig. 3C, the displayed interface identifiers may be divided into 2 rows for splicing display. Referring to fig. 3D, when the number of the acquired interface identifiers exceeds the maximum number of the interface identifier splicing display, paging may be performed, one page is displayed in the first preset area (shown by a solid line in fig. 3D), and the other pages are not displayed temporarily (shown by a dotted line in fig. 3D), so that the user is supported to replace the display page through sliding and other operations. Optionally, the display page of the initial first preset area may include: the interface identifier of the current display interface is used for a user to refer to the interface identifier of the current display interface, so that the user can more easily understand the hierarchical relationship between the interface identifiers in the display page, and the specific display position of the interface identifier of the current display interface in the page to which the interface identifier belongs is not limited in the embodiment of the application.
In another possible implementation manner, the acquired interface identifiers may be displayed in the first preset area in a manner of overlapping according to a hierarchical order of the interfaces. For example, assuming that 6 interface identifiers are obtained, the interfaces 1 to 6 are sequentially arranged from the bottom to the top in the hierarchical order, as shown in the left diagram in fig. 3E, the obtained interface identifiers are displayed in an overlapping manner in the order from the top to the bottom, so that the user is supported to replace the interface identifier displayed at the top layer through operations such as sliding, and as shown in the right diagram in fig. 3E, the interface identifier displayed at the top layer is replaced from the interface identifier 6 to the interface identifier 4 under the operation of the user. Optionally, the interface identifier of the first preset area, which is initially located at the uppermost layer, may be an interface identifier of the currently displayed interface, so that the user may refer to the interface identifier of the currently displayed interface, so that the user may more easily understand the hierarchical relationship between the interface identifiers.
In yet another possible implementation manner, the acquired interface identifier may be displayed in the first preset area in a paging manner according to a hierarchical order of the interface. For example, each page may exhibit an interface identifier, similar to that shown in FIG. 3D; alternatively, the paging display may be combined with the aforementioned splicing display to perform paging display, as shown in fig. 3D.
In yet another possible implementation manner, the first preset area may be divided into a first sub-area and a second sub-area, the obtained interface identifiers are displayed in the first sub-area in a splicing manner, or in an overlapping manner, or in a paging manner according to a hierarchical order of the interface, and the selected interface identifier in the first sub-area is displayed in the second sub-area. The size between the first subregion and the second subregion is not limited in the embodiments of the present application. For example, assuming that 6 interface identifiers are obtained, the interfaces 1 to 6 are sequentially arranged from low to high in the hierarchical order of the corresponding interfaces, as shown in fig. 3F, the interface identifiers are displayed in the first sub-area in a stacked manner according to the hierarchical order, and when the user selects the interface identifier 4, the selected interface identifier 4 is displayed in the second sub-area. In another possible implementation manner, instead of displaying the interface identifier 4 in the second sub-region, the interface corresponding to the selected interface identifier 4 may be displayed in the second sub-region.
In yet another possible implementation manner, the acquired interface identifiers may be displayed in the first preset area according to the hierarchical order of the interfaces according to the sliding offset of the interface switching operation on the screen. The amount of slip offset generally refers to: in the user performing the interface switching operation on the screen, the center point of the contact surface of the finger of the user and the screen is displaced on the screen. The implementation mode can be combined with other possible implementation modes so as to replace the interface identifier displayed in the first preset area according to the operation of the user. Specifically, for example, it is determined in the direction of the sliding offset whether to change from the currently displayed interface identifier to an interface identifier at a higher level or to an interface identifier at a lower level; determining the currently displayed interface identifier and the display proportion of the first-level interface identifier adjacent to the interface identifier according to the proportion of the sliding offset in the transverse width of the screen, and determining the target interface identifier selected by the user in the interface identifiers displayed in the first preset area when the interface switching operation of the user is finished according to the proportion of the sliding offset in the transverse width of the screen. For example:
assuming that 6 interface identifiers are obtained, the interface identifiers 1 to 6 are sequentially arranged from low to high in the hierarchical order, the current display interface identifier (i.e., the current display interface in step 301) is the interface identifier 6, if the direction of the sliding offset is from left to right, the interface is replaced in the direction of the interface identifier 5, and if the direction of the sliding offset is from right to left, the interface identifier is replaced in the direction of the interface identifier 6 at the next stage, because the next stage of interface identifier of the interface identifier 6 is not available in the present example, the interface replacement operation of the user may not be responded; taking the direction of the sliding offset from left to right as an example, the ratio x of the lateral offset of the interface switching operation in the lateral width of the screen can be calculated, as shown in fig. 3G, the display ratio of the interface identifier 6 in the first preset area is set to 1-x, and the display ratio of the interface identifier 5 in the first preset area is set to x.
When the user finishes sliding from left to right, that is, the interface switching operation is finished, the target interface identifier selected by the user from the interface identifiers displayed in the first preset area may be determined according to the ratio x, specifically, the interface identifier with a large display ratio in the first preset area may be used as the target interface identifier, for example, when x is greater than 0.5, the interface identifier 5 is the target interface identifier, and when x is less than or equal to 0.5, the interface identifier 6 is the target interface identifier.
Step 303: and displaying a target interface corresponding to the target interface identifier on a screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
Optionally, as shown in fig. 4A, step 303 may further include:
step 401: and when detecting that the user opens a new interface in the target interface, closing other interfaces higher than the target interface level except the new interface in the interface.
The hierarchy of interfaces in the present application is illustrated. Referring to fig. 1, the level of the initial interface of the application 1 is 1, the level of the interface of the first-level menu 1 opened on the initial interface is 2, the level of the interface of the second-level menu 12 opened on the interface of the first-level menu 1 is 3, and the larger the value of the level is, the higher the level is.
This step is illustrated by way of example:
assume levels of opened interfaces are 1, 2, 3, 4, 5, 6; and if the level of the target interface is 4, the level of the new interface is 5, and then interfaces with levels 5 and 6 in the interfaces which are opened except the new interface are closed.
It should be noted that, in practical applications, the management of the opened interface in the application program may be performed in a task stack manner. When the interface management of the task stack is performed, the opened interfaces are placed in the task stack according to the hierarchical sequence, and when the current display interface is switched to the target interface in step 203, in a possible task stack management manner, the position of the interface higher than the target interface in the task stack can be moved to the bottommost layer, the positions of other opened interfaces in the task stack can be moved up, and further, when a new interface is opened in step 301, the interface higher than the target interface in the hierarchy can be deleted from the task stack. For example, the following steps are carried out: as shown in fig. 3B, if the interfaces in the task stack are a to E from low to high according to the hierarchy, and the target interface is C, when step 203 is executed, the interfaces D and E higher than the hierarchy of the interface C in the application program move from the upper layer to the bottommost layer of the task stack, and the positions of the interfaces a to C move up sequentially, and a new interface F is opened from the interface C in step 301, the interface D and the interface E are deleted from the task stack, and the interface F is added to the topmost layer of the task stack.
In the task stack, the interface moved to the lowest layer may be marked specifically, and the effect of the special mark on the task stack is as follows: the user is prevented from returning from the initial interface or the interface at the lower level to the interface at the highest level moved to the lowest level of the task stack when performing the return operation. Taking the second task stack in fig. 4B as an example, when the user performs the return operation, the interface C in the task stack may return to the interface B, and the interface B may return to the interface a, and by a special mark, the user may be prevented from returning to the interface E from the interface a when performing the return operation, thereby preventing the application program from generating an error. In addition, if the interface switching operation of the user is detected after step 203, that is, the processing returns to step 201, it can be ensured that the opened interfaces acquired from the task stack are still interfaces arranged in the normal hierarchical order by the special mark. For example, continuing the above example, the target interface in step 203 is interface C, at this time, the structure of the task stack is as shown in the second task stack in fig. 4B, at this time, if the interface switching operation of the user is detected, step 201 will be returned to, and the interface that has been opened from the task stack may be acquired according to the special mark of the interface as follows: A. b, C, D, E are provided.
For example, from the interface switching perspective, the effect of the special mark on the interface and the user is to identify that the interface is in the invisible to-be-destroyed state. Referring to fig. 4C, it is assumed that an interface switching operation is detected when the application displays the interface C, and then the interface is switched to the interface B at the previous stage, at this time, the interface C may be specially marked to identify that the interface C is in an invisible to-be-destroyed state, and the interface C is still an opened interface, and a user performs the interface switching operation under the interface B, and may still switch from the interface B to the interface C, but if the user opens the interface D in the interface B, the interface C is closed, that is, deleted from the task stack.
Through the addition of step 401, it can be ensured that only the new interface and the interface with a lower hierarchy than the new interface are already opened interfaces, and the interface which is opened by the user and has the same hierarchy as or a higher hierarchy than the new interface is closed, so that the data amount required to be processed when the application executes the interface switching method of the application, that is, the data amount required to be processed when the electronic device executes the interface switching method of the application, is reduced.
In the embodiment of the present application shown in fig. 5A, taking an interface switch between applications as an example, referring to fig. 5A, the method may include:
step 501: and detecting interface switching operation of a user, and acquiring an application program identifier of the opened application program.
Wherein the application identification comprises at least one of: an application name, an application icon, or an interface screenshot of an application.
Step 502: and displaying the acquired application program identification in a second preset area.
The setting of the second preset area may refer to the related description of the setting of the first preset area, and the method for displaying the application program identifier in the second preset area may refer to the method for displaying the interface identifier in the first preset area, which is not described herein again.
Optionally, in step 501, information about the number of opened interfaces in the opened application program may also be obtained; correspondingly, in step 502, the acquired quantity information and the application program identifier are correspondingly displayed in the second preset area.
When the application program identifier and the quantity information are correspondingly displayed, the quantity information may be displayed in a preset area of the application program identifier, for example, a special area such as an upper right corner, a lower right corner, an upper left corner, a lower left corner, a central point, or any non-special area on the application program identifier, which is not limited in the embodiment of the present application.
Step 503: and detecting that the user selects the target application program operation from the application program identifiers displayed in the second preset area, and acquiring the interface identifiers of at least two interfaces corresponding to the target application program.
The specific implementation of selecting the target application program operation is not limited in the embodiment of the present application, and may be, for example, an application program identifier displayed by clicking the second preset area.
The number of target application programs that can be selected by the user in the second preset area is not limited in the embodiment of the present application. If the number of the target application programs that can be selected by the user in the second preset area is greater than 1, and accordingly, when the interface identifiers of the at least two interfaces corresponding to the target application programs are obtained, the interface identifiers of the at least two interfaces corresponding to each selected target application program can be obtained respectively.
Step 504: and displaying the acquired interface identification in a first preset area.
If a target application program is selected in step 503 and the interface identifiers of at least two interfaces of the target application program are obtained, the implementation method in this step may refer to the relevant description in step 302, which is not described herein again.
If two or more target applications are selected in step 503 and interface identifiers of at least two interfaces of the two or more target applications are obtained, the implementation method of this step may include:
splicing and displaying the acquired interface identification in a first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
the acquired interface identification is sequentially displayed in a first preset area in an overlapping mode according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the acquired interface identification in a first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing and displaying, overlapping and displaying or paging the acquired interface identification in the first sub-area according to the sequence of the application program and the level sequence of the interface in the application program, and displaying the selected interface identification in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the acquired interface identification in a first preset area according to the sliding offset of the interface switching operation on the screen and the sequence of the application program and the hierarchical sequence of the interface in the application program.
The above implementation manner may refer to the relevant description in step 302, and the difference is mainly that, because the interface identifiers of two or more target applications are obtained, when the interface identifiers are displayed, the target applications to which the interface identifiers belong may be displayed, and the specific display method is not limited in this embodiment of the application.
Step 505: and displaying a target interface corresponding to the target interface identifier on a screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
Referring to fig. 5B, an implementation example of the embodiment of the present application is shown, where when the application 1 runs in a full screen mode, if an interface switching operation of a user is detected, identifiers of the opened applications 1 to 3, that is, application identifiers 1 to 3, are displayed in a preset area (that is, a second preset area), and meanwhile, information of the number of the opened interfaces in the applications 1 to 3 is displayed in an upper right corner of the application identifier, respectively, referring to fig. 5B, the number of the opened interfaces in the application 1 is 1, the number of the opened interfaces in the application 2 is 3, and the number of the opened interfaces in the application 3 is 4; at this time, if the user selects the application program 2, the interface identifiers of the 3 opened interfaces in the application program 2 are continuously displayed in the preset area (i.e., the first preset area), see fig. 5B, taking interface identifier 1 to interface identifier 3 as an example. It should be noted that, in the embodiment of the present application, steps 503 to 505 are mainly performed for applications with at least 2 opened interfaces, for example, the application 1 has only one opened interface, and the electronic device may directly display the interface on the screen.
In the embodiment of the application shown in fig. 5A, an interface switching operation of a user is detected, application identifiers of started applications are obtained, the obtained application identifiers are displayed in a second preset area, a target application operation selected from the application identifiers displayed in the second preset area by the user is detected, interface identifiers of at least two interfaces corresponding to the target application are obtained, the obtained interface identifiers are displayed in a first preset area, and an interface corresponding to the target interface identifier is displayed on a screen according to the target interface identifier operation selected from the interface identifiers displayed in the first preset area by the user, so that interface switching between the applications is achieved.
In accordance with the foregoing method, an embodiment of the present application provides an interface switching apparatus, and referring to fig. 6, the apparatus 600 may include:
the interface obtaining unit 610 is configured to detect an interface switching operation of a user, and obtain interface identifiers of at least two interfaces corresponding to at least one target application; the interface comprises an interface opened by the target application program; the target application is an opened application;
the display unit 620 is configured to display the interface identifiers of the at least two interfaces acquired by the interface acquisition unit 610 in a first preset area; and displaying the interface corresponding to the target interface identifier on the screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
The interface obtaining unit 610 may be specifically configured to:
and detecting interface switching operation of the user aiming at the application program to which the current display interface belongs, and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
The interface obtaining unit 610 may be specifically configured to: detecting interface switching operation of a user, and acquiring an application program identifier of an opened application program; displaying the obtained application program identification in a second preset area; and detecting that the user selects a target application program operation in the application program identification displayed in the second preset area.
The interface obtaining unit 610 may further be configured to: acquiring the quantity information of opened interfaces in each opened application program; and correspondingly displaying the quantity information and the application program identification in the second preset area.
Wherein the application identification comprises at least one of: application name, application icon, and interface screenshot of the application.
Wherein, the interface identification can include: a full interface, a simplified interface, or an interface screenshot.
The display unit 620 may be specifically configured to:
splicing and displaying the interface identification in the first preset area according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposed manner according to the hierarchical order of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing and displaying, overlapping and displaying or paging the interface identification in the first sub-area according to the interface level sequence, and displaying the selected interface identification in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identifier in the first preset area according to the hierarchical sequence of the interface according to the sliding offset of the interface switching operation on the screen.
The display unit 620 may be specifically configured to:
splicing and displaying the interface identification in the first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposition manner according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or displaying the interface identification on the first sub-area sequentially according to the sequence of an application program and the hierarchical sequence of the interface in the application program, and displaying the selected interface identification in the first sub-area on the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in the first preset area according to the sliding offset of the interface switching operation on the screen and the sequence of the application programs and the hierarchical sequence of the interfaces in the application programs.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and other operations or variations of various operations may be performed by the embodiments of the present application. Further, the various steps may be performed in a different order presented in the above-described embodiments, and it is possible that not all of the operations in the above-described embodiments are performed.
The interface switching device 700 provided in the embodiment shown in fig. 6 can be used to implement the technical solutions of the method embodiments shown in fig. 2A to fig. 5A of the present application, and the implementation principles and technical effects thereof can be further described with reference to the related descriptions in the method embodiments.
It should be understood that the division of each unit or module of the interface switching device shown in fig. 6 is only a division of logical functions, and all or part of the actual implementation may be integrated into one physical entity or may be physically separated. And these units or modules may all be implemented in the form of software invoked by a processing element; or may be implemented entirely in hardware; part of the units or modules can also be realized in the form of software called by the processing element, and part of the units or modules can be realized in the form of hardware. For example, the presentation unit may be a separate processing element, or may be integrated into a chip of the electronic device. Other units or modules are implemented similarly. In addition, all or part of the units or modules can be integrated together or can be independently realized. In the implementation process, each step of the above method or each unit or module above can be completed by the integrated logic circuit of hardware in the processor element or instructions in the form of software.
For example, the above units or modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors (DSPs), one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, these units or modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC).
Fig. 7 is a schematic structural diagram of an embodiment of an electronic device according to the present application, and as shown in fig. 7, the electronic device may include: a display screen; one or more processors; a memory; and one or more computer programs.
Wherein, the display screen can comprise a display screen of a vehicle-mounted computer (Mobile Data Center); the electronic equipment can be mobile terminals (mobile phones), smart screens, unmanned aerial vehicles, intelligent Internet vehicles (ICV), smart car (smart/intelligent car) or Vehicle-mounted equipment and the like.
In one embodiment, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the steps of:
detecting interface switching operation of a user, and acquiring interface identifications of at least two interfaces corresponding to at least one target application program; the interface comprises an interface opened by the target application program; the target application is an opened application;
displaying the acquired interface identifications of the at least two interfaces in a first preset area;
displaying the interface corresponding to the target interface identification on a screen according to the operation of selecting the target interface identification from the interface identifications displayed in the first preset area by the user
In one possible implementation manner, when executed by the apparatus, the instruction causes the apparatus to perform the step of detecting the interface switching operation of the user, including:
detecting interface switching operation of the user aiming at an application program to which a current display interface belongs;
enabling the device to execute the step of acquiring the interface identifications of the at least two interfaces corresponding to the at least one target application program, including:
and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
In another possible implementation manner, when executed by the apparatus, the instructions cause the apparatus to perform the following steps after the step of detecting the interface switching operation of the user is performed:
acquiring an application program identifier of an opened application program;
displaying the obtained application program identification in a second preset area;
and detecting that the user selects a target application program operation in the application program identification displayed in the second preset area.
In a possible implementation manner, the instructions, when executed by the apparatus, cause the apparatus to perform the following steps after the step of detecting the interface switching operation of the user:
acquiring an application program identifier of an opened application program;
displaying the obtained application program identification in a second preset area;
and detecting that the user selects a target application program operation in the application program identification displayed in the second preset area.
In a possible implementation manner, when executed by the apparatus, the instructions cause the apparatus to perform the step of displaying the acquired interface identifiers of the at least two interfaces in a first preset area, including:
splicing and displaying the interface identification in the first preset area according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposed manner according to the hierarchical order of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing and displaying, overlapping and displaying or paging the interface identification in the first sub-area according to the interface level sequence, and displaying the selected interface identification in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identifier in the first preset area according to the hierarchical sequence of the interface according to the sliding offset of the interface switching operation on the screen.
In a possible implementation manner, when executed by the apparatus, the instructions cause the apparatus to perform the step of displaying the acquired interface identifiers of the at least two interfaces in a first preset area, including:
splicing and displaying the interface identification in the first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposition manner according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or displaying the interface identification on the first sub-area sequentially according to the sequence of an application program and the hierarchical sequence of the interface in the application program, and displaying the selected interface identification in the first sub-area on the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in the first preset area according to the sliding offset of the interface switching operation on the screen and the sequence of the application programs and the hierarchical sequence of the interfaces in the application programs.
The electronic device shown in fig. 7 may be a terminal device or a circuit device built in the terminal device. The apparatus may be used to perform the functions/steps of the methods provided by the embodiments of fig. 2A-5A of the present application.
The electronic device 700 may include a processor 710, an external memory interface 720, an internal memory 721, a Universal Serial Bus (USB) interface 730, a charge management module 740, a power management module 741, a battery 742, an antenna 1, an antenna 2, a mobile communication module 750, a wireless communication module 760, an audio module 770, a speaker 770A, a receiver 770B, a microphone 770C, an earphone interface 770D, a sensor module 780, keys 790, a motor 791, an indicator 792, a camera 793, a display 794, and a Subscriber Identification Module (SIM) card interface 795, among others, where the sensor module 780 may include a pressure sensor 780A, a gyroscope sensor 780B, a barometric sensor 780C, a magnetic sensor 780D, an acceleration sensor 780E, a distance sensor 780F, a proximity light sensor 780G, a fingerprint sensor 780H, a temperature sensor 780J, a touch sensor 780K, an ambient light sensor 780L, a bone conduction sensor 780M, and others.
It is to be understood that the illustrated structure of the embodiment of the invention is not to be construed as a specific limitation to the electronic device 700. In other embodiments of the present application, the electronic device 700 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 710 may include one or more processing units, such as: the processor 710 may include an Application Processor (AP), a modem processor, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 710 for storing instructions and data. In some embodiments, the memory in the processor 710 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 710. If the processor 710 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 710, thereby increasing the efficiency of the system.
In some embodiments, processor 710 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SC L). in some embodiments, the processor 710 may include multiple sets of I2C buses.the processor 710 may be coupled to the touch sensor 780K, charger, flash, camera 793, etc. via different I2C bus interfaces, for example, the processor 710 may be coupled to the touch sensor 780K via an I2C interface, such that the processor 710 and the touch sensor 780K communicate via an I2C bus interface to implement the touch functionality of the electronic device 700.
The I2S interface may be used for audio communication. In some embodiments, processor 710 may include multiple sets of I2S buses. Processor 710 may be coupled to audio module 770 via an I2S bus to enable communication between processor 710 and audio module 770. In some embodiments, the audio module 770 may communicate audio signals to the wireless communication module 760 through an I2S interface to enable answering a call through a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, audio module 770 and wireless communication module 760 may be coupled by a PCM bus interface. In some embodiments, the audio module 770 may also transmit audio signals to the wireless communication module 760 through the PCM interface, so as to receive phone calls through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 710 with the wireless communication module 760. For example: the processor 710 communicates with a bluetooth module in the wireless communication module 760 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 770 may transmit the audio signal to the wireless communication module 760 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 710 with peripheral devices such as the display screen 794, the camera 793, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a display screen serial interface (DSI), and the like. In some embodiments, processor 710 and camera 793 communicate over a CSI interface to implement the capture functionality of electronic device 700. The processor 710 and the display screen 794 communicate via the DSI interface to implement the display function of the electronic device 700.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 710 with the camera 793, the display 794, the wireless communication module 760, the audio module 770, the sensor module 780, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 730 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 730 can be used to connect a charger to charge the electronic device 700, and can also be used to transmit data between the electronic device 700 and peripheral devices. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and does not limit the structure of the electronic device 700. In other embodiments of the present application, the electronic device 700 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 740 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 740 may receive charging input from a wired charger via the USB interface 730. In some wireless charging embodiments, the charging management module 740 may receive wireless charging input through a wireless charging coil of the electronic device 700. While the charging management module 740 charges the battery 742, the power management module 741 may also supply power to the electronic device.
The power management module 741 is configured to connect the battery 742, the charging management module 740 and the processor 710. The power management module 741 receives input from the battery 742 and/or the charging management module 740, and provides power to the processor 710, the internal memory 721, the display 794, the camera 793, and the wireless communication module 760, among other things. The power management module 741 may also be configured to monitor parameters such as battery capacity, battery cycle count, and battery state of health (leakage, impedance). In some other embodiments, the power management module 741 may also be disposed in the processor 710. In other embodiments, the power management module 741 and the charging management module 740 may be disposed in the same device.
The wireless communication function of the electronic device 700 may be implemented by the antenna 1, the antenna 2, the mobile communication module 750, the wireless communication module 760, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 700 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 750 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the electronic device 700. the mobile communication module 750 may include at least one filter, a switch, a power amplifier, a low noise amplifier (L NA), etc. the mobile communication module 750 may receive an electromagnetic wave from the antenna 1, filter the received electromagnetic wave, amplify, etc., and transmit the processed electromagnetic wave to the modem processor for demodulation, the mobile communication module 750 may further amplify a signal modulated by the modem processor, and radiate the amplified electromagnetic wave via the antenna 1. in some embodiments, at least a portion of the functional modules of the mobile communication module 750 may be disposed in the processor 710. in some embodiments, at least a portion of the functional modules of the mobile communication module 750 may be disposed in the same device as at least a portion of the functional modules of the processor 710.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 770A, the receiver 770B, etc.) or displays an image or video through the display screen 794. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be separate from the processor 710, and may be located in the same device as the mobile communication module 750 or other functional modules.
The wireless communication module 760 may provide a solution for wireless communication applied to the electronic device 700, including wireless local area networks (W L AN) (e.g., wireless fidelity (Wi-Fi) network), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), infrared (infrared, IR), and the like, the wireless communication module 760 may be one or more devices integrating at least one communication processing module, the wireless communication module 760 may receive electromagnetic waves via the antenna 2, modulate the electromagnetic waves and filter the signals, and transmit the processed signals to the processor 710, the wireless communication module 760 may also receive signals to be transmitted from the processor 710, modulate the frequency, amplify the signals, and convert the signals into electromagnetic wave radiation via the antenna 2.
In some embodiments, antenna 1 of electronic device 700 is coupled to mobile communication module 750 and antenna 2 is coupled to wireless communication module 760 such that electronic device 700 may communicate with a network and other devices via wireless communication technologies, which may include Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), wideband code division multiple Access (wideband code division multiple Access, WCDMA), time division code division multiple Access (TD-SCDMA), Long term evolution (long term evolution, L TE), GNSS, W L AN, NFC, FM, and/or IR technologies, which may include Global positioning System (Global positioning System, Global Positioning System (GPS), Global System for Mobile navigation (SBAS), Beidou navigation System (SBS/satellite navigation System), Beidou navigation System (BDSOS/S), Beidou navigation System (QSa/S), or Beidou navigation System (QSa/S), etc.
The electronic device 700 implements display functions via the GPU, the display screen 794, and the application processor, among others. The GPU is a microprocessor for image processing, and is connected to a display screen 794 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 710 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 794 may include a liquid crystal display (L CD), organic light-emitting diodes (O L ED), active matrix organic light-emitting diodes (AMO L ED), flexible light-emitting diodes (F L ED), minified, Micro L ED, Micro-O L ED, quantum dot light-emitting diodes (Q L), and the like.
The electronic device 700 may implement a photographing function through the ISP, the camera 793, the video codec, the GPU, the display screen 794, the application processor, and the like.
The ISP is used to process the data fed back by the camera 793. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 793.
The camera 793 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, electronic device 700 may include 1 or N cameras 793, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 700 selects a frequency bin, the digital signal processor is used to perform a fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 700 may support one or more video codecs. In this way, electronic device 700 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent cognition of the electronic device 700 can be achieved through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 720 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 700. The external memory card communicates with the processor 710 through the external memory interface 720 to implement data storage functions. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 721 may be used to store computer-executable program code, including instructions. The internal memory 721 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, phone book, etc.) created during use of the electronic device 700, and the like. In addition, the internal memory 721 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 710 performs various functional applications and data processing of the electronic device 700 by executing instructions stored in the internal memory 721 and/or instructions stored in a memory provided in the processor.
Electronic device 700 may implement audio functions via audio module 770, speaker 770A, receiver 770B, microphone 770C, headset interface 770D, and an application processor, among other things. Such as music playing, recording, etc.
The audio module 770 is used to convert digital audio information into an analog audio signal output and also used to convert an analog audio input into a digital audio signal. The audio module 770 may also be used to encode and decode audio signals. In some embodiments, the audio module 770 may be disposed in the processor 710, or some functional modules of the audio module 770 may be disposed in the processor 710.
The speaker 770A, also referred to as a "horn", is used to convert electrical audio signals into acoustic signals. The electronic device 700 may listen to music or to a hands-free conversation through the speaker 770A.
Receiver 770B, also referred to as a "handset," is used to convert the electrical audio signals into acoustic signals. When the electronic device 700 receives a call or voice information, it can receive voice by placing the receiver 770B close to the ear of the person.
Microphone 770C, also known as a "microphone," is used to convert acoustic signals into electrical signals. When making a call or sending voice information, the user can input a voice signal to the microphone 770C by speaking into the mouth of the user near the microphone 770C. The electronic device 700 may be provided with at least one microphone 770C. In other embodiments, the electronic device 700 may be provided with two microphones 770C to achieve noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 700 may further include three, four, or more microphones 770C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 770D is used to connect a wired earphone. The headset interface 770D may be the USB interface 730, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 780A is used for sensing a pressure signal and converting the pressure signal into an electrical signal. In some embodiments, pressure sensor 780A may be disposed on display screen 794. Pressure sensor 780A may be of a wide variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 780A, the capacitance between the electrodes changes. The electronic device 700 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 794, the electronic apparatus 700 detects the intensity of the touch operation based on the pressure sensor 780A. The electronic apparatus 700 may also calculate the position of the touch from the detection signal of the pressure sensor 780A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 780B may be used to determine a motion gesture of the electronic device 700. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyroscope sensor 780B. The gyro sensor 780B may be used to photograph anti-shake. For example, when the shutter is pressed, the gyro sensor 780B detects the shake angle of the electronic device 700, calculates the distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 700 through a reverse motion, thereby achieving anti-shake. The gyro sensor 780B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 780C is used to measure air pressure. In some embodiments, electronic device 700 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 780C.
The magnetic sensor 780D includes a hall sensor. The electronic device 700 may detect the opening and closing of the flip holster using the magnetic sensor 780D. In some embodiments, when the electronic device 700 is a flip phone, the electronic device 700 may detect the opening and closing of the flip according to the magnetic sensor 780D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
Acceleration sensor 780E may detect the magnitude of acceleration of electronic device 700 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 700 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 780F for measuring distance. The electronic device 700 may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 700 may utilize range sensor 780F to range for fast focus.
The proximity light sensor 780G may include, for example, a light emitting diode (L ED) and a light detector, such as a photodiode, the light emitting diode may be an infrared light emitting diode, the electronic device 700 emits infrared light outward through the light emitting diode, the electronic device 700 uses the photodiode to detect infrared reflected light from nearby objects, when sufficient reflected light is detected, it may be determined that there is an object near the electronic device 700, when insufficient reflected light is detected, the electronic device 700 may determine that there is no object near the electronic device 700.
The ambient light sensor 780L is used for sensing the brightness of the ambient light, the electronic device 700 can adaptively adjust the brightness of the display screen 794 according to the sensed brightness of the ambient light, the ambient light sensor 780L can also be used for automatically adjusting the white balance during photographing, and the ambient light sensor 780L can also be matched with the proximity light sensor 780G to detect whether the electronic device 700 is in a pocket or not so as to prevent mistaken touch.
The fingerprint sensor 780H is used to collect a fingerprint. The electronic device 700 may utilize the collected fingerprint characteristics to implement fingerprint unlocking, access an application lock, fingerprint photographing, fingerprint answering, and the like.
The temperature sensor 780J is used to detect temperature. In some embodiments, electronic device 700 implements a temperature processing strategy using the temperature detected by temperature sensor 780J. For example, when the temperature reported by temperature sensor 780J exceeds a threshold, electronic device 700 performs a reduction in performance of a processor located near temperature sensor 780J to reduce power consumption to implement thermal protection. In other embodiments, the electronic device 700 heats the battery 742 when the temperature is below another threshold to avoid the low temperature causing the electronic device 700 to shut down abnormally. In other embodiments, electronic device 700 performs a boost on the output voltage of battery 742 when the temperature is below a further threshold to avoid abnormal shutdown due to low temperatures.
Touch sensor 780K is also referred to as a "touch device". Touch sensor 780K may be disposed on display screen 794, and touch sensor 780K and display screen 794 form a touch screen, also referred to as a "touch screen". The touch sensor 780K is used to detect a touch operation applied thereto or therearound. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through the display screen 794. In other embodiments, touch sensor 780K may be disposed on a surface of electronic device 700 at a different location than display screen 794.
Bone conduction sensor 780M may acquire a vibration signal. In some embodiments, bone conduction sensor 780M may acquire a vibration signal of a human vocal part vibrating a bone mass. The bone conduction sensor 780M may also contact the human body pulse to receive the blood pressure pulsation signal. In some embodiments, bone conduction sensor 780M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 770 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 780M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 780M, so as to realize a heart rate detection function.
The keys 790 include a power-on key, a volume key, and the like. Keys 790 may be mechanical keys. Or may be touch keys. The electronic device 700 may receive a key input, generate a key signal input related to user setting and function control of the electronic device 700.
The motor 791 may generate a vibration indication. The motor 791 may be used for incoming call vibration prompting as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 791 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 794. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 792 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 795 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic device 700 by being inserted into the SIM card interface 795 or being pulled out of the SIM card interface 795. The electronic device 700 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 795 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 795 may be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 795 may also be compatible with different types of SIM cards. The SIM card interface 795 may also be compatible with an external memory card. The electronic device 700 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 700 employs esims, namely: an embedded SIM card. The eSIM card may be embedded in the electronic device 700 and may not be separated from the electronic device 700.
It should be understood that the electronic device 700 shown in fig. 7 is capable of implementing various processes of the methods provided by the embodiments shown in fig. 2A-5A of the present application. The operations and/or functions of the respective modules in the electronic device 700 are respectively for implementing the corresponding flows in the above-described method embodiments. Specifically, reference may be made to the description of the method embodiment shown in fig. 2A to 5A of the present application, and a detailed description is appropriately omitted herein to avoid redundancy.
It should be understood that the processor 710 in the electronic device 700 shown in fig. 7 may be a system on chip SOC, and the processor 710 may include a Central Processing Unit (CPU), and may further include other types of processors, such as: an image Processing Unit (GPU), and the like.
In summary, various parts of the processors or processing units within the processor 710 may cooperate to implement the foregoing method flows, and corresponding software programs of the various parts of the processors or processing units may be stored in the internal memory 121.
The present application further provides an electronic device, where the device includes a storage medium and a central processing unit, where the storage medium may be a non-volatile storage medium, and a computer executable program is stored in the storage medium, and the central processing unit is connected to the non-volatile storage medium and executes the computer executable program to implement the method provided in the embodiment shown in fig. 2A to 5A of the present application.
In the above embodiments, the processors may include, for example, a CPU, a DSP, a microcontroller, or a digital Signal processor, and may further include a GPU, an embedded Neural Network Processor (NPU), and an Image Signal Processing (ISP), and the processors may further include necessary hardware accelerators or logic Processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program according to the technical solution of the present application. Further, the processor may have the functionality to operate one or more software programs, which may be stored in the storage medium.
The software system of the electronic device 700 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Referring to fig. 8, the embodiment of the present invention exemplarily illustrates a software structure of an electronic device 700 by taking an Android system with a layered architecture as an example.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. The embodiment of the application relates to an application program layer, an application program framework layer and a kernel layer in an Android system.
The AMS of the application framework layer comprises an Activity Stack (Activity Stack) task Stack Manager, and an external interface module is added to the AMS, and is used for calling all interface information in an Activity (Activity) state in the application program and calling a capture L eyes () according to each Activity handle to acquire an interface screenshot.
The following describes implementation of the interface switching method according to the embodiment of the present application with reference to the above hierarchy. In particular, the method comprises the following steps of,
l aucher of the application program layer monitors interface switching operation, when an input/output driver of the kernel layer detects a user input event, the user input event is reported to an event distributor of the application program architecture layer, the event distributor forwards the user input event to a hand-heat recognizer, the hand-heat recognizer recognizes a gesture of a user, the gesture event is reported to L aucher, L aucher determines that the gesture event is interface switching operation, an interface screenshot of an interface in an Activity state is obtained from an AMS newly-added external interface module, the AMS newly-added external interface module calls an Activity stack to obtain an Activity handle so as to obtain all interface information in the Activity state in the application program which is currently running, the interface screenshot is obtained according to each Activity call L ayers (), and the interface screenshot is fed back to L aucher to display the interface screenshot;
when the input/output driver of the kernel layer detects the user input event again, reporting the user input event to an event distributor of the application program framework layer, forwarding the user input event to a hand-heat recognizer by the event distributor, recognizing the gesture of the user by the hand-heat recognizer, reporting the gesture event to L auncher, determining that the gesture event is an interface screenshot selected by the user from displayed interface screenshots by L auncher, and calling startactivity from an Activity Stack task Stack manager of the application program framework layer to restore the display of a target interface.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the method provided by the embodiment shown in fig. 2A to 5A of the present application.
Embodiments of the present application further provide a computer program product, which includes a computer program and when the computer program runs on a computer, the computer executes the method provided in the embodiments shown in fig. 2A to fig. 5A of the present application.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. An interface switching method is characterized by comprising the following steps:
detecting interface switching operation of a user, and acquiring interface identifications of at least two interfaces corresponding to at least one target application program; the interface comprises an interface opened by the target application program; the target application is an opened application;
displaying the acquired interface identifications of the at least two interfaces in a first preset area;
and displaying an interface corresponding to the target interface identifier on a screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
2. The method of claim 1, wherein the detecting of the user interface switching operation comprises:
detecting interface switching operation of the user aiming at an application program to which a current display interface belongs;
the obtaining of the interface identifiers of the at least two interfaces corresponding to the at least one target application program includes:
and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
3. The method according to claim 1, wherein after detecting the interface switching operation of the user, the method comprises:
acquiring an application program identifier of an opened application program;
displaying the obtained application program identification in a second preset area;
and detecting that the user selects a target application program operation in the application program identification displayed in the second preset area.
4. The method of claim 3, wherein after detecting the user interface switching operation, further comprising:
acquiring the quantity information of opened interfaces in each opened application program;
the displaying the obtained application program identifier in a second preset area includes:
and correspondingly displaying the quantity information and the application program identification in the second preset area.
5. The method of claim 3 or 4, wherein the application identification comprises at least one of: application name, application icon, and interface screenshot of the application.
6. The method of any of claims 1 to 4, wherein the interface identification comprises: a full interface, a simplified interface, or an interface screenshot.
7. The method according to any one of claims 2 to 4, wherein the displaying the acquired interface identifiers of the at least two interfaces in a first preset area comprises:
splicing and displaying the interface identification in the first preset area according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposed manner according to the hierarchical order of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing and displaying, overlapping and displaying or paging the interface identification in the first sub-area according to the interface level sequence, and displaying the selected interface identification in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identifier in the first preset area according to the hierarchical sequence of the interface according to the sliding offset of the interface switching operation on the screen.
8. The method according to any one of claims 1, 3 or 4, wherein the displaying the acquired interface identifications of the at least two interfaces in a first preset area comprises:
splicing and displaying the interface identification in the first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposition manner according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or displaying the interface identification on the first sub-area sequentially according to the sequence of an application program and the hierarchical sequence of the interface in the application program, and displaying the selected interface identification in the first sub-area on the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in the first preset area according to the sliding offset of the interface switching operation on the screen and the sequence of the application programs and the hierarchical sequence of the interfaces in the application programs.
9. An interface switching device, characterized in that it is adapted to perform the method of any one of claims 1 to 8.
10. An electronic device, comprising:
a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the steps of:
detecting interface switching operation of a user, and acquiring interface identifications of at least two interfaces corresponding to at least one target application program; the interface comprises an interface opened by the target application program; the target application is an opened application;
displaying the acquired interface identifications of the at least two interfaces in a first preset area;
and displaying an interface corresponding to the target interface identifier on a screen according to the operation of selecting the target interface identifier from the interface identifiers displayed in the first preset area by the user.
11. The electronic device of claim 10, wherein the instructions, when executed by the device, cause the device to perform the step of detecting a user interface switch operation comprises:
detecting interface switching operation of the user aiming at an application program to which a current display interface belongs;
enabling the device to execute the step of acquiring the interface identifications of the at least two interfaces corresponding to the at least one target application program, including:
and acquiring interface identifications of at least two interfaces of the application program to which the current display interface belongs.
12. The electronic device of claim 10, wherein the instructions, when executed by the device, cause the device to perform the following steps after the step of detecting the user interface switch operation:
acquiring an application program identifier of an opened application program;
displaying the obtained application program identification in a second preset area;
and detecting that the user selects a target application program operation in the application program identification displayed in the second preset area.
13. The electronic device of claim 12, wherein the instructions, when executed by the device, cause the device to perform the following steps after the step of detecting the user interface switch operation:
acquiring the quantity information of opened interfaces in each opened application program;
the step of causing the device to execute the step of displaying the acquired application program identification in the second preset area comprises:
and correspondingly displaying the quantity information and the application program identification in the second preset area.
14. The electronic device according to any one of claims 11 to 13, wherein the instructions, when executed by the device, cause the device to perform the step of displaying the acquired interface identifiers of the at least two interfaces in a first preset area, includes:
splicing and displaying the interface identification in the first preset area according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposed manner according to the hierarchical order of the interface; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the hierarchical sequence of the interface; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing and displaying, overlapping and displaying or paging the interface identification in the first sub-area according to the interface level sequence, and displaying the selected interface identification in the first sub-area in the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identifier in the first preset area according to the hierarchical sequence of the interface according to the sliding offset of the interface switching operation on the screen.
15. The electronic device according to any one of claims 10, 12 or 13, wherein the instructions, when executed by the device, cause the device to perform the step of displaying the acquired interface identifications of the at least two interfaces in a first preset area, including:
splicing and displaying the interface identification in the first preset area according to the sequence of the application program and the hierarchical sequence of the interface in the application program in sequence; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a superposition manner according to the sequence of the application program and the level sequence of the interface in the application program; alternatively, the first and second electrodes may be,
displaying the interface identification in the first preset area in a paging mode according to the sequence of the application program and the hierarchical sequence of the interface in the application program; alternatively, the first and second electrodes may be,
dividing the first preset area into a first sub-area and a second sub-area, splicing, displaying, overlapping or displaying the interface identification on the first sub-area sequentially according to the sequence of an application program and the hierarchical sequence of the interface in the application program, and displaying the selected interface identification in the first sub-area on the second sub-area; alternatively, the first and second electrodes may be,
and displaying the interface identification in the first preset area according to the sliding offset of the interface switching operation on the screen and the sequence of the application programs and the hierarchical sequence of the interfaces in the application programs.
16. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1 to 8.
CN202010177866.5A 2020-03-13 2020-03-13 Interface switching method and device and electronic equipment Active CN111399742B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010177866.5A CN111399742B (en) 2020-03-13 Interface switching method and device and electronic equipment
PCT/CN2021/079793 WO2021180089A1 (en) 2020-03-13 2021-03-09 Interface switching method and apparatus and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010177866.5A CN111399742B (en) 2020-03-13 Interface switching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111399742A true CN111399742A (en) 2020-07-10
CN111399742B CN111399742B (en) 2024-04-26

Family

ID=

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148171A (en) * 2020-09-29 2020-12-29 维沃移动通信有限公司 Interface switching method and device and electronic equipment
CN112346699A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Volume control method and device for audio application, terminal and readable storage medium
CN112735393A (en) * 2020-12-29 2021-04-30 深港产学研基地(北京大学香港科技大学深圳研修院) AR/MR device voice recognition method, device and system
WO2021180089A1 (en) * 2020-03-13 2021-09-16 华为技术有限公司 Interface switching method and apparatus and electronic device
CN113426108A (en) * 2021-07-22 2021-09-24 网易(杭州)网络有限公司 Game interface identification processing method, device, equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100064261A1 (en) * 2008-09-09 2010-03-11 Microsoft Corporation Portable electronic device with relative gesture recognition mode
CN104793846A (en) * 2015-04-27 2015-07-22 小米科技有限责任公司 Displaying method and device for interface of application program
CN105354029A (en) * 2015-11-04 2016-02-24 广州酷狗计算机科技有限公司 Application control method and apparatus
CN106933468A (en) * 2017-03-13 2017-07-07 深圳市金立通信设备有限公司 A kind of user interface switching method and terminal
CN108804628A (en) * 2018-05-31 2018-11-13 维沃移动通信有限公司 A kind of image display method and terminal
US20180341397A1 (en) * 2017-05-27 2018-11-29 Beijing Xiaomi Mobile Software Co., Ltd. Methods and devices for searching and displaying information on a terminal
WO2019206158A1 (en) * 2018-04-28 2019-10-31 华为技术有限公司 Interface displaying method, apparatus, and device
CN110456951A (en) * 2019-06-26 2019-11-15 华为技术有限公司 A kind of application display method and electronic equipment
US20190369830A1 (en) * 2018-06-03 2019-12-05 Apple Inc. Devices and Methods for Interacting with an Application Switching User Interface
WO2020000445A1 (en) * 2018-06-29 2020-01-02 华为技术有限公司 Method for browsing folder of application, and electronic device
CN110716686A (en) * 2019-09-29 2020-01-21 维沃移动通信有限公司 Display content switching method and electronic equipment
CN110825301A (en) * 2019-09-25 2020-02-21 华为技术有限公司 Interface switching method and electronic equipment
WO2020037469A1 (en) * 2018-08-20 2020-02-27 华为技术有限公司 Interface display method and electronic device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100064261A1 (en) * 2008-09-09 2010-03-11 Microsoft Corporation Portable electronic device with relative gesture recognition mode
CN104793846A (en) * 2015-04-27 2015-07-22 小米科技有限责任公司 Displaying method and device for interface of application program
CN105354029A (en) * 2015-11-04 2016-02-24 广州酷狗计算机科技有限公司 Application control method and apparatus
CN106933468A (en) * 2017-03-13 2017-07-07 深圳市金立通信设备有限公司 A kind of user interface switching method and terminal
US20180341397A1 (en) * 2017-05-27 2018-11-29 Beijing Xiaomi Mobile Software Co., Ltd. Methods and devices for searching and displaying information on a terminal
WO2019206158A1 (en) * 2018-04-28 2019-10-31 华为技术有限公司 Interface displaying method, apparatus, and device
CN108804628A (en) * 2018-05-31 2018-11-13 维沃移动通信有限公司 A kind of image display method and terminal
US20190369830A1 (en) * 2018-06-03 2019-12-05 Apple Inc. Devices and Methods for Interacting with an Application Switching User Interface
WO2020000445A1 (en) * 2018-06-29 2020-01-02 华为技术有限公司 Method for browsing folder of application, and electronic device
WO2020037469A1 (en) * 2018-08-20 2020-02-27 华为技术有限公司 Interface display method and electronic device
CN110456951A (en) * 2019-06-26 2019-11-15 华为技术有限公司 A kind of application display method and electronic equipment
CN110825301A (en) * 2019-09-25 2020-02-21 华为技术有限公司 Interface switching method and electronic equipment
CN110716686A (en) * 2019-09-29 2020-01-21 维沃移动通信有限公司 Display content switching method and electronic equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021180089A1 (en) * 2020-03-13 2021-09-16 华为技术有限公司 Interface switching method and apparatus and electronic device
CN112148171A (en) * 2020-09-29 2020-12-29 维沃移动通信有限公司 Interface switching method and device and electronic equipment
CN112148171B (en) * 2020-09-29 2022-07-22 维沃移动通信有限公司 Interface switching method and device and electronic equipment
CN112346699A (en) * 2020-10-29 2021-02-09 深圳Tcl新技术有限公司 Volume control method and device for audio application, terminal and readable storage medium
CN112735393A (en) * 2020-12-29 2021-04-30 深港产学研基地(北京大学香港科技大学深圳研修院) AR/MR device voice recognition method, device and system
CN112735393B (en) * 2020-12-29 2023-11-24 深港产学研基地(北京大学香港科技大学深圳研修院) Method, device and system for speech recognition of AR/MR equipment
CN113426108A (en) * 2021-07-22 2021-09-24 网易(杭州)网络有限公司 Game interface identification processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2021180089A1 (en) 2021-09-16

Similar Documents

Publication Publication Date Title
CN112231025B (en) UI component display method and electronic equipment
CN110506416B (en) Method for switching camera by terminal and terminal
CN111095723B (en) Wireless charging method and electronic equipment
CN114915726A (en) Shooting method and electronic equipment
CN114679537A (en) Shooting method and terminal
CN111443884A (en) Screen projection method and device and electronic equipment
CN112887583B (en) Shooting method and electronic equipment
CN115344173A (en) Operation method for split screen display and electronic equipment
CN110456938A (en) A kind of the false-touch prevention method and electronic equipment of Curved screen
CN112751954B (en) Operation prompting method and electronic equipment
US20220179827A1 (en) File Sharing Method of Mobile Terminal and Device
CN110248037B (en) Identity document scanning method and device
CN111371849A (en) Data processing method and electronic equipment
CN114422340A (en) Log reporting method, electronic device and storage medium
CN110138999B (en) Certificate scanning method and device for mobile terminal
CN114500901A (en) Double-scene video recording method and device and electronic equipment
CN114222020B (en) Position relation identification method and device and readable storage medium
US11816494B2 (en) Foreground element display method and electronic device
WO2021180089A1 (en) Interface switching method and apparatus and electronic device
CN110609650A (en) Application state switching method and terminal equipment
WO2022062985A1 (en) Method and apparatus for adding special effect in video, and terminal device
CN113625865B (en) Screen state control method and electronic equipment
CN114283195A (en) Method for generating dynamic image, electronic device and readable storage medium
CN112527220B (en) Electronic equipment display method and electronic equipment
CN111399742B (en) Interface switching method and device and electronic equipment

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