CN113805962B - Application page display method and device and electronic equipment - Google Patents

Application page display method and device and electronic equipment Download PDF

Info

Publication number
CN113805962B
CN113805962B CN202111014414.6A CN202111014414A CN113805962B CN 113805962 B CN113805962 B CN 113805962B CN 202111014414 A CN202111014414 A CN 202111014414A CN 113805962 B CN113805962 B CN 113805962B
Authority
CN
China
Prior art keywords
page
application
component
active component
display content
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
CN202111014414.6A
Other languages
Chinese (zh)
Other versions
CN113805962A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202111014414.6A priority Critical patent/CN113805962B/en
Publication of CN113805962A publication Critical patent/CN113805962A/en
Application granted granted Critical
Publication of CN113805962B publication Critical patent/CN113805962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The disclosure provides a display method and device of an application page and electronic equipment, and relates to the technical field of Internet, in particular to the technical field of display. The specific implementation scheme is as follows: and receiving a starting instruction for the first control in the first page, and starting the second application, wherein the first page is a display page corresponding to the first application, and controlling the display content to be switched from the first page to be displayed in the second page corresponding to the second application, so that an active component is created in a task stack corresponding to the first page, and further receiving a return instruction for the second control in the second page, and controlling the display content to be switched from the second page to the first page based on the active component. The method and the device at least solve the problem of long time consumption for starting the application page in the prior art.

Description

Application page display method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a display method and device of an application page and electronic equipment.
Background
With the development of the mobile internet, people open a large number of application pages every day, wherein the application interface can be displayed based on a platform of an Android (Android, an operating system with free and open source code) system. The application pages are carried by the active component and started in sequence, for example, application page A- > application page B- > application page C, and the sequence in return is last-in first-out, namely, the application page C is first exited, then the application page B is exited, and finally the application page A is exited.
However, in the prior art, when the application page B and the application page C are exited, the pages, views and active components of the application page B and the application page C are completely destroyed, and if the application page B and the application page C are re-entered at this time, re-initialization and cold start are required, and the cold start is very time-consuming, which easily causes the problem of poor user experience.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The disclosure provides a display method and device of an application page and electronic equipment, and aims to at least solve the problem of long time consumption for starting the application page in the prior art.
According to an aspect of the present disclosure, there is provided a display method of an application page, including: and receiving a starting instruction for the first control in the first page, and starting the second application, wherein the first page is a display page corresponding to the first application, and controlling the display content to be switched from the first page to be displayed in the second page corresponding to the second application, so that an active component is created in a task stack corresponding to the first page, and further receiving a return instruction for the second control in the second page, and controlling the display content to be switched from the second page to the first page based on the active component.
Further, the display method of the application page further comprises the following steps: after the active component is created in the task stack corresponding to the first page, the starting parameters of the second application and the application identification corresponding to the second application are read through the active component.
Further, the display method of the application page further comprises the following steps: detecting the application type of a first application, and destroying the active component when the application type of the first application is the first type, wherein the first type of application is an application installed on the terminal equipment, so that the display content is controlled to be switched from a second page to a first page based on a task stack.
Further, the display method of the application page further comprises the following steps: and detecting the application type of the first application, and starting a first target component corresponding to the first application when the application type of the first application is a second type, wherein the second type of application is an application which is not installed on the terminal equipment, so that the display content is controlled to be switched from a second page to a first page according to the target starting parameters in the first target component and the target application identification.
Further, the display method of the application page further comprises the following steps: and when the second application is a live application, acquiring the component sequence of at least one movable component contained in the task stack, and determining a second target component according to the component sequence, so that the display content is controlled to be switched from the second page to the first page based on the second target component.
Further, the display method of the application page further comprises the following steps: and receiving a starting operation of a third control in the display content, starting a second application and an active component, and controlling the displayed content to be switched from the second page to the first page through the active component.
Further, the display method of the application page further comprises the following steps: and after the control display content is switched from the first page to the second page corresponding to the second application, releasing the task stack corresponding to the first page.
According to an aspect of the present disclosure, there is also provided a display device of an application page, including: the starting module is used for receiving a starting instruction of a first control in a first page and starting a second application, wherein the first page is a display page corresponding to the first application; the first switching module is used for controlling the display content to be switched from the first page to be displayed in a second page corresponding to the second application; the creation module is used for creating an active component in the task stack corresponding to the first page; and the second switching module is used for receiving a return instruction for the second control in the second page and controlling the display content to be switched from the second page to the first page based on the active component.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of displaying application pages.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the above-described display method of an application page.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described method of displaying application pages.
In the method, when a first page is switched to a second page, an active component is created in a task stack corresponding to the first page, a starting instruction of a first control in the first page is received, and a second application is started, wherein the first page is a display page corresponding to the first application, display content is controlled to be switched from the first page to be displayed in the second page corresponding to the second application, and meanwhile, the active component is created in the task stack corresponding to the first page, so that a return instruction of the second control in the second page is received, and the display content is controlled to be switched from the second page to the first page based on the active component.
In the above process, when the display content is controlled to be switched from the first page to be displayed in the second page, the active component is created in the task stack corresponding to the first page, and because the application page is carried by the active component, the active component is created in the task stack corresponding to the first page, so that when the first page is switched to the second page, the page view of the first page can not be destroyed, and when the terminal equipment receives a return instruction from the second page to return to the first page, the display content can be controlled to be switched from the second page to the first page by the active component created before, and the switching process is hot-started without re-initialization, thereby solving the problem of long starting time consumption of the application page caused by a cold starting mode in the prior art.
Therefore, the scheme provided by the disclosure achieves the purpose of hot starting the application page, so that the technical problem of long time consumption for starting the application page in the prior art is solved, and the technical effect of improving the use experience of a user is further achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow chart of a method of displaying an application page according to embodiment 1 of the present disclosure;
FIG. 2 is a flow chart of a method of displaying an application page according to embodiment 1 of the present disclosure;
FIG. 3 is a schematic diagram of a display device of an application page according to embodiment 2 of the present disclosure;
fig. 4 is a block diagram of a terminal device for implementing a display method of an application page of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present disclosure, there is provided an embodiment of a display method of an application page, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different from that herein.
In addition, it should be further noted that, a terminal device having a display function of an application page may be used as an execution subject of the method provided in the embodiments of the present disclosure, where the terminal device includes, but is not limited to: notebook computers, desktop computers, servers, smart portable wearable devices, smart phones, smart tablets, and the like.
Fig. 1 is a flowchart of a method for displaying an application page according to an embodiment of the present disclosure, as shown in fig. 1, the method including the steps of:
step S102, receiving a starting instruction of a first control in a first page and starting a second application.
In an optional embodiment, the first page is a display page corresponding to the first application, for example, the first application may be a homepage application 1, and the first page is a corresponding homepage display page 1, where there may be multiple controls in the first page, and by starting the controls, other applications may be started, for example, in the homepage display page 1, there may be multiple controls for opening other multiple applications, where the first control may be any control, and when a user clicks the first control, the terminal device starts the second application corresponding to the first control after receiving a start instruction of the first control.
In the process, the second application is started through the starting instruction of the first control, so that the user can directly start the second application in the first page without exiting the first page, and the user experience is improved.
Step S104, the display content is controlled to be switched from the first page to be displayed in the second page corresponding to the second application.
In an optional embodiment, the first page and the second page may both be displayed in a display interface of the terminal device, and in addition, the display content is a display content corresponding to the first application and the second application after being started. After the terminal equipment successfully starts the second application, the terminal equipment can control the display interface to be switched from displaying the first page to displaying the second page, and the second page is a display page corresponding to the second application.
In the process, the first page is switched to the second page, the display content is also switched from the display content corresponding to the first application to the display content corresponding to the second application, and the user can open the second page without exiting the first page, so that the effect of improving the user experience is achieved.
Step S106, an active component is created in the task stack corresponding to the first page.
In an alternative embodiment, as shown in fig. 2, the terminal device may start two pages each time the second application is started, where the task stack corresponding to the first page may be a default task stack, and the task stack corresponding to the second page may be a single element task stack, and the terminal device may create an active component, for example, a corresponding active component in the "applet stub" corresponding to the default stack. The terminal device may also read, through an active component in the default stack, a start parameter of the second application and a corresponding application identifier, for example, a start parameter of the bar applet and a corresponding application identifier.
Optionally, the task stack corresponding to the second page may be a single element task stack, where single element is an Android startup mode with global uniqueness, and the mode only displays one task stack in the latest task without setting task affinity (attribution of the active component, which characterizes an attribution relationship between the active component and the task), but one task may have multiple task stacks, and when the control display content is switched from the first page to display in the second page corresponding to the second application, the terminal device releases the single element task stack corresponding to the second page.
It should be noted that, the task affinity characterizes the attribution relationship between the active components and the tasks, and the active components with the same similarity belong to the same task, and from the perspective of the user, belong to the same "application". Wherein the similarity of the tasks is determined by the similarity of the bottom active components thereof. Similarity determination of two-point content, comprising: the active component alters the tasks behind the parent and when the active component is started by the flag, the tasks for accommodating the active component. By default, all active components in an application have the same similarity, a developer can set a task affinity, group the active components in different ways, and even place active components defined in different applications in the same task. If the specified active component has no similarity to any task, it is set to an empty string. If the taskAffinity is not set, the active component will inherit the similarity set for the application.
In the above process, when the terminal device controls the display content to be switched from the first page to be displayed in the second page, an active component is created in the default task stack corresponding to the first page, and because the application page is carried by the active component, the active component is created in the task stack corresponding to the first page, so that when the first page is switched to the second page, the page view of the first page is not destroyed, and when the terminal device receives a return instruction from the second page to return to the first page, the display content can be controlled to be switched from the second page to the first page by the active component created before, thereby realizing the effect of improving the starting speed of the application interface.
Step S108, receiving a return instruction of the second control in the second page, and controlling the display content to be switched from the second page to the first page based on the active component.
In step S108, when the terminal device creates an active component in the single element task stack corresponding to the second page, due to the multiplexing property in the task stack, the subsequent request will not create a new active component in the single element task stack, and the active component started in the single element mode is a single instance in the whole Android system, when the single element task stack is moved back to the background, the active component will be released and not displayed in the latest task, if the active component created in the single element task stack is started again at this time, the created active component will be directly found and the corresponding content will be displayed after being pulled, and the process is a hot start process, so that the first page can be quickly opened in a short time.
In the process, after receiving the return instruction of the second control in the second page, the terminal equipment can call the movable component in the task stack corresponding to the first page, and the movable component bears the application page of the first page, so that the terminal equipment can control the display content to be switched from the second page to the first page in a hot start mode, the problem of long application page starting time consumption caused by a cold start mode in the prior art is solved, and the effect of improving the starting speed of the application page is realized.
Based on the above-defined schemes in steps S102 to S108, it can be known that, in the embodiment of the present disclosure, by adopting a manner of creating an active component in a task stack corresponding to a first page when the first page is switched to a second page, and by receiving a start instruction for a first control in the first page and starting a second application, the first page is a display page corresponding to the first application, and controlling display content to be switched from the first page to be displayed in the second page corresponding to the second application, and simultaneously creating an active component in the task stack corresponding to the first page, thereby receiving a return instruction for the second control in the second page, and controlling display content to be switched from the second page to the first page based on the active component.
It is easy to note that in the above process, when the display content is controlled to be switched from the first page to be displayed in the second page, the active component is created in the task stack corresponding to the first page, and because the application page is carried by the active component, the active component is created in the task stack corresponding to the first page, that is, when the first page is switched to the second page, the page view of the first page is not destroyed, so that when the terminal device receives a return instruction from the second page to the first page, the display content can be controlled to be switched from the second page to the first page by the active component created before, and the switching process is hot-started, without re-initialization, thereby solving the problem of long application page starting time consumption caused by the cold starting mode in the prior art.
Therefore, the scheme provided by the disclosure achieves the purpose of hot starting the application page, so that the technical problem of long time consumption for starting the application page in the prior art is solved, and the technical effect of improving the use experience of a user is further achieved.
In an alternative embodiment, after the terminal device creates the active component in the task stack corresponding to the first page, the active component reads the starting parameter of the second application and the application identifier corresponding to the second application.
Optionally, as shown in fig. 2, when the terminal device starts the second application, two pages may be started, including a first page and a second page, where a task stack corresponding to the first page may be a default task stack, a task stack of the second page may be a single element task stack, and the terminal device may read, through an active component in the default stack, a starting parameter of the second application and a corresponding application identifier, for example, a starting parameter of an applet and a corresponding application identifier.
In the process, the starting parameters of the second application and the application identifiers corresponding to the second application are read through the movable components in the default stack, and the terminal equipment can quickly find the occupation of the movable components of the second application in the default stack, so that the problem that the terminal equipment cannot return to the first page but directly returns to the desktop when returning from the second page is avoided, the return sequence among a plurality of applications is controlled, and the return experience effect of a user is improved.
In an alternative embodiment, the terminal device detects an application type of the first application, and destroys the active component when the application type of the first application is the first type, wherein the first type of application is an application installed on the terminal device, and controls the display content to be switched from the second page to the first page based on the task stack.
Optionally, as shown in fig. 2, when the terminal device receives a return instruction for the second control in the second page and switches the second page to the first page based on the active component control display content, the terminal device detects an application type of the first application, and when detecting that the application type of the first application is the first type, the terminal device destroys the active component established in the task stack corresponding to the first page when returning from the second page to the first page, where the first type of application is an application installed on the terminal device, for example, a software client installed on the local side of the terminal device by a user. When a user opens a software client on the terminal equipment, the terminal equipment displays a homepage of the software client, the user continues to enter another sub-page through the homepage of the software client, at this time, an active component corresponding to the sub-page is built in a default stack corresponding to the homepage, when the sub-page is closed, the active component corresponding to the sub-page is destroyed, and the terminal equipment can pull up the default stack corresponding to the homepage at the same time, at this time, the display content of the terminal equipment is switched from the sub-page to the homepage of the software client, namely, the display content is switched from the second page to the first page based on the task stack control.
It should be noted that in the above process, since the active component corresponding to the second page is destroyed, the second page is not displayed any more, and after the active component corresponding to the second page is destroyed, the terminal device does not return to the desktop directly from the second page, but returns to the first page because the default stack corresponding to the first page is started, so that the control return sequence is realized, and the effect of user experience is improved.
In an optional embodiment, the terminal device detects an application type of the first application, and starts a first target component corresponding to the first application when the application type of the first application is a second type, where the second type of application is an application that is not installed on the terminal device, so that the display content is controlled to be switched from the second page to the first page according to a target starting parameter and a target application identifier in the first target component.
Alternatively, the application displayed on the terminal device may be an application that is not installed on the terminal device, for example, the user searches for an applet on a software client on the terminal device and clicks into the applet, which is an application that is not installed on the terminal device because the applet is based on an application on the software client. For this type of application, as shown in fig. 2, when the terminal device receives a return instruction, the terminal device starts a first target component corresponding to the first application, for example, an "applet occupation" in a default stack corresponding to the first page, so as to start an active component corresponding to the first target component, and further, according to a target start parameter and a target application identifier of the second application recorded in the first target component, the terminal device controls the display content to be switched from the second page to the first page. Among them, the target start-up parameters include, but are not limited to: start time, start sequence, etc.; target application identifications include, but are not limited to: target application number, target application name, etc.
It should be noted that, through the above process, when the application is an application that is not installed on the terminal device, since the active component corresponding to the first target component records the target start parameter of the second application and the target application identifier, when the terminal device receives the return instruction from the second page to the first page, the first page to be returned by the second page can be located through the first target component, so that the effect of sequentially and continuously returning is achieved, and the user return experience is improved.
In an alternative embodiment, when the second application is a live application, the terminal device obtains the component sequence of at least one active component included in the task stack, and determines a second target component according to the component sequence, so that the display content is controlled to be switched from the second page to the first page based on the second target component.
Optionally, the application displayed on the terminal device may be a live application, for example, when the first application is an applet and the second application is a live application, the terminal device may acquire a component sequence of at least one active component included in a task stack corresponding to the first page, where the active component corresponds to the live application, and when the terminal device receives a return instruction from the second page to the first page, the terminal device may determine a second target component according to the component sequence, where the second target component is an active component corresponding to the second application, for example, a plurality of live applications such as a live application a, a live application B, etc. may be opened through the first application, where the live application a corresponds to the active component a, the live application B corresponds to the active component B, and the active component a and the active component B have a sequence in the task stack corresponding to the first page.
It should be noted that in the above process, since the terminal device may obtain the component sequence of at least one active component in the task stack corresponding to the first page, when the terminal device receives the return instruction from the second page to the first page, the terminal device may accurately switch from the second page to the first page according to the component sequence, thereby achieving the effect of improving the user return experience.
In an alternative embodiment, the terminal device receives a start operation of a third control in the display content, starts the second application and the active component, and controls the display content to be switched from the second page to the first page through the active component.
Optionally, the application displayed on the terminal device may be a software application started from a desktop, where the third control is a control on the software application started from the desktop, and the second application and the active component may be started to be opened through the third control, when the terminal device receives a return instruction from the second page to the first page, the terminal device may start the active component in the task stack corresponding to the first page after the terminal device starts, so that the active component is pulled and positioned to the opened second application, and further when the terminal device returns from the second page, the terminal device may return to the first page according to the start parameter and the corresponding identifier of the second application recorded by the active component.
It should be noted that in the above process, since the active component records the target starting parameter and the target application identifier of the second application, when the terminal device receives the return instruction from the second page to the first page, the first page to be returned by the second page can be located by the most basic activity in the task stack corresponding to the first page, so that the effect of accurately returning the pages in sequence is achieved.
In an alternative embodiment, after the display content is controlled to be switched from the second page to the first page based on the active component, the terminal device releases the task stack corresponding to the second page.
Optionally, the task stack corresponding to the second page may be a single element task stack, where single element is an Android startup mode with global uniqueness, and only one task stack is displayed in the latest task without setting task affinity, but one task may have multiple task stacks, and when the terminal device switches the display content from the second page to the first page based on the active component control, the terminal device releases the single element task stack corresponding to the second page.
It should be noted that if the hot start page is implemented by using the design of the multi-task stack, for example, in the software a, one task stack is a default stack, including functions such as chat, and the other task stack is an applet, the stack is returned in order, and the two stacks can adjust the order. When the user clicks the control with the function of closing the page in the upper right corner of the applet, the applet can be returned to the background, but cannot be destroyed, and the applet page can be returned from the latest task clicking control. It is easy to note that this approach has the problem of being unable to return to the order in which the previous page needs to look at the stack, where there is a high probability that it will return directly to the desktop, rather than in order. However, by means of the method for establishing the single task stack, the problem that the multi-task stack always returns to the desktop when returning to the page of the previous stage is avoided, and the effect of sequentially returning to the page of the previous stage is achieved.
As can be seen from the foregoing, when the display content is controlled to be switched from the first page to be displayed in the second page, the active component is created in the task stack corresponding to the first page, and because the application page is carried by the active component, the active component is created in the task stack corresponding to the first page, so that when the first page is switched to the second page, the page view of the first page is not destroyed, and when the terminal device receives a return instruction from the second page to the first page, the display content can be controlled to be switched from the second page to the first page by the active component created before, and the switching process is hot start without re-initialization, thereby solving the problem of long application page starting time consumption caused by a cold start mode in the prior art.
Example 2
According to an embodiment of the present disclosure, there is further provided an embodiment of a display device for an application page, where fig. 3 is a schematic diagram of the display device for an application page according to embodiment 2 of the present disclosure, and the device includes: the starting module 301 is configured to receive a starting instruction for a first control in a first page, and start a second application, where the first page is a display page corresponding to the first application; a first switching module 303, configured to control the display content to be switched from the first page to be displayed in a second page corresponding to the second application; a creation module 305 for creating an active component in the task stack corresponding to the first page; and a second switching module 307, configured to receive a return instruction for the second control in the second page, and control the display content to be switched from the second page to the first page based on the active component.
It should be noted that the starting module 301, the first switching module 303, the creating module 305, and the second switching module 307 correspond to steps S102 to S108 in the above embodiment, and the four modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above embodiment 1.
Optionally, the display device of the application page further includes: and the reading module is used for reading the starting parameters of the second application and the application identification corresponding to the second application through the active component after the active component is created in the task stack corresponding to the first page.
Optionally, the second switching module further includes: the device comprises a detection module, a destruction module and a third switching module. The detection module is used for detecting the application type of the first application; the destroying module is used for destroying the movable assembly when the application type of the first application is a first type, wherein the first type of application is an application installed on the terminal equipment; and the third switching module is used for controlling the display content to be switched from the second page to the first page based on the task stack.
Optionally, the second switching module further includes: the device comprises a first detection module, a first starting module and a fourth switching module. The first detection module is used for detecting the application type of the first application; the first starting module is used for starting a first target component corresponding to the first application when the application type of the first application is a second type, wherein the second type of application is an application which is not installed on the terminal equipment; and the fourth switching module is used for controlling the display content to be switched from the second page to the first page according to the target starting parameter in the first target component and the target application identifier.
Optionally, the second switching module further includes: the device comprises an acquisition module, a determination module and a fifth switching module. The acquisition module is used for acquiring the component sequence of at least one movable component contained in the task stack when the second application is a live application; the determining module is used for determining a second target component according to the component sequence; and the fifth switching module is used for controlling the display content to be switched from the second page to the first page based on the second target component.
Optionally, the display device of the application page further includes: the second starting module and the sixth switching module. The second starting module is used for receiving starting operation of a third control in the display content and starting a second application and the movable component; and the sixth switching module is used for controlling the display content to be switched from the second page to the first page through the movable component.
Optionally, the second switching module further includes: and the releasing module is used for releasing the task stack corresponding to the first page after the control display content is switched from the first page to the second page corresponding to the second application.
Example 3
According to another aspect of the embodiments of the present disclosure, there is also provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the application page display method in embodiment 1.
Example 4
According to another aspect of the embodiments of the present disclosure, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the display method of the application page in embodiment 1 described above.
Example 5
According to another aspect of the embodiments of the present disclosure, there is also provided a computer program product, including a computer program, which when executed by a processor, implements the display method of the application page in the above embodiment 1.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
Fig. 4 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, for example, a display method of an application page. For example, in some embodiments, the method of displaying an application page may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the above-described vehicle trajectory prediction method may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the method of displaying the application page in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (9)

1. A display method of an application page comprises the following steps:
receiving a starting instruction of a first control in a first page, and starting a second application, wherein the first page is a display page corresponding to the first application;
controlling display content to be switched from the first page to be displayed in a second page corresponding to the second application;
creating an active component in a task stack corresponding to the first page;
Receiving a return instruction for a second control in the second page, and controlling the display content to be switched from the second page to the first page based on the active component;
controlling switching of the display content from the second page to the first page based on the active component includes: when the second application is a live application, acquiring the component sequence of at least one movable component contained in the task stack; determining a second target component according to the component sequence; and controlling the display content to be switched from the second page to the first page based on the second target component.
2. The method of claim 1, after creating an active component in a task stack corresponding to the first page, the method further comprising:
and reading starting parameters of the second application and application identifiers corresponding to the second application through the movable component.
3. The method of claim 1, controlling switching of the display content from the second page to the first page based on the active component, comprising:
detecting an application type of the first application;
destroying the movable component when the application type of the first application is a first type, wherein the first type of application is an application installed on the terminal equipment;
And controlling the display content to be switched from the second page to the first page based on the task stack.
4. The method of claim 1, controlling switching of the display content from the second page to the first page based on the active component, comprising:
detecting an application type of the first application;
when the application type of the first application is a second type, starting a first target component corresponding to the first application, wherein the second type of application is an application which is not installed on terminal equipment;
and controlling the display content to be switched from the second page to the first page according to the target starting parameter in the first target component and the target application identifier.
5. The method of claim 1, the method further comprising:
receiving a starting operation of a third control in the display content, and starting the second application and the movable component;
and controlling the displayed content to be switched from the second page to the first page through the movable component.
6. The method of claim 1, when controlling the switching of the display content from the second page to the first page based on the active component, the method further comprising:
And releasing the task stack corresponding to the second page.
7. A display device of an application page, comprising:
the starting module is used for receiving a starting instruction of a first control in a first page and starting a second application, wherein the first page is a display page corresponding to the first application;
the first switching module is used for controlling the display content to be switched from the first page to be displayed in a second page corresponding to the second application;
a creation module for creating an active component in a task stack corresponding to the first page;
the second switching module is used for receiving a return instruction of a second control in the second page and controlling the display content to be switched from the second page to the first page based on the movable component;
the second switching module is further configured to obtain a component sequence of at least one active component included in the task stack when the second application is a live application; determining a second target component according to the component sequence; and controlling the display content to be switched from the second page to the first page based on the second target component.
8. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of displaying application pages of any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the display method of an application page according to any one of claims 1 to 6.
CN202111014414.6A 2021-08-31 2021-08-31 Application page display method and device and electronic equipment Active CN113805962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111014414.6A CN113805962B (en) 2021-08-31 2021-08-31 Application page display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111014414.6A CN113805962B (en) 2021-08-31 2021-08-31 Application page display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113805962A CN113805962A (en) 2021-12-17
CN113805962B true CN113805962B (en) 2023-10-20

Family

ID=78894547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111014414.6A Active CN113805962B (en) 2021-08-31 2021-08-31 Application page display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113805962B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114691273A (en) * 2022-03-30 2022-07-01 北京字跳网络技术有限公司 User interface returning method and device, electronic equipment and storage medium
CN116302291B (en) * 2023-05-11 2023-10-20 荣耀终端有限公司 Application display method, electronic device and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975337A (en) * 2016-04-29 2016-09-28 上海斐讯数据通信技术有限公司 System and method for switching application programs
CN106484862A (en) * 2016-10-10 2017-03-08 聚好看科技股份有限公司 Page control method and device
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment
CN108763541A (en) * 2018-05-31 2018-11-06 维沃移动通信有限公司 A kind of page display method and terminal
CN108958830A (en) * 2018-06-06 2018-12-07 Oppo广东移动通信有限公司 Application program launching method, device, storage medium and terminal
CN109086109A (en) * 2018-06-25 2018-12-25 北京金山安全软件有限公司 Page display method and device, electronic equipment and medium
CN111857902A (en) * 2019-12-30 2020-10-30 华人运通(上海)云计算科技有限公司 Application display method, device, equipment and readable storage medium
CN112241296A (en) * 2019-07-17 2021-01-19 北京密境和风科技有限公司 Page switching method and device in application
WO2021027772A1 (en) * 2019-08-15 2021-02-18 华为技术有限公司 Method for switching running of application and device
CN113127130A (en) * 2021-05-08 2021-07-16 广州酷狗计算机科技有限公司 Page jump method, device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105975337A (en) * 2016-04-29 2016-09-28 上海斐讯数据通信技术有限公司 System and method for switching application programs
CN106484862A (en) * 2016-10-10 2017-03-08 聚好看科技股份有限公司 Page control method and device
CN108196930A (en) * 2018-01-18 2018-06-22 腾讯科技(深圳)有限公司 Applied program processing method, device, storage medium and computer equipment
CN108763541A (en) * 2018-05-31 2018-11-06 维沃移动通信有限公司 A kind of page display method and terminal
CN108958830A (en) * 2018-06-06 2018-12-07 Oppo广东移动通信有限公司 Application program launching method, device, storage medium and terminal
CN109086109A (en) * 2018-06-25 2018-12-25 北京金山安全软件有限公司 Page display method and device, electronic equipment and medium
CN112241296A (en) * 2019-07-17 2021-01-19 北京密境和风科技有限公司 Page switching method and device in application
WO2021027772A1 (en) * 2019-08-15 2021-02-18 华为技术有限公司 Method for switching running of application and device
CN111857902A (en) * 2019-12-30 2020-10-30 华人运通(上海)云计算科技有限公司 Application display method, device, equipment and readable storage medium
CN113127130A (en) * 2021-05-08 2021-07-16 广州酷狗计算机科技有限公司 Page jump method, device and storage medium

Also Published As

Publication number Publication date
CN113805962A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN107832099B (en) Method and device for client version compatibility and storage medium
CN113805962B (en) Application page display method and device and electronic equipment
CN105389173B (en) Interface switching display method and device based on long connection task
WO2014194654A1 (en) Method and apparatus for page view switching
CN110908837B (en) Application program exception handling method and device, electronic equipment and storage medium
US9880861B2 (en) Method and apparatus for page view switching
CN111796747B (en) Multi-open application processing method and device and electronic equipment
CN103257881A (en) Plug-in operation method based on browser, browser device and terminal
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN113641936B (en) Method, device, electronic equipment and storage medium for page skip
CN115934076B (en) Cross-platform client micro-service providing device and method and electronic equipment
CN112578961B (en) Application identifier display method and device
CN113391870A (en) Page jump method and device, electronic equipment and readable storage medium
CN108632366B (en) File downloading method and device and terminal equipment
CN112631682A (en) Applet processing method, device, equipment and storage medium
CN114401300B (en) Cloud application control method, device, equipment, medium and program product
CN113448668B (en) Method and device for skipping popup window and electronic equipment
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
WO2017219445A1 (en) Method of freezing application, and terminal
CN108777742B (en) Mobile terminal, switching method of display interface of mobile terminal and computer storage medium
CN113360236A (en) Page processing method, device, equipment, storage medium and program product
CN114237752A (en) Display method and device of pushed page, electronic equipment and storage medium
CN117591190A (en) Application data loading optimization method, device, equipment and storage medium thereof
CN110795117A (en) Method, system, electronic device and storage medium for updating configuration file
CN114896578A (en) Multi-system-compatible fingerprint login equipment control method, device and medium

Legal Events

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