CN107678618B - Interface switching method and device, computer device and computer readable storage medium - Google Patents

Interface switching method and device, computer device and computer readable storage medium Download PDF

Info

Publication number
CN107678618B
CN107678618B CN201710842751.1A CN201710842751A CN107678618B CN 107678618 B CN107678618 B CN 107678618B CN 201710842751 A CN201710842751 A CN 201710842751A CN 107678618 B CN107678618 B CN 107678618B
Authority
CN
China
Prior art keywords
application
interface
type
return
animation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710842751.1A
Other languages
Chinese (zh)
Other versions
CN107678618A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710842751.1A priority Critical patent/CN107678618B/en
Publication of CN107678618A publication Critical patent/CN107678618A/en
Application granted granted Critical
Publication of CN107678618B publication Critical patent/CN107678618B/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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

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

Abstract

The invention provides an interface switching method, which is applied to a terminal provided with an application, and comprises the following steps: when a return instruction for returning to a preset interface from the interface of the application is received, confirming the type of the application; wherein the types of applications include a main application and a separate application; playing corresponding return animation according to the type of the application; and displaying the preset interface. The invention also provides an interface switching device, a computer device and a computer readable storage medium. The method and the device can play the corresponding return animation according to the type of the application so as to improve the user experience.

Description

Interface switching method and device, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of electronics, in particular to an interface switching method, an interface switching device, a computer device and a readable storage medium.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims and in the detailed description. The description herein is not admitted to be prior art by inclusion in this section.
At present, when a main application and a separate application installed on terminals such as a mobile phone return to a desktop, the same set of return animation is adopted, namely, when returning, the same return animation is adopted for returning after a return instruction is received regardless of the currently opened main application or separate application, and user experience is poor.
Disclosure of Invention
In view of this, it is desirable to provide an interface switching method, an interface switching apparatus, a computer apparatus and a computer readable storage medium, which can play a corresponding return animation according to the type of an application, so as to improve user experience.
The invention provides an interface switching method, which is applied to a terminal provided with an application, and comprises the following steps:
when a return instruction for returning to a preset interface from the interface of the application is received, confirming the type of the application; wherein the types of applications include a main application and a separate application;
polling application icons on the preset interface to search application icons corresponding to the applications;
when an application icon corresponding to the application is searched in the application icons on the preset interface, judging whether the application icon corresponding to the application is consistent with Intent information of the application;
if the application icon corresponding to the application is consistent with the Intent information of the application, playing a corresponding return animation according to the type of the application;
and displaying the preset interface.
Further, the playing the corresponding return animation according to the type of the application includes:
if the type of the application is a main application, playing a first return animation corresponding to the main application;
if the type of the application is the split application, playing a second return animation corresponding to the split application; wherein the first return animation is different from the second return animation.
Further, the confirming the type of the application includes:
and confirming the type of the application according to the Intent information of the application.
Further, after the confirming the type of the application, the method further comprises:
polling application icons on the preset interface to search application icons corresponding to the applications;
when an application icon corresponding to the application is searched in the application icons on the preset interface, judging whether the application icon corresponding to the application is consistent with Intent information of the application;
and if the application icon corresponding to the application is consistent with the Intent information of the application, executing the step of playing the corresponding return animation according to the type of the application.
Further, the return animation includes an animation of returning to a display area where an application icon of the application is located.
Further, the preset interface comprises at least one of the following: the desktop and the interface displaying the application icons of the applications.
The invention also provides an interface switching device, which is applied to a terminal provided with an application, and the device comprises:
the confirmation module is used for confirming the type of the application when a return instruction for returning to a preset interface from the interface of the application is received; wherein the types of applications include a main application and a separate application;
the searching module is used for polling and searching the application icons on the preset interface after the type of the application is confirmed so as to search the application icons corresponding to the application;
the judging module is used for judging whether the application icon corresponding to the application is searched in the application icons on the preset interface; when the application icon corresponding to the application is searched in the application icons on the preset interface, the judging module further judges whether the application icon corresponding to the application is consistent with the Intent information of the application;
the playing module is used for playing the corresponding return animation according to the type of the application when the application icon corresponding to the application is consistent with the Intent information of the application;
and the interface switching module is used for controlling and displaying the preset interface.
Further, the playing module is further configured to:
when the type of the application is a main application, playing a first return animation corresponding to the main application;
when the type of the application is the split application, playing a second return animation corresponding to the split application; wherein the first return animation is different from the second return animation.
The invention also provides a computer arrangement comprising a processor for implementing the steps of the interface switching method as described above when executing a computer program stored in a memory.
The invention also relates to a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the interface switching method as described above.
The interface switching method, the interface switching device, the computer device and the computer readable storage medium are applied to a terminal provided with an application, and when a return instruction for returning to a preset interface from an interface of the application is received, the type of the application is confirmed; wherein the types of applications include a main application and a separate application; polling application icons on the preset interface to search application icons corresponding to the applications; when an application icon corresponding to the application is searched in the application icons on the preset interface, judging whether the application icon corresponding to the application is consistent with Intent information of the application; if the application icon corresponding to the application is consistent with the Intent information of the application, playing a corresponding return animation according to the type of the application; and displaying the preset interface. The method and the device can play the corresponding return animation according to the type of the application so as to improve the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an interface switching method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of an interface switching method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an interface switching method according to a third embodiment of the present invention;
fig. 4 is an exemplary structural diagram of a terminal of the present invention;
fig. 5 is an exemplary functional block diagram of the interface switching apparatus of the present invention.
Description of the main elements
Figure GDA0002250008740000041
Figure GDA0002250008740000051
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Fig. 1 is a schematic flowchart of an interface switching method according to a first embodiment of the present invention, and is applied to a terminal installed with an application. As shown in fig. 1, the terminal control method may include the steps of:
s101: when a return instruction for returning to a preset interface from an application interface is received, confirming the type of the application; wherein the types of applications include a main application and a separate application.
The terminal in this embodiment may be a terminal capable of running application software, such as a mobile phone, a tablet computer, a palm computer, a notebook computer, a desktop computer, and a vehicle-mounted device, and is not limited herein. The application may be an application program such as a browser, news, social contact, multimedia, game, and the like, for example, an application program that provides application content for a user, such as WeChat, today's headline, microblog, Tencent news, Newcastle news, Web-cloud music, and the like, without limitation.
The terminal has an application self-distinguishing function, which can be a function carried by a terminal system or an application self-distinguishing function realized by a third-party software program which is installed on the terminal and can realize self-distinguishing application. For example, the application differentiation function can be realized by decompiling and modifying an installation package (APK) file of the application and then installing the modified APK file to realize the installation of the same application with different versions; the application of the split function can be realized by applying a simulated user space and a dynamic loading technology.
After the terminal performs the individualization on the application, an application of the created individualization application may be referred to as a master application, an application obtained after the individualization is created may be referred to as an individualization application, the master application and the individualization application may be installed under the same user or different users, for example, the application may be implemented based on a multi-user mechanism in the terminal, and specifically may be implemented by installing the master application under a master user and installing the individualization application under a slave user, where the multi-user mechanism specifically may include a multi-user mechanism supported by an operating system in the smart terminal, such as a multi-user mechanism of an android system and a multi-user mechanism of a mobile phone window operating system.
The terminal may be provided with a return key, where the return key may be a physical key or a virtual key arranged on the terminal, and the return key may return the currently applied interface to a preset interface, where the preset interface may include, but is not limited to: for example, when the application interface is displayed on the desktop, a user presses a HOME icon key arranged on the terminal, and may receive a return instruction from the application interface to a preset interface, and may return to the desktop or return to the interface on which the application icon of the application is displayed. The desktop may be a desktop including an application icon of the application, or may be a desktop not including an application icon of the application.
The confirming of the type of the application may confirm the type of the application according to Intent information of the application. An Intent mechanism is provided in a terminal system to assist interaction and communication among applications, wherein Intent is responsible for describing actions, action related data and additional data of one operation in the applications, and the terminal is responsible for finding a corresponding component according to the description of Intent, transmitting Intent to a called component and completing calling of the component. Intent can be used not only between applications, but also for interactions between activities/services within applications. Accordingly, Intent may be understood as an intermediary in the communication between different components that specifically provides the information about the components' calls to each other. Intent has several attributes: action (Action), Data (Data), Category (Category), Type (Type), component (component), and extension (Extra), so it can be determined whether the application is a main application or a separate application through the application's Intent information.
It is understood that after confirming the type of the application, a flag bit may be added to the application to facilitate identification of the type of the application.
S102: and playing the corresponding return animation according to the type of the application.
The user can customize the animation in the interface by calling the system interface overrideppendingtransition. The return animation may be an animation that returns to a display area where the application icon of the application is located, or an animation with different display effects such as a gradual change animation, a fade-out animation, a slide-out animation, and a flip animation, for example, when the type of the application is a main application, the return animation is an excessive animation that returns to the display area where the application icon of the main application is located, and when the type of the application is a split application, the return animation is an excessive animation that returns to the display area where the application icon of the split application is located.
The icon of the body-divided application can be a shortcut icon customized by the body-divided application, the shortcut icon customized by the body-divided application can be the same as or different from the main application icon, and in order to distinguish the main application icon from the shortcut icon customized by the body-divided application, a distinguishing mark can be arranged on the shortcut icon customized by the body-divided application.
At present, in the split application, the main application and the split application use the same set of return animation, which is not good in experience, the embodiment plays the corresponding return animation according to the type of the application, the main application plays the return animation corresponding to the main application, the split application plays the return animation corresponding to the split application, the return animations of the main application and the split application can set the animation when the corresponding interfaces are switched by calling the system interface overridepinding transition respectively, so that the experience effect can be improved well, when the interface of the application is screen-displayed, in particular, the user may not know whether the interface of the currently displayed application is the main application or the separate application, in the process of returning to the preset interface, the corresponding return animation is played according to the type of the application, so that the user can know whether the current return is the main application or the separate application, and the subsequent operation of the user is facilitated.
For example, when a user enters an interface of a main application after the main application is opened, after the interface is operated for a period of time, the user may forget whether the currently displayed interface is the interface of the main application or the interface of the split application, and in the process of returning from the interface of the current main application to a preset interface, a return animation corresponding to the main application is played, so that the user can quickly know that the currently returned interface is the main application, and if the user needs to open the split application again to enter another account, the user can quickly click an icon of the split application, and the user cannot mistakenly click the icon of the main application and then quit clicking the icon of the split application again, thereby reducing troubles caused by the fact.
S103: and displaying the preset interface.
According to the interface switching method provided by the embodiment, when a return instruction for returning to a preset interface from an interface of the application is received, the type of the application is confirmed; wherein the types of applications include a main application and a separate application; and displaying the preset interface after playing the corresponding return animation according to the type of the application. When the interface of the application returns to the preset interface, the corresponding return animation is played according to the type of the application, so that the user experience can be improved, and the currently returned application can be conveniently known to be the main application or the separate application.
Fig. 2 is a schematic flowchart of a terminal control method according to a second embodiment of the present invention. The second embodiment is mainly different from the first embodiment in that the second embodiment includes a detailed step of playing a corresponding return animation according to the type of the application. It should be noted that, within the scope of the spirit or the basic features of the present invention, each specific solution applicable to the first embodiment may also be correspondingly applicable to the second embodiment, and for the sake of brevity and avoidance of repetition, the detailed description thereof is omitted here.
The specific method steps of the embodiment are as follows:
s201: and receiving a return instruction for returning to the preset interface from the interface of the application.
The types of applications include a main application and an avatar application.
S202: and judging whether the type of the application is a main application or a separate application, if the type of the application is the main application, executing the step S203, and if the type of the application is the separate application, executing the step S204.
S203: a first return animation is played.
The system can play a first return animation corresponding to the main application by calling the system interface overrideppendingtransition to set the animation when the interface of the main application is switched to a preset interface, wherein the first return animation can be a return animation with different display effects, such as a gradual change animation, a fade-out animation, a slide-out animation, a flip animation and the like.
It will be appreciated that the first return animation can be an animation of a display area where an application icon of the host application is located.
Step S205 is performed after the first return animation is played.
S204: a second return animation different from the first return animation is played.
The system may play a second return animation corresponding to the host application by calling the system interface overrideppendingtransition to set an animation when the interface of the host application is switched to a preset interface, where the second return animation may be a return animation having a different effect from the first animation in step S203, such as a fade-out animation, a slide-out animation, a flip animation, and the like.
For example, when the type of application is a main application, the first return animation is a fade-out animation, and when the type of application is a split application, the second return animation is a fade-in animation.
It is to be appreciated that the second return animation can be an animation of returning to the display area of the avatar application where the application icon is located.
Step S205 is performed after the second return animation is played.
S205: and displaying the preset interface.
The implementation method has the advantages of the first implementation method, and further comprises the detailed step of playing the corresponding return animation according to the type of the application, and a return instruction for returning to a preset interface from the interface of the application is received; judging whether the type of the application is a main application or a split application, if the type of the application is the main application, playing a first return animation corresponding to the main application and then displaying the preset interface, and if the type of the application is the split application, playing a second return animation corresponding to the split application and then displaying the preset interface; wherein the first return animation is different from the second return animation. The embodiment plays different return animations according to different applications, and further improves the experience of the return animations.
Fig. 3 is a schematic flowchart of a terminal control method according to a third embodiment of the present invention. The third embodiment is mainly different from the first embodiment in that the third embodiment further includes detailed steps of searching for an application icon corresponding to an application, determining whether the application icon corresponding to the application is consistent with Intent information of the application, and the like. It should be noted that, within the scope of the spirit or the basic features of the present invention, each specific solution applicable to the first embodiment may also be correspondingly applicable to the third embodiment, and for the sake of brevity and avoidance of repetition, the detailed description thereof is omitted here.
The specific method steps of the embodiment are as follows:
s301: when a return instruction for returning to a preset interface from an application interface is received, confirming the type of the application; wherein the types of applications include a main application and a separate application.
S302: and polling to search the application icon on the preset interface to search the application icon corresponding to the application.
At least one application icon is displayed on the preset interface, and the corresponding application interface can be accessed by clicking the application icon.
For example, the main application corresponds to a main application icon, the body corresponds to a body application icon, the main application icon may be an application icon when the body application is not created by the application, and the body application icon may be a customized application icon after the body is created.
The application icon corresponding to the application may include an application icon corresponding to a main application and an application icon corresponding to an individual application.
S303: determining whether an application icon corresponding to the application is searched in the application icons on the preset interface, and if the application icon corresponding to the application is searched, executing step S308: if the application icon corresponding to the application is not found, step S304 is executed.
S304: and searching a display interface comprising an application icon corresponding to the application.
S305: judging whether the application icon corresponding to the application in the display interface is consistent with the Intent information of the application, if so, executing the step S306, and if not, returning to the step S304.
S306: and playing a corresponding return animation according to the type of the application, wherein the return animation comprises an animation returned to the display area where the application icon of the application is located.
For example, if the type of the application is a home application, the return animation is an animation of returning to the display area where the application icon of the home application is located, and if the type of the application is an avatar application, the return animation is an animation of returning to the display area where the application icon of the avatar application is located.
S307: and displaying the display interface.
S308: and judging whether the application icon corresponding to the application is consistent with the Intent information of the application, if so, executing the step S309, and if not, executing the step S302.
S309: and playing a corresponding return animation according to the type of the application, wherein the return animation comprises an animation returned to the display area where the application icon of the application is located.
For example, if the type of the application is a main application, the return animation is an excessive animation of returning to the display area where the application icon of the main application is located, and if the type of the application is a split application, the return animation is an excessive animation of returning to the display area where the application icon of the split application is located.
S310: and displaying the preset interface.
The implementation method has the advantages of the first implementation method, and further comprises the detailed steps of searching for an application icon corresponding to the application, judging whether the application icon corresponding to the application is consistent with the Intent information of the application, and the like, wherein when a return instruction for returning to a preset interface from the interface of the application is received, the type of the application is confirmed; wherein the types of applications include a main application and a separate application; polling and searching the application icons on the preset interface to search the application icons corresponding to the applications, judging whether the application icons corresponding to the applications are consistent with the Intent information of the applications or not when the application icons corresponding to the applications are searched in the application icons on the preset interface, and if the application icons corresponding to the applications are consistent with the Intent information of the applications, playing corresponding return animations according to the types of the applications and then displaying the preset interface. According to the embodiment, when the application icon corresponding to the application is consistent with the Intent information of the application, the return animation corresponding to the type of the application is played, and the visual effect of the return animation is improved.
Fig. 4 is a block diagram of an embodiment of a terminal 1 provided by the present invention, as shown in fig. 4, the terminal may apply the foregoing embodiments, and the terminal 1 provided by the present invention is described below, where the terminal 1 may include an interface switching device 100, the terminal 1 may further include a processor 10, a storage device 20, a display device 30, and a computer program (instruction) stored in the storage device 20 and operable on the processor 10, for example, an interface switching program, and the display device 30 may be configured to display an interface of an application (for example, a preset interface, including a desktop, an interface on which an application icon of the application is displayed), a return animation, and the like.
The interface switching device 100 may be configured to, when a return instruction to return to a preset interface from the interface of the application is received, determine the type of the application; wherein the types of applications include a main application and a separate application; and displaying the preset interface after playing the corresponding return animation according to the type of the application. When the application interface returns to the preset interface, the corresponding return animation is played according to the type of the application, so that the user experience can be improved, and the currently returned application can be conveniently known to be the main application or the separate application.
The interface switching device 100 may be further configured to receive a return instruction from the application interface to return to a preset interface; judging whether the type of the application is a main application or a split application, if the type of the application is the main application, playing a first return animation corresponding to the main application and then displaying the preset interface, and if the type of the application is the split application, playing a second return animation corresponding to the split application and then displaying the preset interface; wherein the first return animation is different from the second return animation. The embodiment plays different return animations according to different applications, and further improves the experience of the return animations.
The interface switching device 100 may be further configured to, when a return instruction to return to a preset interface from the interface of the application is received, determine the type of the application; wherein the types of applications include a main application and a separate application; polling and searching the application icons on the preset interface to search the application icons corresponding to the applications, judging whether the application icons corresponding to the applications are consistent with the Intent information of the applications or not when the application icons corresponding to the applications are searched in the application icons on the preset interface, and if the application icons corresponding to the applications are consistent with the Intent information of the applications, playing corresponding return animations according to the types of the applications and then displaying the preset interface. According to the embodiment, when the application icon corresponding to the application is consistent with the Intent information of the application, the return animation corresponding to the type of the application is played, and the visual effect of the return animation is improved.
The processor 10, when executing the computer program, implements the steps in the interface switching method in the above embodiments, such as steps S101 to S103 shown in fig. 1. Alternatively, the processor 10 realizes the functions of the respective modules/units when executing the computer program.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the storage device 20 and executed by the processor to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program in the terminal 1. For example, the interface switching device 100 may include a confirmation module 11, a playing module 12, and a display control module 13, as shown in fig. 5, the specific functions of each module are as follows:
the confirmation module 11 is configured to confirm the type of the application when receiving a return instruction to return to a preset interface from an interface of the application; wherein the types of applications include a main application and a separate application. The preset interface includes, but is not limited to, at least one of the following: the desktop and the interface displaying the application icons of the applications.
The confirmation module 11 is further configured to confirm the type of the application according to the Intent information of the application when a return instruction to return to a preset interface from the interface of the application is received.
The playing module 12 may be configured to play the corresponding return animation according to the type of the application. The return animation may include an animation of returning to a display area of the application where the application icon of the application is located.
The display control module 13 may be configured to control display of the preset interface.
Further, the interface switching apparatus 100 may further include a receiving module 14 and a determining module 15.
The receiving module 14 may be configured to receive a return instruction to return to a preset interface from the interface of the application.
The determining module 15 may be configured to determine whether the type of the application is a main application or a separate application.
The playing module 12 is further configured to play a first return animation corresponding to the primary application when the type of the application is the primary application; when the type of the application is the split application, playing a second return animation corresponding to the split application; wherein the first return animation is different from the second return animation.
Further, the interface switching apparatus 100 may further include a search module 16 and a search module 17.
The searching module 16 may be configured to, after determining the type of the application when receiving a return instruction to return to a preset interface from the interface of the application, poll and search an application icon on the preset interface to search for an application icon corresponding to the application.
The determining module 15 may be further configured to determine whether an application icon corresponding to the application is searched in the application icons on the preset interface.
The searching module 17 may be configured to search for a display interface including the application icon corresponding to the application when the application icon corresponding to the application is not searched for in the application icons on the preset interface.
The determining module 15 may be further configured to determine whether an application icon corresponding to the application in the display interface is consistent with Intent information of the application.
The playing module 12 may be further configured to play a corresponding return animation according to the type of the application when the application icon corresponding to the application in the display interface is consistent with the Intent information of the application, where the return animation includes an animation returned to the display area where the application icon of the application is located.
The display control module 13 may also be configured to control display of the display interface.
The determining module 15 is further configured to determine whether the application icon corresponding to the application is consistent with the Intent information of the application when the application icon corresponding to the application is searched for in the application icons on the preset interface.
The playing module 12 may be further configured to play a corresponding return animation according to the type of the application when the application icon corresponding to the application is consistent with the Intent information of the application, where the return animation includes an animation returned to the display area where the application icon of the application is located.
The terminal 1 may be a computing device such as a PC server and a cloud server. It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the terminal 1 and does not constitute a limitation of the terminal 1, and that it may comprise more or less components than shown, or some components in combination, or different components, e.g. the terminal 1 may further comprise input output devices, network access devices, buses, etc.
The Processor 10 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), and an Application Specific Integrated circuit (Application Specific Integrated circuit)
An ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, and the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, said processor being the control center of said terminal 1, the various parts of the whole terminal 1 being connected by means of various interfaces and lines.
The storage device 20 may be used to store the computer programs and/or modules, and the processor 10 implements various functions of the server by running or executing the computer programs and/or modules stored in the storage device 20 and calling data stored in the storage device 20. The storage device 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. In addition, the storage device 20 may include a high speed random access memory device, and may also include a non-volatile storage device such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one piece of magnetic disk storage, a Flash memory device, or other volatile solid state storage.
The display device 30 may display a User Interface (UI) or a Graphic User Interface (GUI) such as a preset interface (including a desktop, an interface displaying application icons of the applications, and a return animation, etc., and the display device 30 may also serve as an input device and an output device, and the display device may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, etc.
The integrated modules/units of the terminal 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the several embodiments provided in the present invention, it should be understood that the method and apparatus may also be implemented in other manners, the above-described apparatus embodiments are only illustrative, the division of the modules is only one logical function division, and there may be other division manners when implemented.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several of the means recited in the apparatus claims may also be embodied by one and the same means or system in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (9)

1. An interface switching method is applied to a terminal provided with an application, and is characterized by comprising the following steps:
when a return instruction for returning to a preset interface from the interface of the application is received, confirming the type of the application; wherein the types of applications include a main application and a separate application;
polling application icons on the preset interface to search application icons corresponding to the applications;
when an application icon corresponding to the application is searched in the application icons on the preset interface, judging whether the application icon corresponding to the application is consistent with Intent information of the application;
if the application icon corresponding to the application is consistent with the Intent information of the application, playing a corresponding return animation according to the type of the application;
and displaying the preset interface.
2. The interface switching method according to claim 1, wherein playing the corresponding return animation according to the type of the application comprises:
if the type of the application is a main application, playing a first return animation corresponding to the main application;
if the type of the application is the split application, playing a second return animation corresponding to the split application; wherein the first return animation is different from the second return animation.
3. The interface switching method according to claim 1 or 2, wherein the confirming the type of the application comprises:
and confirming the type of the application according to the Intent information of the application.
4. The interface switching method according to claim 1 or 2, wherein the return animation includes an animation that returns to a display area where an application icon of the application is located.
5. The interface switching method according to claim 1, wherein the preset interface includes at least one of: the desktop and the interface displaying the application icons of the applications.
6. An interface switching device is applied to a terminal provided with an application, and is characterized by comprising:
the confirmation module is used for confirming the type of the application when a return instruction for returning to a preset interface from the interface of the application is received; wherein the types of applications include a main application and a separate application;
the searching module is used for polling and searching the application icons on the preset interface after the type of the application is confirmed so as to search the application icons corresponding to the application;
the judging module is used for judging whether the application icon corresponding to the application is searched in the application icons on the preset interface; when the application icon corresponding to the application is searched in the application icons on the preset interface, the judging module further judges whether the application icon corresponding to the application is consistent with the Intent information of the application;
the playing module is used for playing the corresponding return animation according to the type of the application when the application icon corresponding to the application is consistent with the Intent information of the application;
and the interface switching module is used for controlling and displaying the preset interface.
7. The interface switching apparatus according to claim 6, wherein the playing module is further configured to:
when the type of the application is a main application, playing a first return animation corresponding to the main application;
when the type of the application is the split application, playing a second return animation corresponding to the split application; wherein the first return animation is different from the second return animation.
8. A computer arrangement, characterized in that the computer arrangement comprises a processor for implementing the steps of the interface switching method according to any one of claims 1-5 when executing a computer program stored in a memory.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the interface switching method according to any one of claims 1 to 5.
CN201710842751.1A 2017-09-18 2017-09-18 Interface switching method and device, computer device and computer readable storage medium Active CN107678618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710842751.1A CN107678618B (en) 2017-09-18 2017-09-18 Interface switching method and device, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710842751.1A CN107678618B (en) 2017-09-18 2017-09-18 Interface switching method and device, computer device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107678618A CN107678618A (en) 2018-02-09
CN107678618B true CN107678618B (en) 2020-05-19

Family

ID=61135996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710842751.1A Active CN107678618B (en) 2017-09-18 2017-09-18 Interface switching method and device, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107678618B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116204088A (en) * 2018-03-26 2023-06-02 华为技术有限公司 Control method and electronic equipment
CN114610197A (en) * 2018-04-19 2022-06-10 华为技术有限公司 Display method and terminal during application quitting
CN109683800A (en) * 2018-12-30 2019-04-26 努比亚技术有限公司 A kind of interaction control method, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736912A (en) * 2010-12-13 2012-10-17 微软公司 Coordination of animations across multiple applications or processes
CN104657253A (en) * 2015-02-13 2015-05-27 青岛海信移动通信技术股份有限公司 Displaying visual cue method and mobile terminal
CN105183296A (en) * 2015-09-23 2015-12-23 腾讯科技(深圳)有限公司 Interactive interface display method and device
CN106775983A (en) * 2016-12-23 2017-05-31 成都中科创达软件有限公司 A kind of application scenarios changing method, system and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736912A (en) * 2010-12-13 2012-10-17 微软公司 Coordination of animations across multiple applications or processes
CN104657253A (en) * 2015-02-13 2015-05-27 青岛海信移动通信技术股份有限公司 Displaying visual cue method and mobile terminal
CN105183296A (en) * 2015-09-23 2015-12-23 腾讯科技(深圳)有限公司 Interactive interface display method and device
CN106775983A (en) * 2016-12-23 2017-05-31 成都中科创达软件有限公司 A kind of application scenarios changing method, system and mobile terminal

Also Published As

Publication number Publication date
CN107678618A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN107889070B (en) Picture processing method, device, terminal and computer readable storage medium
US10637804B2 (en) User terminal apparatus, communication system, and method of controlling user terminal apparatus which support a messenger service with additional functionality
TWI453603B (en) Platform independent information handling system, communication method, and computer program product thereof
CN104395882A (en) Creation and context-aware presentation of customized emoticon item sets
CN107678618B (en) Interface switching method and device, computer device and computer readable storage medium
KR20160138424A (en) Flexible schema for language model customization
CN110765395B (en) Method and equipment for providing novel information
CN109271211B (en) Method, device, equipment and medium for separating application program
CN110865734B (en) Target object display method and device, electronic equipment and computer readable medium
CN110336733B (en) Method and equipment for presenting emoticon
CN105376719A (en) Information pushing method and device
CN108449255B (en) Comment interaction method and equipment, client device and electronic equipment
CN112214706A (en) Information publishing method and device, electronic equipment and storage medium
CN112817498A (en) Application authority management method, device, storage medium and terminal
WO2024109786A1 (en) Instant messaging session information processing method and apparatus, and electronic device
CN107168738A (en) A kind of management method of application tool, device, equipment and storage medium
CN111580883B (en) Application program starting method, device, computer system and medium
CN111291090B (en) Method, device, electronic equipment and medium for acquiring time period based on time control
CN110765258B (en) Method and equipment for providing electronic books
CN110069186B (en) Method and equipment for displaying operation interface of application
CN109683726B (en) Character input method, character input device, electronic equipment and storage medium
CN111666195A (en) Method and apparatus for providing video information or image information
CN110780913A (en) Cross-machine type differential upgrading method and system, storage medium and electronic equipment
CN112291602B (en) Video playing method, electronic equipment and storage medium
CN113950043B (en) Communication method, device, storage medium and terminal

Legal Events

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