Application running method, device, electronic device and storage medium
By detecting the quick start condition of the scheduling request in the application, skipping the home page loading, and directly loading and displaying the target page, the problem of too long waiting time after external scheduling in the prior art is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202111566278.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2041-12-20
AI Technical Summary
After receiving external call requests, existing applications first load the home page and then load the lower page, resulting in the user waiting time being too long and affecting the user experience.
When the target page is detected, the protocol information is obtained. If the preset fast start condition is met, the home page loading is skipped, and the target page is directly loaded, and the home page data is hidden during the loading of the target data by displaying the startup picture.
Simplify the process of tuning the target page, quickly display the target page, improve user experience, reduce user waiting time, and reduce user churn rate.
Smart Images

Figure CN114237755B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more particularly to the field of mobile application technology, and can be applied to scenarios such as page display. Background Art
[0002] Currently, some applications (APPs) can receive external calls to open corresponding pages. External calls usually instruct the application to open a lower-level page of the homepage. However, after receiving an external call, existing applications first load the application's homepage and then load the lower-level page indicated by the external call. This results in a long time before the actual lower-level page is displayed, affecting the user experience. Summary of the Invention
[0003] The present disclosure provides an application execution method, an apparatus, an electronic device, and a storage medium.
[0004] According to a first aspect of the present disclosure, there is provided an application running method, comprising:
[0005] When a call request for a target page of the application is detected, protocol information in the call request is obtained, where the level of the target page is lower than the level of the homepage of the application;
[0006] When it is determined based on the protocol information that the launch request meets the preset quick launch conditions, the application's launch image is displayed and loading of the home page data of the home page is stopped;
[0007] Load the target data of the target page;
[0008] After the target data is loaded, hide the startup image and display the target page based on the target data.
[0009] According to a second aspect of the present disclosure, there is provided an application running device, comprising:
[0010] An information acquisition module, configured to acquire protocol information in a call request when detecting a call request for a target page of an application, wherein the target page has a lower level than the homepage of the application;
[0011] The application startup module is used to display the application startup image and stop loading the home page data when determining based on the protocol information that the startup request meets the preset quick startup conditions;
[0012] Target data loading module, used to load target data of target page;
[0013] The target page display module is used to hide the startup image and display the target page based on the target data after the target data is loaded.
[0014] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0015] at least one processor; and a memory communicatively coupled to the at least one processor;
[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned application running method.
[0017] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned application running method.
[0018] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the above-mentioned application running method when executed by a processor.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description.
[0020] The beneficial effects brought about by the technical solution provided by the present disclosure are:
[0021] In the technical solution disclosed herein, when it is determined that the call request meets the preset quick start conditions, the home page loading can be skipped, and the target page corresponding to the call request can be loaded and displayed first. This can simplify the call process of the target page, and can quickly display the target page, which helps to improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.
[0023] Figure 1 A schematic diagram of page stack switching of an existing application displaying a target page is shown;
[0024] Figure 2 A schematic diagram showing a flow chart of an application running method provided by an embodiment of the present disclosure is shown;
[0025] Figure 3 A schematic diagram showing a flow chart of another application running method provided by an embodiment of the present disclosure;
[0026] Figure 4 A schematic diagram of page stack switching for displaying a target page according to the application running method provided by an embodiment of the present disclosure is shown;
[0027] Figure 5One of the schematic diagrams of an application running device provided by an embodiment of the present disclosure is shown;
[0028] Figure 6 A second schematic diagram of an application running device provided by an embodiment of the present disclosure is shown;
[0029] Figure 7 A schematic block diagram of an example electronic device that can be used to implement the application running method provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0030] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0031] Currently, some applications (Application, APP) can receive external calls to open the corresponding page. External calls usually instruct the application to open the lower-level page of the homepage. External calls can be calls initiated from other applications, calls to applications initiated from browsers, calls to applications based on desktop shortcuts, calls to applications based on clipboards, calls to applications based on widgets, calls to applications in Spotlight search scenarios, and calls based on application push notifications. It should be noted here that a widget (Web widget, referred to as Widget) is a derivative of Web 2.0. It is like a small application. It can be a clock, a diary, a video, a weather forecast, a Flash game, etc. Spotlight is a fast, on-the-fly, system-supported desktop search engine for Mac OS X v10.4.
[0032] However, existing applications, upon receiving an external call, first load the application's homepage, then the underlying pages indicated by the external call. This results in a long delay before the desired underlying pages are displayed, increasing user wait time and impacting the user experience. Furthermore, if the user wait time is too long (e.g., longer than 3 seconds), they are likely to cancel the wait and exit, resulting in user churn and a decrease in the app's reach.
[0033] The application running method, device, electronic device, and storage medium provided by the embodiments of the present disclosure are intended to solve at least one of the above technical problems in the prior art.
[0034] For ease of understanding and description, this disclosure defines the page to be displayed as indicated by the call request as the target page. The target page is at a lower level than the application's homepage, representing a lower level than the homepage. Existing applications, whether displaying a target page based on an external call or a click on their own icon, first load the application's homepage, followed by the target page below it. Figure 1 A schematic diagram of page stack switching of an existing application displaying a target page is shown. Figure 1 The child Figure 1 As shown in a, in the main window (Key Window) of the application, the navigation controller creates a home page container corresponding to the home page, loads the home page data of the home page, and displays the home page based on the home page container and home page data. Figure 1 The child Figure 1 As shown in b, the navigation controller creates a target container corresponding to the target page, loads the target data of the target page, and displays the target page based on the target container and the target data. Here, the navigation controller can be NavView Controller, and the main controller of the navigation controller can be TabView Controller.
[0035] The application running method provided by the embodiment of the present disclosure can skip loading the home page and give priority to loading and displaying the target page when it is necessary to open the target page.
[0036] Figure 2 A flow chart of an application running method provided by an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the method may mainly include the following steps:
[0037] S210: When a call request for a target page of an application is detected, protocol information in the call request is obtained.
[0038] In the disclosed embodiment, the target page is at a lower level than the application's homepage, that is, the target page is a lower-level page of the application's homepage. The call request for the target page is used to instruct the application to display the target page. The call request can be any of the external calls described above. When the disclosed embodiment detects a call request for the application's target page, it can intercept the application's external call entry and obtain protocol information from the call request.
[0039] S220: When it is determined based on the protocol information that the startup request meets the preset quick startup condition, the startup image of the application is displayed and the loading of the home page data of the home page is stopped.
[0040] The embodiment of the present disclosure can pre-set a judgment condition for the content contained in the protocol information, and use the judgment condition as a quick start condition. When the content contained in the protocol information meets the corresponding judgment condition, it can be determined that the call request meets the preset quick start condition. It can be understood that the specific content of the quick start condition can be based on the type of content contained in the protocol information. It should be noted here that when the call request meets the preset quick start condition, the quick start process can be used for the call request, that is, the loading of the home page can be skipped and the target page can be loaded and displayed first.
[0041] The embodiment of the present disclosure may use the quick launch process only for the call request of the execution source, and for the call request that needs to use the quick launch process, the specified parameters may be configured in its protocol information. When it is detected that the protocol information contains the specified parameters, it can be determined that the call request meets the preset quick launch conditions. Optionally, for the call request that needs to use the quick launch process, a preset target parameter may be configured in its protocol information, and the target parameter is used to indicate that the target page needs to be displayed first. In step S220, the embodiment of the present disclosure may parse the parameters contained in the protocol information, and when it is determined that the protocol information contains the target parameter, it is determined that the call request meets the preset quick launch conditions. Here, the target parameter may be a Quick Launch parameter, and Quick Launch is a parameter used to indicate quick launch. When the Quick Launch parameter is included in the protocol information of the call request, it indicates that the source of the call request itself has the need to quickly open the target page.
[0042] The embodiment of the present disclosure can use the quick start process only for the call request of the execution source. The present disclosure can pre-establish a parameter list in real time, and for the call request that needs to use the quick start process, the specified parameters in its protocol information can be added to the parameter list. When it is detected that the specified parameters of the protocol information are in the parameter list, it can be determined that the call request meets the preset quick start conditions. Optionally, the module (Module) name and operation method (Action) name in the protocol information can be added to the parameter list, the module name is the name of the module of the program that initiates the call request, and the operation method name is the name of the operation method to be executed based on the target page.
[0043] . In step S220, the embodiment of the present disclosure can parse the parameters contained in the protocol information, obtain the module name and operation method name in the protocol information; when it is determined that the module name and the operation method name are both in the preset parameter list, it is determined that the call request meets the preset quick start condition. It should be noted here that, since new parameters (such as target parameters) cannot be added to the protocol information of the call request from some sources, or the process of adding new parameters is relatively complicated, a parameter list can be established for this type of call request, and the module name and operation method name in the protocol information of the call request can be added to the parameter list, so that the call request's need for the quick start process can be identified, and the quick start process can be used for the call request.
[0044] Optionally, the parameters contained in the protocol information are parsed, and when it is determined that the protocol information contains preset target parameters, the invocation request is determined to meet the preset quick start conditions; when it is determined that the protocol information does not contain the target parameters, the module name and operation method name in the protocol information are obtained, and when it is determined that the module name and operation method name are both in the preset parameter list, the invocation request is determined to meet the preset quick start conditions. It is understood that when it is determined that the invocation request does not meet the preset quick start conditions, a conventional process can be used to display the target page. Specifically, the application homepage can be loaded first, and then the target page below the homepage can be loaded.
[0045] After determining that the call request meets the preset quick start conditions, the application can be started to open the main window of the application, and the loading of the home page data of the home page can be stopped immediately to avoid occupying too many network resources, so as to load the target data of the target page based on the saved network resources.
[0046] In the disclosed embodiments, when it is determined that a launch request meets preset quick launch conditions, the application's launch image can be displayed for the user to view, thereby facilitating the loading of target data while the launch image is displayed, rendering the user unaware of the target data loading process and improving the user experience. Optionally, when displaying the application's launch image, the disclosed embodiments can create an empty container within the application, set the empty container as the root container, retrieve the launch image from the application's files, and display the launch image based on the empty container.
[0047] S230: Load target data of the target page.
[0048] It should be understood that the embodiment of the present disclosure can load the target data of the target page during the display of the startup image, so that the user is unaware of the recording process of the target data.
[0049] S240: After the target data is loaded, the startup image is hidden and the target page is displayed based on the target data.
[0050] In step S240 , the embodiment of the present disclosure may create a target container corresponding to the target page, and display the target page based on the target container and the target data.
[0051] The application running method provided by the embodiment of the present disclosure can skip the loading of the home page when it is determined that the call request meets the preset quick start conditions, and preferentially load and display the target page corresponding to the call request. This can simplify the call process of the target page, can quickly display the target page, and help improve the user experience.
[0052] Optionally, after step S240, the home page data of the home page can be loaded, and then the home page can be displayed based on the home page data in response to the user's home page display operation for the application. Loading the home page data after the target page is displayed can ensure that the target page can be displayed quickly and the home page data can be loaded in time to meet the user's needs when the user requests to display the home page.
[0053] Figure 3 A flow chart of another application running method provided by an embodiment of the present disclosure is shown. Figure 3 As shown, the method may mainly include the following steps:
[0054] S310: When a call request for a target page of an application is detected, protocol information in the call request is obtained.
[0055] In the disclosed embodiment, the target page is at a lower level than the application's homepage, that is, the target page is a lower-level page of the application's homepage. The call request for the target page is used to instruct the application to display the target page. The call request can be any of the external calls described above. When the disclosed embodiment detects a call request for the application's target page, it can intercept the application's external call entry and obtain protocol information from the call request.
[0056] S320: Analyze the parameters included in the protocol information.
[0057] In the embodiment of the present disclosure, the protocol information may include at least one of a target parameter, a module name, and an operation method name. After step S310, step S330 or step S340 may be executed.
[0058] S330: When it is determined that the protocol information includes the preset target parameter, determine whether the call-up request meets the preset quick start condition.
[0059] After step S330, step S360 is executed.
[0060] S340: When it is determined that the protocol information does not include the preset target parameter, obtain the module name and the operation method name in the protocol information.
[0061] After step S340, step S350 is executed.
[0062] S350: When it is determined that the module name and the operation method name are both in the preset parameter list, it is determined that the call request meets the preset quick start condition.
[0063] After step S350, step S360 is executed.
[0064] The definition of protocol information is as follows:
[0065] scheme: / / module / action?p1=a&p2=b&quicklaunch=1. For example, protocol information a is scheme: / / aaa11 / bbb22?p1=a&p2=b&quicklaunch=1, and protocol information b is scheme: / / aaa33 / bbb44?p1=a&p2=b. Protocol information a contains quicklaunch=1, so it can be determined that the launch request corresponding to protocol information a meets the preset quick launch conditions. Protocol information b's module name aaa33 and action method name bbb44 are both in the parameter list, so it can be determined that the launch request corresponding to protocol information b meets the preset quick launch conditions. S360: Create an empty container in the application and set the empty container as the root container.
[0066] S370: Retrieve a startup image from the application file, and display the startup image based on the empty container.
[0067] S380: While the startup image is displayed, target data of the target page is loaded.
[0068] Here, a startup image may be displayed for the user to watch, and target data may be loaded during the display of the startup image, so that the user is unaware of the process of loading the target data, thereby improving the user experience.
[0069] S390: After the target data is loaded, the startup image is hidden and the target page is displayed based on the target data.
[0070] In step S390 , the embodiment of the present disclosure may create a target container corresponding to the target page, and display the target page based on the target container and the target data.
[0071] The application running method provided by the embodiment of the present disclosure can skip the loading of the home page when it is determined that the call request meets the preset quick start conditions, and preferentially load and display the target page corresponding to the call request. This can simplify the call process of the target page, can quickly display the target page, and help improve the user experience.
[0072] Optionally, after step S390, the home page data of the home page can be loaded, and then the home page can be displayed based on the home page data in response to the user's operation to display the home page of the application. Loading the home page data after the target page is displayed can ensure that the target page can be displayed quickly and the home page data can be loaded in time to meet the user's needs when the user requests to display the home page.
[0073] Optionally, when loading the home page data of the home page, the embodiment of the present disclosure may calculate the display duration of the target page, and start loading the home page data of the home page when it is determined that the display duration has reached a preset duration. Here, loading the home page data after the display duration has reached the preset duration can avoid blocking the user's operations on the target page due to loading the home page data too quickly. For example, after the target page is displayed, the user may request to display an enlarged image of a certain picture on the target page or to enter the next sub-page. Reserving a period of time after the target page is displayed before loading the home page data can avoid the display of an enlarged image of a certain picture or entering the next sub-page being shelved due to loading the home page data.
[0074] Optionally, in response to a user's homepage display operation for an application, when displaying the homepage based on the homepage data, embodiments of the present disclosure may create a homepage container in the application in response to the user's homepage display operation for the application, then delete the empty container; then set the homepage container as the root container, and display the homepage based on the homepage container and the homepage data. Here, the empty container is created in the above steps in response to the call request.
[0075] Figure 4 The schematic diagram of the page stack switching of the target page displayed based on the application running method provided by the embodiment of the present disclosure is shown. When it is determined that the call request meets the preset quick start conditions, the application is started and the loading of the home page data of the home page is stopped. Then the target page is loaded first. The loading process can be seen in Figure 4 The child Figure 4 a to sub Figure 4 As shown in c. Figure 4 The child Figure 4 As shown in a, in the main window of the application, the navigation controller creates an empty container and displays the startup image based on the empty container; then Figure 4 The child Figure 4 As shown in b, the navigation controller creates a target container corresponding to the target page, loads the target data of the target page, and displays the target page based on the target container and target data; then as Figure 4 The child Figure 4 As shown in c, when the user's operation to display the home page of the application is detected, the navigation controller deletes the empty container and creates a home page container, loads the home page data of the home page, and displays the home page based on the home page container and the home page data.
[0076] Based on the same principle as the above-mentioned application running method, the embodiment of the present disclosure also provides an application running device. Figure 5 One of the schematic diagrams of an application running device provided by an embodiment of the present disclosure is shown. Figure 6 FIG2 shows a second schematic diagram of an application running device provided by an embodiment of the present disclosure. Figure 5 As shown, the application running device 500 includes an information acquisition module 510 , an application starting module 520 , a target data loading module 530 and a target page display module 540 .
[0077] The information acquisition module 510 is used to acquire protocol information in a call request when a call request for a target page of an application is detected, where the level of the target page is lower than the level of the home page of the application.
[0078] The application startup module 520 is configured to display the application startup image and stop loading the home page data when determining based on the protocol information that the startup request meets the preset quick startup condition.
[0079] The target data loading module 530 is used to load target data of a target page.
[0080] The target page display module 540 is used to hide the startup image and display the target page based on the target data after the target data is loaded.
[0081] The application running device provided by the embodiment of the present disclosure can skip the loading of the home page when it is determined that the call request meets the preset quick start conditions, and preferentially load and display the target page corresponding to the call request. This can simplify the call process of the target page, can quickly display the target page, and help improve the user experience.
[0082] In the embodiment of the present disclosure, the application startup module 520 is configured to determine whether the startup request meets the preset quick startup condition by:
[0083] Parse the parameters contained in the protocol information;
[0084] When it is determined that the protocol information includes the preset target parameters, determining that the call request meets the preset quick start condition;
[0085] The target parameter is used to indicate that the target page needs to be displayed first.
[0086] In the embodiment of the present disclosure, the application startup module 520 is configured to determine whether the startup request meets the preset quick startup condition by:
[0087] Parse the parameters contained in the protocol information and obtain the module name and operation method name in the protocol information. The module name is the name of the module of the program that initiates the call request, and the operation method name is the name of the operation method to be executed based on the target page.
[0088] When it is determined that the module name and the operation method name are both in the preset parameter list, it is determined that the call request meets the preset quick start condition.
[0089] In the embodiment of the present disclosure, when the application startup module 520 is used to display the startup image of the application, it is specifically used to:
[0090] Create an empty container in the application and set it as the root container.
[0091] Retrieve the startup image from the application's file and display it based on an empty container.
[0092] like Figure 6 As shown, the application running device 500 provided by the embodiment of the present disclosure includes a page rendering, an application startup module 520, a target data loading module 530 and a target page display module 540, and also includes a home page display module 550. The home page display module 550 is used to: load the home page data of the home page; respond to the user's home page display operation for the application, and display the home page based on the home page data.
[0093] In the embodiment of the present disclosure, when the home page display module 550 is used to load the home page data of the home page, it is specifically used to:
[0094] Calculate the display time of the target page;
[0095] When it is determined that the display time reaches the preset time, the home page data of the home page starts to be loaded.
[0096] In the embodiment of the present disclosure, the home page display module 550 is used to respond to a user's home page display operation for an application and display the home page based on the home page data, specifically to:
[0097] In response to a user's operation of displaying a home page of the application, creating a home page container in the application;
[0098] Deleting empty containers that were created in response to a call request;
[0099] Set the homepage container as the root container and display the homepage based on the homepage container and homepage data.
[0100] It can be understood that the above-mentioned modules of the application running device in the embodiment of the present disclosure have the function of implementing the corresponding steps of the above-mentioned application running method. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned functions. The above-mentioned modules can be software and / or hardware, and the above-mentioned modules can be implemented separately or integrated into multiple modules. For the functional description of each module of the above-mentioned application running device, please refer to the corresponding description of the above-mentioned application running method, which will not be repeated here.
[0101] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0102] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0103] Figure 7 A schematic block diagram of an example electronic device that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0104] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the device 700 can also be stored in the RAM 703. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0105] Various components in device 700 are connected to I / O interface 705, including an input unit 706, such as a keyboard, mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a magnetic disk, optical disk, etc.; and a communication unit 709, such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows device 700 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0106] The computing unit 701 can be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the application execution method. For example, in some embodiments, the application execution method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the application execution method described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to execute the application execution method by any other appropriate means (e.g., by means of firmware).
[0107] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system comprising at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0109] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 input, voice input, or tactile input).
[0111] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, 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.
[0112] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0113] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0114] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A method for running an application, comprising: When a call request for a target page of the application is detected, obtaining protocol information in the call request, wherein the level of the target page is lower than the level of the home page of the application; Parsing parameters contained in the protocol information; When it is determined that the protocol information includes a preset target parameter, determining that the call-up request meets a preset quick start condition, wherein the target parameter is used to indicate that the target page needs to be displayed preferentially; Create an empty container in the application, and set the empty container as the root container; Retrieving a startup image from a file of the application, displaying the startup image based on the empty container, and stopping loading home page data of the home page; Loading target data of the target page during displaying the startup image; After the target data is loaded, hiding the startup image and displaying the target page based on the target data; Loading home page data of the home page; In response to a user's operation of displaying a home page of the application, creating a home page container in the application; deleting an empty container, the empty container being created in response to the call request; The home page container is set as a root container, and the home page is displayed based on the home page container and the home page data.
2. The method according to claim 1, further comprising: Parsing the parameters contained in the protocol information, obtaining the module name and the operation method name in the protocol information, wherein the module name is the name of the module of the program that initiates the call request, and the operation method name is the name of the operation method to be executed based on the target page; When it is determined that the module name and the operation method name are both in the preset parameter list, it is determined that the call-up request meets the preset quick start condition.
3. The method according to claim 1, wherein: The loading of the home page data of the home page includes: Calculating the display time of the target page; When it is determined that the display time reaches the preset time, the home page data of the home page starts to be loaded.
4. An application running device, comprising: An information acquisition module, configured to acquire protocol information in a call-up request when a call-up request for a target page of an application is detected, wherein the level of the target page is lower than the level of the home page of the application; An application startup module, used to parse the parameters contained in the protocol information; when it is determined that the protocol information contains a preset target parameter, determine that the call request meets the preset quick start condition, wherein the target parameter is used to indicate that the target page needs to be displayed first; create an empty container in the application, and set the empty container as a root container; call a startup image from a file of the application, display the startup image based on the empty container, and stop loading the home page data of the home page; A target data loading module, used for loading the target data of the target page during displaying the startup image; A target page display module, used for hiding the startup image and displaying the target page based on the target data after the target data is loaded; A home page display module is used to load the home page data of the home page, create a home page container in the application in response to the user's home page display operation for the application; delete an empty container, which is created in response to the call-up request; set the home page container as a root container, and display the home page based on the home page container and the home page data.
5. The device according to claim 4, wherein the application startup module is further configured to: Parsing the parameters contained in the protocol information, obtaining the module name and the operation method name in the protocol information, wherein the module name is the name of the module of the program that initiates the call request, and the operation method name is the name of the operation method to be executed based on the target page; When it is determined that the module name and the operation method name are both in the preset parameter list, it is determined that the call-up request meets the preset quick start condition.
6. The device according to claim 4, wherein: When the home page display module is used to load the home page data of the home page, it is specifically used to: Calculating the display time of the target page; When it is determined that the display time reaches the preset time, the home page data of the home page starts to be loaded.
7. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed 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 according to any one of claims 1 to 3.
8. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 3.
9. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method and device for evoking APP, electronic device and readable storage medium
CN108121568A
Cross-application communication method, cross-application communication device and electronic equipment
CN112764942A