Page display method and device, storage medium, and electronic device
By determining the task stack of the current page and the target page in the target application, and determining whether the target page meets the preset conditions, displaying the relay page at the top of the target stack, the problem of switching display of multiple pages in the same application is solved, and user operation efficiency and development and maintenance efficiency are improved.
Patent Information
- Application Number
- CN201910549303.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-24
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2039-06-24
AI Technical Summary
The prior art is difficult to effectively solve the problem of switching display of multiple pages in the same application, resulting in cumbersome user operations, high development and maintenance costs, and occupying the storage space of terminal equipment.
By determining the current page of the target application and the task stack of the target page, we can determine whether the target page meets the preset conditions. If it is met, the transit page at the top of the target stack is displayed to realize the switching display of the target page.
It improves the operation efficiency and convenience of users in a multi-page environment, reduces development and maintenance costs and storage space usage, and provides a more flexible operation method.
Smart Images

Figure CN112130937B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of terminal applications, and in particular, to a page display method, a page display device, a computer-readable storage medium, and an electronic device. Background Art
[0002] With the continuous enhancement of personalized requirements for applications and the continuous expansion of functional modules, the number of pages that need to be operated in a single application is increasing. When users face multiple operation pages, they often encounter scenarios where they need to interrupt the current operation to handle another operation, and even scenarios where users need to switch identities, playing both the service provider and the customer. Generally speaking, the following two methods can be used to solve the problem of switching between multiple sets of window pages:
[0003] First, split into multiple sub-applications for function partitioning. For example, a life service application that includes multiple functions such as ticketing and takeout can be split to make a single application smaller and the entrances easier to distinguish. However, when multiple independent applications are released, the issues of development and maintenance costs are particularly prominent, and in addition, multiple applications will occupy more storage space on the terminal device. Moreover, when users switch between applications, they need to first open the process list or return to the desktop, and then manually find the process of the target application to be switched, which is too cumbersome.
[0004] Second, page caching plus cascading to close pages. This approach is very straightforward. Close a set of ongoing pages and restore the state of the previous operation through caching. However, this is only a relatively conventional means of preventing data loss and cannot solve the problem of switching between multiple sets of pages.
[0005] In view of this, there is an urgent need in the art to develop a new page display method and device.
[0006] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0007] The purpose of the present disclosure is to provide a page display method, a page display device, a computer-readable storage medium, and an electronic device, so as to at least to some extent overcome the problem of multi-page switching display in the same application caused by the limitations of related technologies.
[0008] Other features and advantages of the present disclosure will become apparent through the following detailed description, or will be partially learned through the practice of the present disclosure.
[0009] According to the first aspect of the embodiments of the present invention, a page display method is provided. The method includes: determining the current stack that stores the current page of the target application, and determining the target stack that stores the target page of the target application; if there is a difference between the current stack and the target stack, determining whether the target page meets a preset condition; if the target page meets the preset condition, displaying the transfer page at the top of the target stack.
[0010] In an exemplary embodiment of the present invention, the preset condition includes that the startup mode of the target page is the target mode.
[0011] In an exemplary embodiment of the present invention, the preset condition includes that the object identifier of the target page is the target identifier.
[0012] In an exemplary embodiment of the present invention, determining the target stack that stores the target page of the target application includes: listening for the first page jump event of the target application; when the first page jump event is detected, determining the target stack that stores the target page of the target application.
[0013] In an exemplary embodiment of the present invention, determining the target stack that stores the target page of the target application includes: if there is a task stack with the same attributes as the target page, determining the task stack as the target stack that stores the target page of the target application; if there is no task stack with the same attributes as the target page, creating the task stack and determining the task stack as the target stack that stores the target page of the target application.
[0014] In an exemplary embodiment of the present invention, the method further includes: listening for the second page jump event of the target application; based on the second page jump event, jumping from the transfer page to the target page.
[0015] In an exemplary embodiment of the present invention, the method further includes: managing the return operations of the current page and the target page respectively through two return stacks of the target application.
[0016] In an exemplary embodiment of the present invention, displaying the transfer page at the top of the target stack includes: performing a pop operation on the current page and pushing it into the return stack to display the transfer page at the top of the target stack.
[0017] In an exemplary embodiment of the present invention, jumping from the transfer page to the target page includes: performing a pop operation on the transfer page and pushing it into the return stack to display the target page.
[0018] In an exemplary embodiment of the present invention, before determining the target stack for saving the target page of the target application, the method further includes: saving the task stack name of the startup page of the target application; saving the startup mode of the startup page as the target mode.
[0019] According to a second aspect of the embodiments of the present invention, there is provided a page display device, including: a task stack determination module configured to determine the current stack for saving the current page of the target application and determine the target stack for saving the target page of the target application; a condition judgment module configured to, if there is a difference between the current stack and the target stack, judge whether the target page meets a preset condition; a page display module configured to, if the target page meets the preset condition, display the transfer page at the top of the target stack.
[0020] According to a third aspect of the embodiments of the present invention, there is provided an electronic device, including: a processor and a memory; wherein, computer-readable instructions are stored on the memory, and when the computer-readable instructions are executed by the processor, the page display method of any of the above exemplary embodiments is implemented.
[0021] According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the page display method in any of the above exemplary embodiments is implemented.
[0022] As can be seen from the above technical solutions, the page display method, page display device, computer storage medium, and electronic device in the exemplary embodiments of the present invention at least have the following advantages and positive effects:
[0023] In the method and device provided in the exemplary embodiments of the present disclosure, a condition judgment is made on the target page in the target application, and a transfer page of the target stack is set to complete the switching display to the target page in the target stack. On the one hand, it can meet the user's need to quickly switch to the target page in the target stack, improve the user's time utilization rate, and is convenient to operate, enhancing the user experience; on the other hand, while the target application advances and returns in its respective task stacks, it can be switched to other task stacks for operation at any time, and the operation method is more flexible, without causing waste of development and maintenance resources and storage space.
[0024] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.
[0026] Figure 1 Schematically showing a flowchart of a page display method in an exemplary embodiment of the present disclosure;
[0027] Figure 2 Schematically showing a schematic flowchart of a method for determining a target page in an exemplary embodiment of the present disclosure;
[0028] Figure 3 Schematically showing a schematic flowchart of a method for determining a target stack in different situations in an exemplary embodiment of the present disclosure;
[0029] Figure 4 Schematically showing a schematic flowchart of a method for jumping to a target page in an exemplary embodiment of the present disclosure;
[0030] Figure 5 Schematically showing a schematic flowchart of a method for setting a start page of a target application in an exemplary embodiment of the present disclosure;
[0031] Figure 6 Schematically showing an application interface schematic diagram of a method for multitasking switching in an exemplary embodiment of the present disclosure;
[0032] Figure 7 Schematically showing a schematic flowchart of a method for adjusting a display page by switching a multitasking stack in an exemplary embodiment of the present disclosure;
[0033] Figure 8 Schematically showing a structural schematic diagram of a page display device in an exemplary embodiment of the present disclosure;
[0034] Figure 9 Schematically showing an electronic device for implementing a page display method in an exemplary embodiment of the present disclosure;
[0035] Figure 10 Schematically showing a computer-readable storage medium for implementing a page display method in an exemplary embodiment of the present disclosure. Detailed implementation manners
[0036] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be used. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring the various aspects of the present disclosure.
[0037] As used in this specification, the terms "a", "an", "the", and "said" are used to indicate the presence of one or more elements / components / etc.; the terms "comprising" and "having" are used to mean an open inclusion and mean that there may be additional elements / components / etc. in addition to the listed elements / components / etc.; the terms "first", "second", etc. are used only as labels and are not a limitation on the quantity of their objects.
[0038] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0039] In view of the problems existing in the related art, the present disclosure proposes a page display method. Figure 1 The flowchart of the page display method is shown, as Figure 1 shown, the page display method at least includes the following steps:
[0040] Step S101. Determine the current stack of the current page of the target application and determine the target stack of the target page of the target application.
[0041] Step S102. If there is a difference between the current stack and the target stack, determine whether the target page meets a preset condition.
[0042] Step S103. If the target page meets the preset condition, display the transfer page at the top of the target stack.
[0043] In an exemplary embodiment of the present disclosure, the present disclosure makes a conditional judgment on the target page in the target application and sets a transfer page of the target stack to complete the switching display to the target page in the target stack. On the one hand, it can meet the user's need to quickly switch to the target page in the target stack, improve the user's time utilization rate, and is convenient to operate, thus enhancing the user experience; on the other hand, while the target application advances and returns in its respective task stacks, it can be switched to other task stacks for operation at any time, with a more flexible operation method and no waste of development and maintenance resources and storage space.
[0044] The following details each step of the page display method.
[0045] In step S101, determine the current stack that saves the current page of the target application and determine the target stack that saves the target page of the target application.
[0046] In an exemplary embodiment of the present disclosure, the target application can be various types of application programs (Application Software or Application Program, abbreviated as APP), and the target application can run in the Android system, the IOS system, or other types of systems. The current stack and the target stack can be two different task stacks in the target application, and both can save multiple pages. For example, in the Android system, the page of the application program is Activity, and the task stack can be a collection of multiple Activities, and multiple Activities are arranged in the order of opening. The current page can be the page of the target application running in the foreground of the terminal device or the page of other applications activated by the target application running in the foreground. This exemplary embodiment does not make special limitations on this. In addition to the current page running in the foreground, the terminal device also includes other pages of other applications running in the background. The target page can be a page in the target application that the user intends to open, and the task stack where this page is located is different from the current stack.
[0047] In an alternative embodiment, Figure 2 shows a flowchart of a method for determining the target stack where the target page is located, as Figure 2As shown, the method at least includes the following steps: In step S201, listen for the first page jump event of the target application. A page jump event is an event that can perform a page jump. It can be triggered by opening a home page when opening the target application, a page jump event that jumps to the home page, or a page jump event that jumps to another page when a certain page trigger condition is met. The first page jump event can be the second case. The method of listening for the first page jump event of the target application can be customized. For example, a unified jump class (classjump class) can be provided. By implementing the onclick method of the application program for the classjump class, listening can be performed. The onclick method occurs when a control is clicked, that is, corresponding operations can be executed when a certain control is clicked. Listening for the first page jump event of the target application means listening for whether there is a page jump event in the target application. In step S202, when the first page jump event is listened for, determine the target stack that saves the target page of the target application. For example, when the first page jump event is listened for, it can be when the onclick method is executed, that is, when the first page jump event is listened for, the target stack where the intended transfer page is located can be determined. In this exemplary embodiment, the first page jump event can be listened for through the system's built-in listening method, without adding extra components, facilitating real-time response to page jump instructions.
[0048] In an alternative embodiment, Figure 3 shows the target stack determination method in different situations, such as Figure 3As shown, the method at least includes the following steps: In step S301, if there is a task stack whose attributes are consistent with those of the target page, the task stack is determined as the target stack of the target page of the target application. For example, the attribute may be the affinity of the target page, that is, the taskAffinity attribute. Each Activity has a taskAffinity attribute, and the taskAffinity attribute can assign a task to the Activity, that is, specify which task the Activity belongs to. If, after searching all existing task stacks, it is found that there is a task stack whose taskAffinity attribute is consistent with that of the target page, the task stack is determined as the target stack. In step S302, if there is no task stack whose attributes are consistent with those of the target page, a task stack is created and the task stack is determined as the target stack of the target page of the target application. For example, the attribute may be the affinity of the target page, that is, the taskAffinity attribute. Each Activity has a taskAffinity attribute, and the taskAffinity attribute can assign a task to the Activity, that is, specify which task the Activity belongs to. If, after searching all existing task stacks, it is found that there is no task stack whose taskAffinity attribute is consistent with that of the target page, a task stack is created to store the started target page, and the task stack serves as the target stack. This exemplary embodiment lists methods for determining the target stack in two different cases, with a simple determination method and strong applicability.
[0049] In step S102, if the current stack is different from the target stack, it is determined whether the target page meets a preset condition.
[0050] In the exemplary embodiment of the present disclosure, when the current stack and the target stack are two different task stacks, it can be determined whether the target page meets a preset condition.
[0051] In an alternative embodiment, the preset condition includes that the launch mode of the target page is the target mode. For example, the target mode may be the in-stack reuse mode (singleTask). The in-stack reuse mode means that when there is an Activity to be launched, if there is an instance of the Activity in the task, regardless of whether the Activity is at the top of the stack, the Activity can be reused, and other Activities above the Activity in the task stack are cleared so that the Activity is at the top of the stack, which can avoid repeated creation of Activities.
[0052] In an alternative embodiment, the preset condition includes that the object identifier of the target page is the target identifier. For example, the target identifier may be (the Intent.FLAG_ACTIVITY_NEW_TASK identifier). When the target application is in the background, the target page can be launched by calling the start activity parameter. During the process of launching the target page, a flag can be set for the intent object of the target page (also known as setflags) to allocate task affinity to the target page according to the set flag. Specifically, the setflags parameter can be set to (the Intent.FLAG_ACTIVITY_NEW_TASK identifier).
[0053] In step S103, if the target page meets the preset condition, the transfer page at the top of the target stack is displayed.
[0054] In an exemplary embodiment of the present disclosure, if the launch mode of the target page is the in-stack reuse mode or the (Intent.FLAG_ACTIVITY_NEW_TASK identifier) is added, the transfer page at the top of the target stack can be displayed.
[0055] In an alternative embodiment, the return operations of the current page and the target page are respectively managed by two return stacks of the target application. It should be noted that different task stacks themselves have a set of return stacks, that is, the current stack and the target stack each have a return stack. The return stack operates in a "last in, first out" object structure. For example, when the user clicks the "return" control, the current Activity pops out from the top of the stack, and the previous Activity resumes execution.
[0056] In an alternative embodiment, the current page is popped out of the stack and pushed into the return stack to display the transfer page at the top of the target stack. That is, the current page is popped out of the current stack and pushed into the return stack, and the display interface of the terminal device displays the transfer page at the top of the target stack. This transfer page can be a preset page in the target stack where the target page is located, facilitating the jump to the target page that the user intends to jump to.
[0057] In an alternative embodiment, Figure 4 shows a schematic flowchart of a method for jumping to a target page, as Figure 4As shown, the method at least includes the following steps: In step S401, listen for the second page jump event of the target application. A page jump event is an event that can perform page jumps. It can be triggered by opening a home page when opening the target application, a page jump event to the home page, or a page jump event to the target page when a certain page trigger condition is met. The second page jump event can be the second case. The way to listen for the second page jump event of the target application can be customized. For example, a unified jump class (classjump class) can be provided. By implementing the onclick method of the application program on the classjump class for listening. The onclick method occurs when an element is clicked, that is, when a certain control is clicked, corresponding operations can be executed. Listening for the second page jump event of the target application means listening for whether there is a page jump event in the target application. In step S402, based on the second page jump event, jump from the transfer page to the target page. For example, when the second page jump event is detected, it can be when the onclick method is executed, that is, when the second page jump event is detected, it can be realized to jump from the transfer page of the target stack to the target page. For example, if the target page is the next-level page of the transfer page, it can be realized through a single return operation; if the target page is a certain page several levels down from the target page, it can be realized through multiple return operations or by selecting in text, notes, etc. This exemplary embodiment does not make special limitations on this. In this exemplary embodiment, the second page jump event can be listened for through the system's built-in listening method, without adding extra components, and in different situations, the function of jumping from the transfer page to the target page can be realized, which is convenient for real-time response to page jump instructions.
[0058] In an alternative embodiment, perform a pop operation on the transfer page and push it onto the return stack to display the target page. That is, pop the transfer page from the target stack and push it into the return stack, and the display interface of the terminal device displays the target page. Thus, it can be seen that the transfer page can be an intermediate page that realizes switching the task stack while jumping the page. Therefore, after jumping to the target page, to reduce resource waste of the terminal device, the transfer page can be deleted.
[0059] In an alternative embodiment, Figure 5 shows a schematic flowchart of the setting method for the startup page of the target application, as Figure 5As shown, the method at least includes the following steps: In step S501, save the task stack name of the startup page of the target application. Each Activity has its own taskAffinity attribute, which indicates the task that the Activity hopes to enter. If an Activity does not explicitly specify the taskAffinity attribute, then the taskAffinity attribute of this Activity is equal to the taskAffinity attribute specified by the target application. If the target application does not specify it either, then the value of the taskAffinity attribute is equal to the package name of the target application. Therefore, set the name of the task stack here. In step S502, save the startup mode of the startup page as the target mode. For example, the target mode can be the in-stack reuse mode (singleTask). The in-stack reuse mode means that when there is an Activity that needs to be started, if there is an instance of this Activity in the task, regardless of whether this Activity is at the top of the stack, this Activity can be reused, and other Activities above this Activity in the task stack are cleared, so that this Activity is at the top of the stack, which can avoid creating Activities repeatedly. In this exemplary embodiment, setting the task stack name and startup mode of the startup page of the target application can avoid setting the taskAffinity attribute of the page one by one when subsequently opening the pages in the target application, reduce the operation process, and save operation time.
[0060] The following describes in detail the page display method in the embodiments of the present disclosure in combination with an application scenario.
[0061] Figure 6 The application interface diagram of the method for switching multi-task stacks is shown, as Figure 6 As shown, assume that the current page is the mth Activity page of taskN. Then when the user clicks on the preset touch UI for triggering a jump, for example, it can be a floating button, text, label, etc., the display page can be jumped to taskA. The user can jump to the fifth Activity of taskA without ending the current page. When the user clicks back, it will go back to the fourth Activity of taskA. When the page jump event is triggered again, it can be switched to taskN, and the user continues to operate the mth page of taskN.
[0062] Figure 7 The flow diagram of the method for adjusting the display page by switching multi-task stacks is shown, as Figure 7As shown, the target application can be opened by clicking on its icon. For example, the target application can be a food delivery application, which can have a merchant version, a delivery person version, and a user version. Assume that A is the task stack of the user version, B is the task stack of the delivery person version, and C is the task stack of the merchant version. At this time, the startup page of task stack A can be opened. Moreover, a floating button is preset on the application interface for triggering page jumps of the target application. By clicking the floating button, it is possible to select to jump to the target stack B of the delivery person version. Open the stack startup page of the delivery person version, that is, the transfer page. Since stack affinity is set, it is possible to complete the switch from the task stack A of the user version to the task stack B of the delivery person version. At this time, the target stack B did not exist before. The target application can create the startup page MainActivity of the target stack B, and due to the characteristics of the stack structure, it can be automatically added to the top of the target stack B, and the stack startup page is popped up. Thus, the function of switching the target application from the current stack A to the target stack B is realized. If the back control is clicked, and since MainActivity in the current stack is pushed to the bottom of the stack, the application can be directly exited from the startup page of the delivery person version. If the operator wants to return from the delivery person version to the user version at this time, since the user version was opened before, the target stack A exists at this time. Therefore, it is possible to directly return through the stack startup page of the target stack A and directly close the stack startup page, restoring to the Activity at the top of the target stack A.
[0063] In an exemplary embodiment of the present disclosure, the present disclosure makes a conditional judgment on the target page in the target application and sets a transfer page for the target stack to complete the switching display to the target page in the target stack. On the one hand, it can meet the user's need to quickly switch to the target page in the target stack, improve the user's time utilization rate, and is convenient to operate, enhancing the user experience; on the other hand, while the target application advances and returns in its respective task stacks, it can be switched to other task stacks for operation at any time, and the operation method is more flexible, without causing waste of development and maintenance resources and storage space.
[0064] In addition, in an exemplary embodiment of the present disclosure, a page display device is further provided. Figure 8 The structural schematic diagram of the page display device is shown, as Figure 8 shown, the page display device 800 may include: a task stack determination module 801, a condition judgment module 802, and a page display module 803. Among them:
[0065] The task stack determination module 801 is configured to determine the current stack that stores the current page of the target application and determine the target stack that stores the target page of the target application; the condition judgment module 802 is configured to judge whether the target page meets a preset condition if the current stack is different from the target stack; the page display module 803 is configured to display the transfer page at the top of the target stack if the target page meets the preset condition.
[0066] The specific details of the above page display device have been described in detail in the corresponding page display method, so they will not be elaborated here.
[0067] It should be noted that although several modules or units of the page display device 800 are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0068] In addition, in the exemplary embodiments of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0069] Hereinafter, reference is made to Figure 9 to describe the electronic device 900 according to this embodiment of the present invention. Figure 9 The displayed electronic device 900 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.
[0070] As Figure 9 shown, the electronic device 900 is presented in the form of a general-purpose computing device. The components of the electronic device 900 may include, but are not limited to: at least one of the above processing units 910, at least one of the above storage units 920, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
[0071] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 910, so that the processing unit 910 executes the steps according to various exemplary embodiments of the present invention described in the above "exemplary method" section of this specification.
[0072] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 921 and / or a cache storage unit 922, and may further include a read-only storage unit (ROM) 923.
[0073] The storage unit 920 may also include a program / utility 924 having a set (at least one) of program modules 925. Such program modules 925 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. The implementation of a network environment may be included in each or some combination of these examples.
[0074] The bus 930 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus structures.
[0075] The electronic device 900 may also communicate with one or more external devices 1100 (such as a keyboard, a pointing device, a Bluetooth device, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication may be carried out through the input / output (I / O) interface 950. Moreover, the electronic device 900 may also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 960. As shown in the figure, the network adapter 940 communicates with other modules of the electronic device 900 through the bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0076] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by the way of software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0077] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which there is a program product capable of implementing the above method of this specification. In some possible embodiments, various aspects of the present invention may also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of this specification.
[0078] Reference Figure 10As shown, a program product 1000 for implementing the above method according to an embodiment of the present invention is described. It may be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0079] The program product may employ any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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 above.
[0080] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which the readable program code is carried. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0081] The program code contained on the readable medium may be transmitted by any appropriate medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.
[0082] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0083] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are pointed out by the claims.
Claims
1. A page display method, characterized in that, the method includes: Determine the current stack that saves the current page of the target application, and determine the target stack that saves the target page of the target application; If there is a difference between the current stack and the target stack, determine whether the target page meets a preset condition; the preset condition includes that the start mode of the target page is a target mode; the preset condition includes that the object identifier of the target page is a target identifier; If the target page meets the preset condition, display the transfer page at the top of the target stack; the transfer page is a preset page of the target stack where the target page is located, and is used to jump to the target page that the user intends to jump to; The determination of the target stack that saves the target page of the target application includes: Monitor the first page jump event of the target application; When the first page jump event is monitored, determine the target stack that saves the target page of the target application; The method further includes: Monitor the second page jump event of the target application; Based on the second page jump event, jump from the transfer page to the target page.
2. The page display method according to claim 1, characterized in that, The determination of the target stack that saves the target page of the target application includes: If there is a task stack with the same attributes as the target page, determine the task stack as the target stack of the target page of the target application; If there is no task stack with the same attributes as the target page, create the task stack and determine the task stack as the target stack of the target page of the target application.
3. The page display method according to claim 1, characterized in that, The method further includes: Manage the return operations of the current page and the target page respectively through two return stacks of the target application.
4. The page display method according to claim 3, characterized in that, The display of the transfer page at the top of the target stack includes: Perform a pop operation on the current page and push it into the return stack to display the transfer page at the top of the target stack.
5. The page display method according to claim 3, characterized in that, The jump from the transfer page to the target page includes: Perform a pop operation on the transfer page and push it into the return stack to display the target page.
6. The page display method according to claim 1, characterized in that, Before determining the target stack that saves the target page of the target application, the method further includes: Save the task stack name of the start page of the target application; Save the start mode of the start page as the target mode.
7. A page display device, characterized in that, includes: A task stack determination module configured to determine the current stack that saves the current page of the target application and determine the target stack that saves the target page of the target application; A condition judgment module configured to determine whether the target page meets a preset condition if there is a difference between the current stack and the target stack; The preset conditions include that the startup mode of the target page is the target mode; the preset conditions include that the object identifier of the target page is the target identifier. A page display module, configured to display the transfer page at the top of the target stack if the target page meets the preset conditions; the transfer page is a preset page of the target stack where the target page is located, and is used to jump to the target page that the user intends to jump to. A task stack determination module, configured to: Monitor the first page jump event of the target application; When the first page jump event is monitored, determine the target stack for saving the target page of the target application; The page display device is further configured to: Monitor the second page jump event of the target application; Based on the second page jump event, jump from the transfer page to the target page.
8. A computer-readable storage medium, on which a computer program is stored, Characterized in that, When the computer program is executed by a processor, it implements the page display method according to any one of claims 1-6.
9. An electronic device, Characterized in that, Comprising: A processor; A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the page display method according to any one of claims 1-6 by executing the executable instructions.
Citation Information
Patent Citations
A method and system for page jump of an application program
CN109358934A