CN114237755B - Application running method, device, electronic equipment and storage medium - Google Patents
Application running method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114237755B CN114237755B CN202111566278.1A CN202111566278A CN114237755B CN 114237755 B CN114237755 B CN 114237755B CN 202111566278 A CN202111566278 A CN 202111566278A CN 114237755 B CN114237755 B CN 114237755B
- Authority
- CN
- China
- Prior art keywords
- page
- target
- home page
- application
- call request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 85
- 230000004044 response Effects 0.000 claims abstract description 11
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 claims description 9
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44568—Immediately runnable code
- G06F9/44578—Preparing or optimising for loading
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure provides an application running method, an application running device, electronic equipment and a storage medium, relates to the technical field of computers, in particular to the technical field of mobile application, and can be applied to scenes such as page display. The method comprises the steps of obtaining protocol information in a call request when the call request of a target page of an application is detected, enabling the target page to be lower than a home page of the application in the hierarchy, starting the application and stopping loading home page data of the home page when the call request meets a preset quick starting condition based on the protocol information, loading the target data of the target page in response to the call request, and displaying the target page based on the target data. According to the method, when the call request is determined to meet the preset quick starting condition, the home page loading can be skipped, the target page corresponding to the call request is loaded and displayed preferentially, the call flow of the target page can be simplified, the target page can be displayed quickly, and user experience is improved.
Description
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of mobile applications, and can be applied to scenes such as page display.
Background
Currently, some Applications (APP) may receive an external call to open a corresponding page, which is typically a lower page that instructs the Application to open the home page. However, after receiving the external call, the existing application loads the first page of the application, and then loads the lower page indicated by the external call, which results in a long time for displaying the actually required lower page, and affects the user experience.
Disclosure of Invention
The disclosure provides an application running method, an application running device, electronic equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided an application running method, including:
when a call request for a target page of an application is detected, protocol information in the call request is acquired, wherein the level of the target page is lower than that of a home page of the application;
when the calling request is determined to accord with a preset quick starting condition based on the protocol information, displaying a starting picture of the application, and stopping loading the first page data of the first page;
Loading target data of a target page;
After the target data is loaded, hiding the starting picture and displaying the target page based on the target data.
According to a second aspect of the present disclosure, there is provided an application running apparatus including:
The information acquisition module is used for acquiring protocol information in a call request when the call request for a target page of the application is detected, wherein the level of the target page is lower than that of a home page of the application;
The application starting module is used for displaying a starting picture of the application and stopping loading the first page data of the first page when the calling request is determined to accord with the preset quick starting condition based on the protocol information;
the target data loading module is used for loading target data of a target page;
And the target page display module is used for hiding the starting picture and displaying the target page based on the target data after the target data are loaded.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
and a memory communicatively coupled to the at least one processor;
Wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the application execution method described above.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the above-described application running method.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described application running method.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
The beneficial effects that this disclosure provided technical scheme brought are:
In the technical scheme of the disclosure, when the call request is determined to meet the preset quick start condition, the home page loading can be skipped, the target page corresponding to the call request is loaded and displayed preferentially, the call flow of the target page can be simplified, the target page can be displayed quickly, and the user experience is improved.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 illustrates a page stack switching diagram of a prior art application display target page;
FIG. 2 is a flow chart illustrating an application running method according to an embodiment of the present disclosure;
FIG. 3 illustrates a flowchart of another method for running an application provided by an embodiment of the present disclosure;
FIG. 4 illustrates a page stack switch diagram of a display target page according to an application running method provided by an embodiment of the present disclosure;
FIG. 5 illustrates one of the schematic diagrams of an application running apparatus provided by an embodiment of the present disclosure;
FIG. 6 illustrates a second schematic diagram of an application running device provided by an embodiment of the present disclosure;
FIG. 7 illustrates a schematic block diagram of an example electronic device that may be used to implement the application running methods provided by embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Currently, some Applications (APP) may receive an external call to open a corresponding page, which is typically a lower page that instructs the Application to open the home page. The external invocation may be an invocation from other applications, an invocation from a browser, an invocation from a desktop shortcut, an invocation from an application based on a clipboard, an invocation from an application based on a Widget, an invocation from an application based on a Spotlight search scenario, and an invocation from a push notification based on an application. It should be noted that Widget (Web Widget, abbreviated as Widget) is a derivative of web2.0, which appears as a small application, and may be a clock, a diary, a video, a weather forecast, a Flash game, etc. Spotlight is a fast, hit-and-find, system-supported desktop search engine of macosxv 10.4.
However, after receiving the external call, the existing application loads the first page of the application, and then loads the lower page indicated by the external call, which results in a longer time to display the actually needed lower page, which increases the waiting time of the user and affects the user experience. In addition, if the user waits too long (e.g., greater than 3 s), the user is likely to cancel waiting to exit, resulting in user churn and a decrease in the arrival rate of the application.
The application running method, device, electronic equipment and storage medium provided by the embodiment of the disclosure aim to solve at least one of the technical problems in the prior art.
For ease of understanding and description, the embodiments of the present disclosure define a page to be displayed indicated by a call request as a target page, the target page being lower in hierarchy than a home page of an application, the target page being a lower page of the home page. The existing application loads the first page of the application and then loads the target page at the lower layer of the first page no matter the target page is displayed based on external calling or clicking operation for the icon of the application. Fig. 1 shows a page stack switching schematic diagram of an existing application display target page, as shown in sub-graph 1a in fig. 1, in a main Window (Key Window) of an application, a navigation controller creates a home page container corresponding to a home page, loads home page data of the home page, and displays the home page based on the home page container and the home page data. Then, as shown in sub-graph 1b of fig. 1, the navigation controller creates a target container corresponding to the target page, loads target data of the target page, and displays the target page based on the target container and the target data. Here, the navigation controller may NavView Contorller, and the main controller of the upper stage of the navigation controller may be TabView Contorller.
According to the application running method provided by the embodiment of the disclosure, when the target page needs to be opened, the loading of the first page can be skipped to load and display the target page preferentially.
Fig. 2 shows a flowchart of an application running method provided by an embodiment of the present disclosure, as shown in fig. 2, the method may mainly include the following steps:
And S210, when a call request for a target page of the application is detected, acquiring protocol information in the call request.
In the embodiment of the disclosure, the hierarchy of the target page is lower than the hierarchy of the home page of the application, that is, the lower page of the home page of the application when the target page is, the call request for the target page is used to instruct the application to display the target page. The call request may be any external call, and when a call request for a target page of an application is detected, the embodiment of the disclosure may intercept an entry of the external call of the application, and acquire protocol information from the call request.
And S220, displaying a starting picture of the application and stopping loading the first page data of the first page when the calling request is determined to accord with the preset quick starting condition based on the protocol information.
The embodiment of the disclosure can preset a judging condition for the content contained in the protocol information, and the judging condition is used as a quick starting condition. When the content contained in the protocol information meets the corresponding judgment condition, the call request can be determined to meet the preset quick start condition. It will be appreciated that the specific content of the quick start condition may be based on the type of content contained in the protocol information. It should be noted that, when the call request meets the preset quick start condition, the quick start procedure may be used for the call request, that is, the first page loading may be skipped to load and display the target page preferentially.
The embodiment of the disclosure can use the quick start flow only for the call request of the execution source, and can configure the designated parameters in the protocol information of the call request needing to use the quick start flow. When the protocol information is detected to contain the specified parameter, the call request can be determined to meet a preset quick start condition. Optionally, for a call request requiring the use of the quick start procedure, a preset target parameter may be configured in the protocol information thereof, where the target parameter is used to indicate that the target page needs to be preferentially displayed. In step S220, the embodiment of the present disclosure may parse the parameters included in the protocol information, and determine that the call request meets the preset quick start condition when determining that the protocol information includes the target parameters. Here, the target parameter may be a Quick Launch parameter, which is a parameter for indicating Quick start, and when the protocol information of the call request includes the Quick Launch parameter, it indicates that the source of the call request itself has a requirement of Quick opening of the target page.
Embodiments of the present disclosure may use a quick start procedure only for call requests from execution sources. The method and the device can establish a parameter list in advance in real time, and can add specified parameters in protocol information of a call request requiring the use of a quick start procedure into the parameter list. When the specified parameters of the protocol information are detected to be in the parameter list, the fact that the call request meets the preset quick start condition can be determined. Alternatively, a Module name, which is the name of the Module of the program that initiated the call request, and an operation method (Action) name, which is the name of the operation method to be executed based on the target page, in the protocol information may be added to the parameter list.
. In step S220, the embodiment of the present disclosure may parse parameters included in the protocol information to obtain a module name and an operation method name in the protocol information, and determine that the call request meets a preset quick start condition when determining that the module name and the operation method name are both in a preset parameter list. It should be noted that, because some source of the protocol information of the call request cannot add new parameters (such as target parameters), or the process of adding new parameters is complex, a parameter list can be established for such call request, and the module name and the operation method name in the call request of the protocol information are added to the parameter list, so as to identify the requirement of the call request on the quick start procedure, thereby using the quick start procedure for the call request.
Optionally, analyzing parameters contained in the protocol information, determining that the call request meets a preset quick start condition when the protocol information is determined to contain preset target parameters, acquiring a module name and an operation method name in the protocol information when the protocol information is determined to not contain the target parameters, and determining that the call request meets the preset quick start condition when the module name and the operation method name are determined to be in a preset parameter list. It will be appreciated that when it is determined that the call request does not meet the preset quick start condition, a conventional procedure may be used to display the target page, specifically, the home page of the application may be loaded first, and then the target page on the lower layer of the home page may be loaded.
After determining that the call-up request meets the preset quick start condition, the application can be started to open a main window of the application, and immediately stop loading the first page data of the first page, so that excessive network resources are prevented from being occupied, and target data of the target page are loaded based on the saved network resources.
In the embodiment of the disclosure, when the call request is determined to meet the preset quick start condition, the start picture of the application can be displayed for the user to watch, so that the target data can be conveniently loaded during the process of displaying the start picture, the user does not feel the recording process of the target data, and the user experience is improved. Optionally, when the method is used for displaying the starting picture of the application, the method can create an empty container in the application, set the empty container as a root container, call the starting picture from the file of the application and display the starting picture based on the empty container.
S230, loading target data of the target page.
It should be appreciated that embodiments of the present disclosure may load target data of a target page during display of a startup picture such that a user is unaware of the documenting process of the target data.
And S240, after the target data is loaded, hiding the starting picture and displaying the target page based on the target data.
In step S240, embodiments 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.
According to the application running method provided by the embodiment of the disclosure, when the call request is determined to meet the preset quick starting condition, the home page loading can be skipped, the target page corresponding to the call request is loaded and displayed preferentially, the call flow of the target page can be simplified, the target page can be displayed quickly, and the user experience is improved.
Alternatively, after step S240, the home page data of the home page may be loaded, and then the home page may be displayed based on the home page data in response to a home page display operation for the application by the user. The home page data is loaded after the target page is displayed, so that the target page can be displayed quickly, and the home page data can be loaded in time so as to meet the user requirement when the user requests to display the home page.
Fig. 3 shows a flowchart of another application running method provided by an embodiment of the disclosure, and as shown in fig. 3, the method may mainly include the following steps:
And S310, when a call request for a target page of the application is detected, acquiring protocol information in the call request.
In the embodiment of the disclosure, the hierarchy of the target page is lower than the hierarchy of the home page of the application, that is, the lower page of the home page of the application when the target page is, the call request for the target page is used to instruct the application to display the target page. The call request may be any external call, and when a call request for a target page of an application is detected, the embodiment of the disclosure may intercept an entry of the external call of the application, and acquire protocol information from the call request.
S320, analyzing parameters contained in the protocol information.
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 performed.
And S330, when the protocol information is determined to contain preset target parameters, determining that the call request meets preset quick start conditions.
After step S330, step S360 is performed.
And S340, when the protocol information is determined not to contain the preset target parameters, acquiring the module name and the operation method name in the protocol information.
After step S340, step S350 is performed.
And S350, when the module name and the operation method name are determined to be in a preset parameter list, determining that the call request accords with a preset quick start condition.
After step S350, step S360 is performed.
The protocol information is defined as follows:
scheme:// module/actionp1 = a & p2 = b & quicklaunch = 1. For example, one protocol information a is scheme:// aaa11/bbb22 p1=a & p2=b & quicklaunch =1, and the other protocol information b is scheme:// aaa33/bbb44 p1=a & p2=b. The protocol information a includes quicklaunch =1, so that it can be determined that the call request corresponding to the protocol information a meets the preset quick start condition, and the module name aaa33 and the operation method name bbb44 in the protocol information b are both in the parameter list, so that it can be determined that the call request corresponding to the protocol information b meets the preset quick start condition. S360, creating an empty container in the application, and setting the empty container as a root container.
And S370, calling a starting picture from the file of the application, and displaying the starting picture based on the empty container.
And S380, loading target data of a target page during the period of displaying the starting picture.
Here, the starting picture can be displayed for the user to watch, so that the target data is loaded during the period of displaying the starting picture, the user does not feel the process of the target data, and the user experience is improved.
S390, after the target data is loaded, hiding the starting picture and displaying the target page based on the target data.
In step S390, embodiments 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.
According to the application running method provided by the embodiment of the disclosure, when the call request is determined to meet the preset quick starting condition, the home page loading can be skipped, the target page corresponding to the call request is loaded and displayed preferentially, the call flow of the target page can be simplified, the target page can be displayed quickly, and the user experience is improved.
Alternatively, after step S390, the home page data of the home page may be loaded, and then the home page may be displayed based on the home page data in response to a home page display operation by the user for the application. The home page data is loaded after the target page is displayed, so that the target page can be displayed quickly, and the home page data can be loaded in time so as to meet the user requirement when the user requests to display the home page.
Optionally, in the embodiment of the present disclosure, when the home page data of the home page is loaded, a display duration of the target page may be calculated, and when it is determined that the display duration reaches a preset duration, loading of the home page data of the home page is started. Here, the home page data is loaded after the display time length reaches the preset time length, so that the blocking of the user on the operation of the target page caused by the excessively fast loading of the home page data can be avoided. For example, after displaying the target page, the user may request to display an enlarged view of a certain picture on the target page or enter the next sub page, and after displaying the target page, the front page data is pre-loaded for a period of time, so that the enlarged view of a certain picture is prevented from being displayed or the next sub page is prevented from being put aside due to loading the front page data.
Optionally, in the embodiment of the disclosure, when the home page is displayed based on the home page data in response to the home page display operation of the user for the application, the home page container may be created in the application in response to the home page display operation of the user for the application, and then the empty container is deleted, and then the home page container is set as the root container, and the home page is displayed based on the home page container and the home page data. Here, the empty container is created in response to the call request by the above steps.
Fig. 4 is a schematic diagram illustrating page stack switching of a target page displayed according to an application running method provided by an embodiment of the present disclosure, when it is determined that a call request meets a preset quick start condition, an application is started and loading of top page data of the top page is stopped, then the target page is loaded preferentially, and a loading process may be shown in sub-images 4a to 4c in fig. 4. In the main window of the application, as shown in sub-graph 4a in fig. 4, the navigation controller creates an empty container, displays a starting picture based on the empty container, then, as shown in sub-graph 4b in fig. 4, creates a target container corresponding to a target page, loads target data of the target page, and displays the target page based on the target container and the target data, and then, as shown in sub-graph 4c in fig. 4, when detecting a user's home page display operation for the application, the navigation controller deletes the empty container and creates a home page container, loads home page data of the home page, and displays the home page based on the home page container and the home page data.
Based on the same principle as the application running method, the embodiment of the disclosure further provides an application running device, fig. 5 shows one of schematic diagrams of the application running device provided by the embodiment of the disclosure, and fig. 6 shows the second of the schematic diagrams of the application running device provided by the embodiment of the disclosure. As shown in fig. 5, the application running apparatus 500 includes an information acquisition module 510, an application start module 520, a target data loading module 530, and a target page display module 540.
The information obtaining module 510 is configured to, when detecting a call request for a target page of an application, obtain protocol information in the call request, where the level of the target page is lower than the level of a home page of the application.
The application starting module 520 is configured to display a starting picture of the application and stop loading the first page data of the first page when determining that the call request meets a preset quick starting condition based on the protocol information.
The target data loading module 530 is used for loading target data of a target page.
The target page display module 540 is configured to hide the startup picture and display the target page based on the target data after the target data is loaded.
According to the application running device provided by the embodiment of the disclosure, when the call request is determined to meet the preset quick starting condition, the home page loading can be skipped, the target page corresponding to the call request is loaded and displayed preferentially, the call flow of the target page can be simplified, the target page can be displayed quickly, and the user experience is improved.
In the embodiment of the present disclosure, the application starting module 520 is configured to determine that the tune-up request meets a preset quick start condition by:
Analyzing parameters contained in the protocol information;
When the protocol information is determined to contain preset target parameters, determining that the call request accords with preset quick start conditions;
The target parameter is used for indicating that the target page needs to be displayed preferentially.
In the embodiment of the present disclosure, the application starting module 520 is configured to determine that the tune-up request meets a preset quick start condition by:
Analyzing parameters contained in the protocol information, and acquiring a module name and an operation method name in the protocol information, wherein the module name is the name of a module of a program initiating a call request, and the operation method name is the name of an operation method to be executed based on a target page;
And when the module name and the operation method name are determined to be in a preset parameter list, determining that the call request accords with a preset quick start condition.
In the embodiment of the present disclosure, the application starting module 520, when used for displaying a starting picture of an application, is specifically configured to:
Creating an empty container in the application, and setting the empty container as a root container;
and calling the starting picture from the file of the application, and displaying the starting picture based on the empty container.
As shown in fig. 6, the application running apparatus 500 provided in the embodiment of the present disclosure further includes a home page display module 550 on the basis of including a page rendering, an application starting module 520, a target data loading module 530, and a target page display module 540, where the home page display module 550 is configured to load home page data of a home page, and display the home page based on the home page data in response to a home page display operation of a user on an application.
In the embodiment of the present disclosure, the home page display module 550 is specifically configured to, when being configured to load home page data of a home page:
calculating the display time of the target page;
and when the display time length is determined to reach the preset time length, starting to load the home page data of the home page.
In the embodiment of the present disclosure, the home page display module 550 is specifically configured to, when configured to display a home page based on home page data in response to a home page display operation for an application by a user:
responding to a home page display operation of a user for an application, and creating a home page container in the application;
Deleting an empty container created in response to the call request;
And setting the home page container as a root container, and displaying the home page based on the home page container and the home page data.
It can be understood that the above modules of the application running device in the embodiment of the present disclosure have functions of implementing the corresponding steps of the above application running method. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For the functional description of each module of the above application running device, reference may be specifically made to the corresponding description of the above application running method, which is not repeated herein.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
FIG. 7 illustrates a schematic block diagram of an example electronic device that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the apparatus 700 includes a computing unit 701 that 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. In the RAM 703, various programs and data required for the operation of the device 700 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including an input unit 706, e.g., keyboard, mouse, etc., an output unit 707, e.g., various types of displays, speakers, etc., a storage unit 708, e.g., magnetic disk, optical disk, etc., and a communication unit 709, e.g., network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the respective methods and processes described above, such as an application running method. For example, in some embodiments, the application execution method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 700 via ROM 702 and/or 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 running method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the application execution method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), and the Internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.
Claims (9)
1. An application running method, comprising:
When a call request for a target page of an application is detected, protocol information in the call request is acquired, wherein the level of the target page is lower than that of a home page of the application;
analyzing parameters contained in the protocol information;
when the protocol information is determined to contain a preset target parameter, determining that the call request meets a preset quick start condition, wherein the target parameter is used for indicating that the target page needs to be displayed preferentially;
creating an empty container in the application, and setting the empty container as a root container;
A starting picture is called from the file of the application, the starting picture is displayed based on the empty container, and the loading of the first page data of the first page is stopped;
loading target data of the target page during displaying the start-up picture;
after the target data is loaded, hiding the starting picture and displaying the target page based on the target data;
Loading the home page data of the home page;
responding to a home page display operation of a user for the application, and creating a home page container in the application;
Deleting an empty container created in response to the call request;
and setting the home page container as a root container, and displaying the home page based on the home page container and the home page data.
2. The method of claim 1, the method further comprising:
Analyzing parameters contained in the protocol information, and acquiring a module name and an operation method name in the protocol information, wherein the module name is the name of a module of a program initiating the call request, and the operation method name is the name of an operation method to be executed based on the target page;
And when the module name and the operation method name are determined to be in a preset parameter list, determining that the call request accords with a preset quick start condition.
3. The method of claim 1, wherein the loading the home page data of the home page comprises:
calculating the display time length of the target page;
And when the display time length is determined to reach the preset time length, starting to load the home page data of the home page.
4. An application running apparatus comprising:
the information acquisition module is used for acquiring protocol information in a call request when the call request of a target page of the application is detected, wherein the level of the target page is lower than that of a home page of the application;
The application starting module is used for analyzing parameters contained in the protocol information; when the protocol information is determined to contain a preset target parameter, determining that the call request meets a preset quick start condition, wherein the target parameter is used for indicating that the target page needs to be displayed preferentially; calling a starting picture from a file of the application, displaying the starting picture based on the empty container, and stopping loading the first page data of the first page;
the target data loading module is used for loading target data of the target page during the process of displaying the starting picture;
The target page display module is used for hiding the starting picture and displaying the target page based on the target data after the target data are loaded;
The home page display module is used for loading the home page data of the home page, responding to the home page display operation of a user on the application, creating a home page container in the application, deleting an empty container which is created in response to the call request, setting the home page container as a root container, and displaying the home page based on the home page container and the home page data.
5. The apparatus of claim 4, the application launch module further to:
Analyzing parameters contained in the protocol information, and acquiring a module name and an operation method name in the protocol information, wherein the module name is the name of a module of a program initiating the call request, and the operation method name is the name of an operation method to be executed based on the target page;
And when the module name and the operation method name are determined to be in a preset parameter list, determining that the call request accords with a preset quick start condition.
6. The device according to claim 4, wherein the home page display module, when being used for loading the home page data of the home page, is specifically configured to:
calculating the display time length of the target page;
And when the display time length is determined to reach the preset time length, starting to load the home page data of the home page.
7. An electronic device, comprising:
At least one processor, and
A memory communicatively coupled to the at least one processor, wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3.
9. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111566278.1A CN114237755B (en) | 2021-12-20 | 2021-12-20 | Application running method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111566278.1A CN114237755B (en) | 2021-12-20 | 2021-12-20 | Application running method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114237755A CN114237755A (en) | 2022-03-25 |
CN114237755B true CN114237755B (en) | 2025-01-17 |
Family
ID=80759621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111566278.1A Active CN114237755B (en) | 2021-12-20 | 2021-12-20 | Application running method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114237755B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115048596A (en) * | 2022-05-20 | 2022-09-13 | 支付宝(杭州)信息技术有限公司 | Page loading method, device, equipment, medium and program product |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121568A (en) * | 2017-11-30 | 2018-06-05 | 五八有限公司 | Arouse method and device, electronic equipment and the readable storage medium storing program for executing of APP |
CN112764942A (en) * | 2020-12-28 | 2021-05-07 | 北京五八信息技术有限公司 | Cross-application communication method, cross-application communication device and electronic equipment |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662690B (en) * | 2012-03-14 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and apparatus for starting application program |
CN108108205B (en) * | 2016-11-25 | 2019-07-05 | 腾讯科技(深圳)有限公司 | Application page surface treatment method and apparatus |
CN106599231A (en) * | 2016-12-19 | 2017-04-26 | 北京小米移动软件有限公司 | Page display method and apparatus |
CN109697164A (en) * | 2018-12-17 | 2019-04-30 | 北京城市网邻信息技术有限公司 | Test method, device, storage medium and the terminal of App have been adjusted in browser |
CN110634049B (en) * | 2019-09-05 | 2022-05-10 | 北京无限光场科技有限公司 | Page display content processing method and device, electronic equipment and readable medium |
CN110941484B (en) * | 2019-11-22 | 2022-12-09 | 马蜂窝(贵州)旅游集团有限公司 | Application program calling method and device |
CN113391847B (en) * | 2020-03-10 | 2024-12-06 | 北京沃东天骏信息技术有限公司 | Application startup optimization method and device |
CN113467862A (en) * | 2020-03-30 | 2021-10-01 | 腾讯科技(深圳)有限公司 | Desktop shortcut generation method and device, mobile terminal and storage medium |
CN111510760B (en) * | 2020-04-13 | 2022-01-14 | 北京字节跳动网络技术有限公司 | Video information display method and device, storage medium and electronic equipment |
CN111552473B (en) * | 2020-04-27 | 2024-02-09 | 腾讯科技(深圳)有限公司 | Application processing method, device and equipment |
-
2021
- 2021-12-20 CN CN202111566278.1A patent/CN114237755B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121568A (en) * | 2017-11-30 | 2018-06-05 | 五八有限公司 | Arouse method and device, electronic equipment and the readable storage medium storing program for executing of APP |
CN112764942A (en) * | 2020-12-28 | 2021-05-07 | 北京五八信息技术有限公司 | Cross-application communication method, cross-application communication device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN114237755A (en) | 2022-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112540806B (en) | Method and device for rendering small program page, electronic equipment and storage medium | |
CN112506581B (en) | Method, apparatus, electronic device and readable storage medium for rendering applet | |
CN115309470B (en) | Method, device, equipment and storage medium for loading widget | |
CN114035865A (en) | Method, device and equipment for starting small program and storage medium | |
CN114237755B (en) | Application running method, device, electronic equipment and storage medium | |
CN112905270B (en) | Workflow realization method, device, platform, electronic equipment and storage medium | |
CN113282444A (en) | Visualization method and device for business process debugging | |
CN114090118B (en) | Method, device, equipment and storage medium for starting applet | |
CN116069497A (en) | Method, apparatus, device and storage medium for executing distributed task | |
CN116126719A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN116149875A (en) | Scheduling method and device of cloud terminal, electronic equipment, storage medium and product | |
CN114564133B (en) | Application display method, device, equipment and medium | |
CN114428646B (en) | Data processing method and device, electronic equipment and storage medium | |
CN113407329B (en) | Task execution method, device, equipment and storage medium | |
CN113360407B (en) | Function positioning method and device, electronic equipment and readable storage medium | |
CN114168247B (en) | Image display method, device, equipment and storage medium | |
CN116578801B (en) | A page rendering method, device, electronic device and storage medium | |
CN113535187B (en) | Service online method, service updating method and service providing method | |
CN116561075B (en) | Method for generating dynamic link library file, method and device for calling operator | |
CN113361235B (en) | HTML file generation method and device, electronic equipment and readable storage medium | |
CN116594537A (en) | Voice information processing method and device, electronic equipment and storage medium | |
CN117850991A (en) | Electron-based local application shortcut starting method, device, equipment and medium | |
CN116341663A (en) | Extension method, device, equipment and medium of deep learning reasoning framework | |
CN115857828A (en) | Customized system implementation method and device, electronic equipment and storage medium | |
CN118397132A (en) | Curve drawing method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |