Page processing method and device of a boarding application, electronic equipment and readable storage medium

By creating an independent sub-root navigation stack for each hosted application within the host application, the problem of mutual interference between hosted application pages within the host application is solved, achieving page isolation and independence, and improving the user experience.

CN112836153BActive Publication Date: 2025-12-19BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN201911165014.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-25
Publication Date
2025-12-19
Estimated Expiration
2039-11-25

AI Technical Summary

Technical Problem

When multiple hosted applications are opened one after the other in the host application, page interference or page crossover may occur between the pages.

Method used

Create an independent sub-root navigation stack for each hosted application, and manage these sub-root navigation stacks within the root navigation stack of the host application. Control the page operations of each hosted application through the sub-root navigation stacks.

Benefits of technology

This effectively avoids interference between hosted application pages, improves page independence and compatibility, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112836153B_ABST
    Figure CN112836153B_ABST
Patent Text Reader

Abstract

The application discloses a page processing method and device of a hosting application, electronic equipment and a readable storage medium, and relates to the technical field of Internet applications. The embodiment of the application determines a first hosting application to which a page to be operated in a host application belongs, and then obtains a child root navigation stack of the first hosting application, which is added in a root navigation stack of the host application, so that the page to be operated can be operated according to the child root navigation stack of the first hosting application. The pages of each hosting application are controlled by using the child root navigation stacks of the hosting applications of the host application, so that the pages of each hosting application of the host application are isolated, and the problem of mutual interference, i.e. page interleaving, between the pages of each hosting application in the case that the hosting applications of multiple host applications are opened in front of and behind each other can be effectively avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to the technical field of Internet application, and more particularly to a page processing method and device of a hosted application, an electronic device and a readable storage medium. BACKGROUND

[0002] With the development of communication technology, terminals integrate more and more functions, so that the system function list of the terminal contains more and more corresponding applications (APPs). Some applications, which can be referred to as host applications, can provide specific services of some other applications, which can be referred to as hosted applications. For example, various mini-programs such as specific services of Aiqiyi video mini-program and Baishi express mini-program in Baidu APP, the hosted applications can be used without installation and realize corresponding functions, and the specific service range of the hosted applications that can be provided by the host application is less than or equal to the independent application corresponding to the hosted application that can run independently.

[0003] Generally, the pages of all the hosted applications of the host application are displayed based on a root navigation stack push manner of the host application. Therefore, when multiple hosted applications run, the pages of each hosted application can perform a push operation into the root navigation stack of the host application in turn to display each page, and can also perform a pop operation according to the page order in the root navigation stack of the host application in turn to perform page back.

[0004] However, since the pages of each hosted application of the host application are controlled based on the same root navigation stack, in the case of opening multiple hosted applications before and after, the opened pages of each hosted application can interfere with each other, that is, the problem of page interleaving. SUMMARY

[0005] Aspects of the present application provide a page processing method and device of a hosted application, an electronic device and a readable storage medium to avoid the problem of page interleaving between the pages of each hosted application in the case of opening multiple hosted applications before and after the host application.

[0006] In an aspect of the present application, a page processing method of a hosted application is provided, comprising:

[0007] determining a first hosted application to which a to-be-operated page in a host application belongs;

[0008] obtaining a sub-root navigation stack of the first hosted application, the sub-root navigation stack of the first hosted application being added in a root navigation stack of the host application;

[0009] operating the to-be-operated page according to the sub-root navigation stack of the first hosted application.

[0010] As the aspect and any possible implementation manner described above further provides an implementation manner, before the obtaining the sub-root navigation stack of the first hosted application, further comprising:

[0011] In response to the operation of opening the first hosted application in the host application, performing an adding operation on the sub-root navigation stack of the first hosted application according to the root navigation stack of the host application, to add the sub-root navigation stack of the first hosted application into the root navigation stack of the host application.

[0012] As the aspect and any possible implementation manner described above further provides an implementation manner, the method further comprises:

[0013] In response to the operation of closing the first hosted application in the host application, performing a removing operation on the sub-root navigation stack of the first hosted application according to the root navigation stack of the host application, to remove the sub-root navigation stack of the first hosted application from the root navigation stack of the host application.

[0014] As the aspect and any possible implementation manner described above further provides an implementation manner, after the removing operation on the sub-root navigation stack of the first hosted application according to the root navigation stack of the host application, to remove the sub-root navigation stack of the first hosted application from the root navigation stack of the host application in response to the operation of closing the first hosted application in the host application, further comprising:

[0015] If the operation of opening the first hosted application in the host application again is not acquired within a specified time range, performing a destroying operation on the sub-root navigation stack of the first hosted application, to delete the sub-root navigation stack of the first hosted application from the memory.

[0016] As the aspect and any possible implementation manner described above further provides an implementation manner, the operation on the to-be-operated page according to the sub-root navigation stack of the first hosted application comprises:

[0017] In a scenario of jumping from a first page of the first hosted application to the to-be-operated page, performing a stack operation on the to-be-operated page according to the sub-root navigation stack of the first hosted application, to add the to-be-operated page into the sub-root navigation stack of the first hosted application, and display the to-be-operated page; or

[0018] In a scenario of backtracking from the to-be-operated page to a second page of the first hosted application, performing a de-stack operation on the to-be-operated page according to the sub-root navigation stack of the first hosted application, to remove the to-be-operated page from the sub-root navigation stack of the first hosted application, and display the second page.

[0019] According to the aspect and any possible implementation manner as described above, further provided is an implementation manner, wherein the sub-root navigation stack of the first hosted application is independent of the sub-root navigation stack of another hosted application in the host application other than the first hosted application.

[0020] According to another aspect of the present application, a page processing apparatus of a hosted application is provided, comprising:

[0021] A determination unit is configured to determine a first hosted application to which a page to be operated belongs in a host application;

[0022] An obtaining unit is configured to obtain a sub-root navigation stack of the first hosted application, wherein the sub-root navigation stack of the first hosted application is added in a root navigation stack of the host application;

[0023] An operation unit is configured to operate the page to be operated according to the sub-root navigation stack of the first hosted application.

[0024] According to the aspect and any possible implementation manner as described above, further provided is an implementation manner, wherein the obtaining unit is further configured to

[0025] In response to an operation of starting the first hosted application in the host application, the sub-root navigation stack of the first hosted application is added in the root navigation stack of the host application according to the root navigation stack of the host application.

[0026] According to the aspect and any possible implementation manner as described above, further provided is an implementation manner, wherein the obtaining unit is further configured to

[0027] In response to an operation of closing the first hosted application in the host application, the sub-root navigation stack of the first hosted application is removed from the root navigation stack of the host application according to the root navigation stack of the host application.

[0028] According to the aspect and any possible implementation manner as described above, further provided is an implementation manner, wherein the obtaining unit is further configured to

[0029] If an operation of starting the first hosted application in the host application again is not obtained within a specified time range, the sub-root navigation stack of the first hosted application is destroyed to delete the sub-root navigation stack of the first hosted application from the memory.

[0030] According to the aspect and any possible implementation manner as described above, further provided is an implementation manner, wherein the operation unit is specifically configured to

[0031] In a scenario of jumping from a first page of the first hosting application to the to-be-operated page, the to-be-operated page is pushed into the child root navigation stack of the first hosting application according to the child root navigation stack of the first hosting application, and the to-be-operated page is displayed; or

[0032] In a scenario of backtracking from the to-be-operated page to a second page of the first hosting application, the to-be-operated page is popped from the child root navigation stack of the first hosting application according to the child root navigation stack of the first hosting application, and the second page is displayed.

[0033] According to the aspect and any possible implementation manner described above, further provided is an implementation manner, the child root navigation stack of the first hosting application is independent of the child root navigation stack of another hosting application in the host application other than the first hosting application.

[0034] According to another aspect of the present application, an electronic device is provided, comprising:

[0035] at least one processor; and

[0036] a memory connected with the at least one processor in communication; wherein

[0037] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the aspect and any possible implementation manner described above.

[0038] According to another aspect of the present application, a non-transitory computer readable storage medium storing computer instructions is provided, the computer instructions are used to make the computer perform the method of the aspect and any possible implementation manner described above.

[0039] According to the above technical solution, the embodiment of the present application determines the first hosting application to which the to-be-operated page belongs in the host application, and then obtains the child root navigation stack of the first hosting application, which is added in the root navigation stack of the host application, so that the to-be-operated page can be operated according to the child root navigation stack of the first hosting application. By using the child root navigation stack of each hosting application of the host application to control the pages of each hosting application, the page isolation of each hosting application of the host application is realized, and the problem of mutual interference, i.e., page stacking, between the pages of each hosting application in the case of opening before and after the hosting applications of multiple host applications can be effectively avoided.

[0040] In addition, by adding the sub-root navigation stack of each hosted application of the host application in the root navigation stack of the host application, the pages of each hosted application are controlled by the sub-root navigation stack of the hosted application, the page isolation of each hosted application of the host application can be effectively realized, and the independence of the pages of each hosted application is improved.

[0041] In addition, the technical solution provided in the application can be compatible with the root navigation stack of the host application, and the compatibility is improved.

[0042] In addition, the sub-root navigation stack of the first hosted application is independent of the sub-root navigation stack of other hosted applications of the host application except the first hosted application, the pages of each hosted application are controlled by the sub-root navigation stack of the hosted application, the pages of each hosted application enter in turn by performing the push operation according to the order of the sub-root navigation stack of the hosted application, exit in turn by performing the pop operation, and the pages of the hosted applications do not invade each other.

[0043] In addition, the technical solution provided in the application can effectively improve the experience of the user.

[0044] Other effects of the above aspects or possible implementation manners will be described below in combination with specific embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the application, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings. The drawings are only used to better understand the application, and do not constitute a limitation on the application. Among them:

[0046] Figure 1 The flowchart of the page processing method of the hosted application provided in an embodiment of the application is shown in the figure.

[0047] Figure 2 The structural diagram of the page processing device of the hosted application provided in another embodiment of the application is shown in the figure.

[0048] Figure 3 The schematic diagram of the electronic device for realizing the page processing method of the hosted application provided in the embodiment of the application is shown in the figure. DETAILED DESCRIPTION

[0049] Exemplary embodiments of the present application are described herein with reference to the accompanying drawings, which are cited by way of example only. The various details of the embodiments of the application can be combined in other embodiments and practiced or carried out in other ways without departing from the scope and spirit of the application. Thus, the present application is not limited to the embodiments described herein, but can be practiced with modifications and alterations.

[0050] Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0051] It should be noted that the terminal involved in the embodiments of the present application can include, but is not limited to, a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a tablet computer, a personal computer (PC), an MP3 player, an MP4 player, a wearable device (for example, smart glasses, a smart watch, a smart bracelet, etc.), a smart home device, and the like.

[0052] In addition, the term "and / or" in this paper is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, the character " / " in this paper generally represents an "or" relationship between the front and rear associated objects.

[0053] Figure 1 The flowchart of the page processing method of the hosted application provided by an embodiment of the present application is shown in Figure 1 as shown.

[0054] 101, determining a first hosted application to which a page to be operated in a host application belongs.

[0055] 102, obtaining a child root navigation stack of the first hosted application, the child root navigation stack of the first hosted application being added in a root navigation stack of the host application.

[0056] 103, operating the page to be operated according to the child root navigation stack of the first hosted application.

[0057] It should be noted that part or all of the execution subject of 101-103 can be a host application located at the local terminal, or can also be a plug-in or a software development kit (Software Development Kit, SDK) and the like functional unit arranged in the host application located at the local terminal, or can also be a processing engine located in a network side server, or can also be a distributed system located at the network side, for example, a processing engine or a distributed system in a page control platform at the network side, and the like, and the embodiment is not particularly limited.

[0058] It can be understood that the host application can be a native application (nativeApp) installed on the terminal, or can also be a web application (webApp) of a browser on the terminal, and the embodiment is not limited in this regard.

[0059] In this way, by determining the first host application to which the to-be-operated page belongs, and then obtaining the child root navigation stack of the first host application, the child root navigation stack of the first host application is added in the root navigation stack of the host application, so that the to-be-operated page can be operated according to the child root navigation stack of the first host application, and the pages of each host application are controlled by using the child root navigation stack of each host application, thereby realizing page isolation of each host application of the host application, and effectively avoiding the problem of mutual interference, i.e., page stacking, between the pages of each host application in the case of opening before and after the host applications of multiple host applications.

[0060] In the present application, a tree type multi-stack structure of a host application is proposed, which can include a root navigation stack of the host application and a child root navigation stack of each host application of the host application. The child root navigation stacks of each host application are independent of each other.

[0061] The child root navigation stack of each host application is used to manage and control the pages of each host application, and when the pages of each host application change, the child root navigation stack of the host application will change accordingly.

[0062] After each host application is opened, the child root navigation stack of each host application can be added in the root navigation stack of the host application. At the same time, the child root navigation stack of each host application can add a preset page as the opening page of the host application. The preset page can be the home page of the host application, or can also be the page displayed when the host application was closed last time, and the present application is not particularly limited in this regard.

[0063] The pages of each hosted application can perform push operations into the child root navigation stack of the hosted application in sequence to display the pages of the hosted application, and can perform pop operations in the page order of the child root navigation stack of each hosted application in sequence to perform page back of the pages of the hosted application.

[0064] Optionally, in one possible implementation of the embodiment, before 101, the child root navigation stack of the first hosted application can be added into the root navigation stack of the host application according to the root navigation stack of the host application in response to the operation of opening the first hosted application in the host application.

[0065] In the present application, the child root navigation stack of the first hosted application is used to manage and control the pages of the first hosted application, and the child root navigation stack of the first hosted application changes when the pages of the first hosted application change.

[0066] The child root navigation stack of the first hosted application is independent of the child root navigation stacks of other hosted applications in the host application except the first hosted application.

[0067] After the first hosted application is opened, the child root navigation stack of the first hosted application can add a preset page as the opening page of the first hosted application. The preset page can be the home page of the first hosted application, or can be the page displayed when the first hosted application was closed last time, which is not particularly limited in the present application.

[0068] In the implementation, the operation of opening the first hosted application in the host application can be further obtained.

[0069] In one specific implementation process, the operation of a user based on the application identifier (such as an application icon) of the first hosted application in the hosted application page of the first hosted application can be specifically obtained, for example, the user clicks the application identifier of the first hosted application, to open the first hosted application in the host application.

[0070] In another specific implementation process, the operation of a user based on the application identifier (such as an application icon) of the first hosted application in the page of other hosted applications in the host application except the first hosted application can be specifically obtained, for example, the user clicks the application identifier of the first hosted application, to open the first hosted application in the other hosted applications in the host application except the first hosted application.

[0071] The operation obtained in this embodiment can be a control operation, or can also be a gesture operation, such as a contact operation gesture or a hovering operation gesture, and the embodiment is not particularly limited in this regard.

[0072] The control refers to an object with which a user can interact to input or operate data, and can be one object or can also be multiple objects, and each object can be formed of one or more page elements.

[0073] The clicking operation can be a triggering operation performed by a user using a cursor of a mouse or a keyboard or the like external input device, or can also be a touching operation performed by a user using a finger or a stylus or the like touch input device, and the embodiment is not particularly limited in this regard.

[0074] Optionally, in one possible implementation manner of this embodiment, in response to the operation of closing the first hosted application in the host application, the child root navigation stack of the first hosted application is removed from the root navigation stack of the host application according to the root navigation stack of the host application.

[0075] The removing operation refers to removing the child root navigation stack of the first hosted application from the root navigation stack of the host application to which the first hosted application belongs, but not immediately removing the first hosted application from the terminal. At this time, the child root navigation stack of the first hosted application still exists in the memory of the terminal.

[0076] Further, after the child root navigation stack of the first hosted application is removed from the root navigation stack of the host application, it is further determined whether an operation of starting the first hosted application again in the host application is obtained within a specified time range.

[0077] If the operation of starting the first hosted application again in the host application is not obtained within the specified time range, a destroying operation is performed on the child root navigation stack of the first hosted application to delete the child root navigation stack of the first hosted application from the memory.

[0078] At this time, the child root navigation stack of the first hosted application is successfully removed from the terminal in which the host application is located. If the first hosted application is started again in the host application, the related operations in the foregoing embodiments need to be performed again.

[0079] If the operation of starting the first hosted application again in the host application is obtained within the specified time range, the child root navigation stack of the first hosted application is restored to the root navigation stack of the host application.

[0080] At this time, the page order in the sub-root navigation stack of the first hosted application is the same as the page order in the sub-root navigation stack of the first hosted application before the removal.

[0081] Optionally, in one possible implementation of the embodiment, the sub-root navigation stack of the first hosted application can be obtained from the root navigation stack of the host application in 102.

[0082] As mentioned above, after the first hosted application is opened, the sub-root navigation stack of the first hosted application can be added to the root navigation stack of the host application.

[0083] Meanwhile, the sub-root navigation stack of the first hosted application can add a preset page as the opening page of the first hosted application. The preset page can be the home page of the first hosted application, or can also be the page displayed when the first hosted application is closed last time, which is not particularly limited in the present application.

[0084] Optionally, in one possible implementation of the embodiment, the to-be-operated page can be operated correspondingly in different scenarios in 103.

[0085] In one specific implementation process, in the scenario of jumping from the first page of the first hosted application to the to-be-operated page, the to-be-operated page can be pushed according to the sub-root navigation stack of the first hosted application, so as to add the to-be-operated page to the sub-root navigation stack of the first hosted application, and display the to-be-operated page.

[0086] In another specific implementation process, in the scenario of backtracking from the to-be-operated page to the second page of the first hosted application, the to-be-operated page can be popped according to the sub-root navigation stack of the first hosted application, so as to remove the to-be-operated page from the sub-root navigation stack of the first hosted application, and display the second page.

[0087] In the embodiment, by determining the first hosted application to which the to-be-operated page in the host application belongs, the sub-root navigation stack of the first hosted application is obtained, which is added to the root navigation stack of the host application, so that the to-be-operated page can be operated according to the sub-root navigation stack of the first hosted application. By using the sub-root navigation stack of each hosted application of the host application to control the pages of each hosted application, the page isolation of each hosted application of the host application is realized, and the problem of mutual interference or page stacking between the pages of each hosted application in the case of opening the hosted applications of multiple host applications in front and back can be effectively avoided.

[0088] In addition, by adding the sub-root navigation stack of each hosted application of the host application in the root navigation stack of the host application, the pages of each hosted application are controlled by the sub-root navigation stack of the hosted application, the page isolation of each hosted application of the host application can be effectively realized, and the independence of the pages of each hosted application is improved.

[0089] In addition, the technical solution provided in the application can be compatible with the root navigation stack of the host application, and the compatibility is improved.

[0090] In addition, the technical solution provided in the application can be compatible with the root navigation stack of the host application, and the compatibility is improved.

[0091] In addition, the technical solution provided in the application can effectively improve the user experience.

[0092] It should be noted that, for each method embodiment described above, in order to simply describe, each method embodiment is described as a series of action combinations, but those skilled in the art should know that the application is not limited by the action order described, because according to the application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the application.

[0093] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0094] Figure 2 The structure diagram of the page processing device of the hosted application provided for another embodiment of the application is shown in Figure 2 The page processing device 200 of the hosted application of the embodiment can include a determination unit 201, an obtaining unit 202 and an operation unit 203. The determination unit 201 is configured to determine a first hosted application to which a page to be operated belongs in a host application. The obtaining unit 202 is configured to obtain a sub-root navigation stack of the first hosted application, the sub-root navigation stack of the first hosted application being added in a root navigation stack of the host application. The operation unit 203 is configured to operate the page to be operated according to the sub-root navigation stack of the first hosted application.

[0095] It should be noted that part or all of the execution subject of the page processing apparatus of the host application provided in this embodiment can be a host application located in the local terminal, or can also be a plug-in or a software development kit (SDK) and the like functional unit arranged in the host application located in the local terminal, or can also be a processing engine located in a server on the network side, or can also be a distributed system located on the network side, for example, a processing engine or a distributed system in a page control platform on the network side, and the like, which are not particularly limited in this embodiment.

[0096] It can be understood that the application can be a native application (nativeApp) installed on the terminal, or can also be a web application (webApp) of a browser on the terminal, which are not limited in this embodiment.

[0097] Optionally, in a possible implementation of this embodiment, the obtaining unit 202 can be further used to, in response to an operation of opening the first hostless application in the host application, add the child root navigation stack of the first hostless application to the root navigation stack of the host application according to the root navigation stack of the host application.

[0098] Optionally, in a possible implementation of this embodiment, the obtaining unit 202 can be further used to, in response to an operation of closing the first hostless application in the host application, remove the child root navigation stack of the first hostless application from the root navigation stack of the host application according to the root navigation stack of the host application.

[0099] Further, the obtaining unit 202 can be further used to, if the operation of opening the first hostless application in the host application again is not acquired within a specified time range, destroy the child root navigation stack of the first hostless application to delete the child root navigation stack of the first hostless application from the memory.

[0100] Optionally, in a possible implementation of the embodiment, the operation unit 203 can be specifically configured to, in a scenario of jumping from a first page of the first hosted application to the to-be-operated page, perform a stack operation on the to-be-operated page according to the child root navigation stack of the first hosted application, to add the to-be-operated page to the child root navigation stack of the first hosted application, and display the to-be-operated page; or in a scenario of backtracking from the to-be-operated page to a second page of the first hosted application, perform a de-stack operation on the to-be-operated page according to the child root navigation stack of the first hosted application, to remove the to-be-operated page from the child root navigation stack of the first hosted application, and display the second page.

[0101] In the embodiment, the child root navigation stack of the first hosted application is independent of the child root navigation stack of another hosted application in the host application other than the first hosted application.

[0102] It should be noted that, Figure 1 The method in the corresponding embodiment can be implemented by the page processing apparatus of the hosted application provided in the embodiment. For details, refer to the detailed description. Figure 1 For related content in the corresponding embodiment, details are not described herein.

[0103] In the embodiment, the determining unit determines the first hosted application to which the to-be-operated page belongs in the host application, and then the obtaining unit obtains the child root navigation stack of the first hosted application, which is added in the root navigation stack of the host application, so that the operation unit can operate the to-be-operated page according to the child root navigation stack of the first hosted application. By using the child root navigation stack of each hosted application of the host application to control the page of each hosted application, the page isolation of each hosted application of the host application is achieved, and the problem of mutual interference, i.e., page stacking, between the pages of each hosted application can be effectively avoided in the case of opening the hosted applications of multiple host applications in front of and behind each other.

[0104] In addition, by adding the child root navigation stack of each hosted application of the host application in the root navigation stack of the host application, the page of each hosted application is controlled by the child root navigation stack of the hosted application, so that the page isolation of each hosted application of the host application can be effectively achieved, thereby improving the independence of the pages of each hosted application.

[0105] In addition, the technical solution provided in the present application can be compatible with the root navigation stack of the host application at the same time, thereby improving the compatibility.

[0106] In addition, by using the technical scheme provided in the present application, the sub-root navigation stack of the first hosted application is independent of the sub-root navigation stack of other hosted applications in the host application except the first hosted application, so that the pages of each hosted application are controlled by the sub-root navigation stack of the hosted application, and the pages of each hosted application enter in turn by performing the push operation and exit in turn by performing the pop operation according to the order of the sub-root navigation stack of the hosted application, and the pages of the hosted applications do not intrude on each other.

[0107] In addition, by using the technical scheme provided in the present application, the user experience can be effectively improved.

[0108] According to the embodiments of the present application, the present application further provides an electronic device and a non-transitory computer-readable storage medium storing computer instructions.

[0109] As shown in Figure 3 is a schematic diagram of an electronic device configured to implement the page processing method of the hosted application provided in the embodiments of the present application. The electronic device is intended to represent various forms including a digital computer, such as a laptop computer, a desktop computer, a workstation, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown in the present application, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present application described and / or claimed herein.

[0110] As shown in Figure 3 The electronic device includes one or more processors 301, a memory 302, and an interface for connecting components, including a high-speed interface and a low-speed interface. The components are connected to each other by different buses, and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the electronic device, including instructions stored in the memory or on the memory to display graphical information of a graphical user interface (GUI) on an external input / output device, such as a display device coupled to the interface. In other embodiments, multiple processors and / or buses can be used with multiple memories and multiple storage devices, if necessary. Similarly, multiple electronic devices can be connected, each providing part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 3 The processor 301 is taken as an example in the figure.

[0111] The memory 302 is the non-transitory computer-readable storage medium provided in this application. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the page processing method of the hosted application provided in this application. The non-transitory computer-readable storage medium of this application stores computer instructions for causing a computer to perform the page processing method of the hosted application provided in this application.

[0112] Memory 302, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and units, such as program instructions / units corresponding to the page processing method of the hosted application in the embodiments of this application (e.g., appendix). Figure 2 (The preparation unit 201 and translation unit 203 are shown). The processor 301 executes various functional applications and data processing of the server by running non-transient software programs, instructions, and units stored in the memory 302, that is, it implements the page processing method of the hosted application in the above method embodiment.

[0113] The memory 302 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function. The data storage area may store data created by the use of the electronic device implementing the page processing method for the hosted application provided in the embodiments of this application. Furthermore, the memory 302 may include high-speed random access memory and may also include non-transient memory, such as at least one disk storage device, flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 302 may optionally include memory remotely located relative to the processor 301. These remote memories can be connected via a network to the electronic device implementing the page processing method for the hosted application provided in the embodiments of this application. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0114] The electronic device for the page processing method of the hosted application may further include: an input device 303 and an output device 304. The processor 301, memory 302, input device 303, and output device 304 can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.

[0115] The input device 303 can receive input digital or character information, and generate key signal inputs in connection with a user's setting of a function of an electronic device and a user's control of a function of the electronic device, which implement the page processing method of the hosted application provided by the embodiments of the present application, such as a touch screen, a keypad, a mouse, a track, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, and the like. The output device 304 can include a display device, an auxiliary lighting device (e.g., an LED), a haptic feedback device (e.g., a vibration motor), and the like. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.

[0116] Various embodiments of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, specially designed application specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0117] These computer programs (also known as programs, software, software applications or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and / or object-oriented programming language, and / or in assembly / machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus and / or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0118] 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 cathode ray tube (CRT) or liquid crystal display (LCD) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0119] The systems and techniques described here can be implemented in a computing system that includes a back end 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 back end, 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 a local area network (LAN), a wide area network (WAN), and the Internet.

[0120] The computer system can include clients and servers. A client and server are generally 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.

[0121] According to the technical scheme of the embodiment of the present application, by determining the first hosting application to which the to-be-operated page belongs in the host application, and then obtaining the child root navigation stack of the first hosting application, the child root navigation stack of the first hosting application is added in the root navigation stack of the host application, so that the to-be-operated page can be operated according to the child root navigation stack of the first hosting application, and the pages of each hosting application are controlled by using the child root navigation stack of each hosting application in the host application, thereby realizing the page isolation of each hosting application in the host application, and effectively avoiding the problem of mutual interference, that is, page stacking, between the pages of each hosting application in the case of opening the hosting applications of multiple host applications in front and back.

[0122] In addition, by adding the sub-root navigation stack of each hosted application of the host application in the root navigation stack of the host application, the pages of each hosted application are controlled by the sub-root navigation stack of the hosted application, the page isolation of each hosted application of the host application can be effectively realized, and the independence of the pages of each hosted application is improved.

[0123] In addition, the technical solution provided in the present application can be compatible with the root navigation stack of the host application at the same time, and the compatibility is improved.

[0124] In addition, according to the technical solution provided in the present application, the sub-root navigation stack of the first hosted application is independent of the sub-root navigation stack of other hosted applications of the host application to which the first hosted application belongs, except for the first hosted application, the pages of each hosted application are controlled by the sub-root navigation stack of the hosted application, the pages of each hosted application are sequentially entered by performing the push operation and sequentially exited by performing the pop operation according to the order of the sub-root navigation stack of the hosted application, and the pages of the hosted applications do not intrude on each other.

[0125] In addition, the technical solution provided in the present application can effectively improve the user experience.

[0126] It should be understood that the steps can be reordered, added, or deleted using the various forms of flowcharts shown above. For example, each step described in the present application can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution disclosed in the present application can be achieved, and the present application is not limited herein.

[0127] The above specific embodiments do not constitute a limitation on the scope of protection of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A page processing method of a hosted application, characterized by, The method comprises the steps of: determining a first hosting application to which a page to be operated in a host application belongs; obtaining a child root navigation stack of the first hosting application, the child root navigation stack of the first hosting application being added in a root navigation stack of the host application when the first hosting application is started; the host application being a tree type multi-stack structure comprising the root navigation stack of the host application and child root navigation stacks of each of a plurality of hosting applications included in the host application; the child root navigation stacks of each of the plurality of hosting applications being independent of each other; the child root navigation stack of the hosting application being used for managing and controlling the page of the hosting application; the first hosting application being any one of the plurality of hosting applications; operating the page to be operated according to the child root navigation stack of the first hosting application.

2. The method of claim 1, wherein, The method further comprises the steps of: in response to an operation of closing the first hosting application in the host application, removing the child root navigation stack of the first hosting application according to the root navigation stack of the host application, so as to remove the child root navigation stack of the first hosting application from the root navigation stack of the host application.

3. The method of claim 2, wherein, The method further comprises the steps of: if an operation of starting the first hosting application in the host application is not obtained within a specified time range, destroying the child root navigation stack of the first hosting application, so as to delete the child root navigation stack of the first hosting application from the memory.

4. The method of claim 1, wherein, The operating the page to be operated according to the child root navigation stack of the first hosting application comprises the steps of: in a scenario of jumping from a first page of the first hosting application to the page to be operated, pushing the page to be operated into the child root navigation stack of the first hosting application according to the child root navigation stack of the first hosting application, and displaying the page to be operated; or in a scenario of backtracking from the page to be operated to a second page of the first hosting application, removing the page to be operated from the child root navigation stack of the first hosting application according to the child root navigation stack of the first hosting application, and displaying the second page.

5. A page processing apparatus of a hosted application, characterized by, The method comprises the steps of: a determining unit configured to determine a first hosting application to which a page to be operated in a host application belongs; The obtaining unit is configured to obtain a sub-root navigation stack of the first hosted application, the sub-root navigation stack of the first hosted application being added in the root navigation stack of the host application when the first hosted application is started, the host application being a tree-type multi-stack structure including the root navigation stack of the host application and a sub-root navigation stack of each of a plurality of hosted applications included in the host application, the sub-root navigation stacks of the plurality of hosted applications being independent of each other, the sub-root navigation stack of the hosted application being used to manage and control a page of the hosted application, and the first hosted application being any one of the plurality of hosted applications. The operation unit is configured to operate the page to be operated according to the sub-root navigation stack of the first hosted application.

6. The apparatus of claim 5, wherein, The obtaining unit is further configured to In response to an operation of closing the first hosted application in the host application, remove the sub-root navigation stack of the first hosted application from the root navigation stack of the host application according to the root navigation stack of the host application.

7. The apparatus of claim 6, wherein, The obtaining unit is further configured to If an operation of starting the first hosted application again in the host application is not acquired within a specified time range, destroy the sub-root navigation stack of the first hosted application from the memory according to a destroying operation of the sub-root navigation stack of the first hosted application.

8. The apparatus of claim 5, wherein, The operation unit is specifically configured to In a scenario of jumping from a first page of the first hosted application to the page to be operated, push the page to be operated into the sub-root navigation stack of the first hosted application according to the sub-root navigation stack of the first hosted application, and display the page to be operated; or In a scenario of backtracking from the page to be operated to a second page of the first hosted application, pop the page to be operated from the sub-root navigation stack of the first hosted application according to the sub-root navigation stack of the first hosted application, and display the second page.

9. An electronic device, comprising: comprise: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method in any one of claims 1-4.

10. A non-transitory computer-readable storage medium having stored thereon computer instructions, wherein, The computer instructions are used to enable the computer to perform the method in any one of claims 1-4.

Citation Information

Patent Citations

  • Page returning method for electronic program list navigation

    CN101005566A

  • A method and apparatus for executing a hosting program in a host program

    CN109947504A

  • Data processing method and device

    CN110007936A