CN108845838B - Application program preloading method and device, storage medium and terminal - Google Patents

Application program preloading method and device, storage medium and terminal Download PDF

Info

Publication number
CN108845838B
CN108845838B CN201810538582.7A CN201810538582A CN108845838B CN 108845838 B CN108845838 B CN 108845838B CN 201810538582 A CN201810538582 A CN 201810538582A CN 108845838 B CN108845838 B CN 108845838B
Authority
CN
China
Prior art keywords
application
preloaded
preloading
application program
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810538582.7A
Other languages
Chinese (zh)
Other versions
CN108845838A (en
Inventor
韩世广
陈岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810538582.7A priority Critical patent/CN108845838B/en
Publication of CN108845838A publication Critical patent/CN108845838A/en
Application granted granted Critical
Publication of CN108845838B publication Critical patent/CN108845838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing 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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an application program preloading method, an application program preloading device, a storage medium and a terminal. The method comprises the following steps: detecting that an application preload event is triggered; determining an application program to be preloaded; and preloading the application program to be preloaded, and forbidding preloading a preset application interface in the application program to be preloaded in the preloading process. By adopting the technical scheme, the application interface can be selectively preloaded in the process of preloading the application program, namely, some preset preloading operations of the application interface are omitted, the preloading efficiency can be improved, system resources can be saved, and power consumption can be reduced.

Description

Application program preloading method and device, storage medium and terminal
Technical Field
The embodiment of the application relates to the technical field of application program loading, in particular to an application program preloading method, an application program preloading device, a storage medium and a terminal.
Background
At present, terminals such as smart phones, tablet computers, notebook computers, and smart appliances have become essential electronic devices in people's daily life. With the continuous intellectualization of the terminal equipment, the operating system is loaded in most terminal equipment, so that the terminal equipment can install abundant and various application programs and meet different requirements of users.
With the continuous improvement of the configuration of the terminal device, dozens or even hundreds of application programs can be installed in most terminal devices, and with the increasing abundance of the functions of the application programs, more and more resources are needed to be loaded when the application programs run. When a user selects to start an application program, a terminal loads resources required by the start of the application program, and after the loading is completed, an initial interface of the application program is entered, the whole process usually takes several seconds or even tens of seconds, so that the start efficiency of the application program is low, and improvement is needed urgently.
Disclosure of Invention
The embodiment of the application provides an application program preloading method, an application program preloading device, a storage medium and a terminal, and a preloading scheme of the application program can be optimized.
In a first aspect, an embodiment of the present application provides an application preloading method, including:
detecting that an application preload event is triggered;
determining an application program to be preloaded;
and preloading the application program to be preloaded, and forbidding preloading a preset application interface in the application program to be preloaded in the preloading process.
In a second aspect, an embodiment of the present application provides an application preloading device, including:
the device comprises a preloading event detection module, a pre-loading event detection module and a pre-loading event processing module, wherein the preloading event detection module is used for detecting whether an application preloading event is triggered or not;
the application determination module is used for determining the application program to be preloaded when detecting that the application preloading event is triggered;
the preloading module is used for preloading the application program to be preloaded and forbidding preloading of a preset application interface in the application program to be preloaded in the preloading process.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an application preloading method according to an embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the application preloading method according to the embodiment of the present application.
According to the application program preloading scheme provided in the embodiment of the application program preloading method, after an application preloading event is triggered, the application program to be preloaded is determined, the application program to be preloaded is preloaded, and preloading of a preset application interface in the application program to be preloaded is prohibited in the preloading process. By adopting the technical scheme, the application interfaces can be selectively preloaded in the process of preloading the application programs, namely, the preloading operation of some preset application interfaces is omitted, the preloading efficiency can be improved, the system resources can be saved, and the power consumption can be reduced.
Drawings
Fig. 1 is a schematic flowchart of an application preloading method according to an embodiment of the present application;
FIG. 2 is a diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present disclosure;
FIG. 3 is a diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present application;
fig. 4 is a schematic diagram of application interface migration according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating another application preloading method according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for preloading an application according to an embodiment of the present application;
fig. 7 is a block diagram illustrating an application preloading apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of an application preloading method according to an embodiment of the present application, where the method may be performed by an application preloading device, where the device may be implemented by software and/or hardware, and may be generally integrated in a terminal. As shown in fig. 1, the method includes:
step 101, detecting that an application preloading event is triggered.
For example, the terminal in the embodiment of the present application may include terminal devices such as a mobile phone, a tablet computer, a notebook computer, and an intelligent appliance. The terminal is loaded with an operating system.
For example, the trigger condition of the application preloading event may be set according to an actual situation, and the embodiment of the present application is not particularly limited. For example, an application preloading event may be triggered when detecting that a user's action satisfies a preset condition (e.g., picking up a terminal, inputting a screen unlocking operation, inputting a terminal unlocking operation, or the like); or when detecting that the foreground application program is changed, triggering an application preloading event; or after the prediction process of the preloaded application is finished, an application preloading event can be triggered immediately (or after a preset time length is passed); or may be triggered at timed intervals, etc. After the application preloading event is triggered, the system may detect that the application preloading event is triggered by reading a flag bit or receiving a trigger instruction, and the like, and the specific detection method is not limited in this embodiment of the application.
And step 102, determining an application program to be preloaded.
For example, the application to be preloaded may be an application that a user may open soon, and may be a fixed application that is preset, or an application that is predicted in a certain manner, and the like. The application to be preloaded may comprise one or more.
In order to improve the starting speed of the application program, preloading of the application program is a common method for effectively improving user experience on the terminal device, the application program which is possibly about to be used by a user is predicted, and the starting resources of the applications are prepared in advance, so that the applications can be started quickly when the applications are really opened by the user. In the related art, the application programs are mainly preloaded based on a statistical method, for example, only a few application programs are most frequently used by a user, and all the application programs are preloaded. However, the above method is too simple and rough, which results in insufficient prediction precision and accuracy of the preloaded application program, and therefore, in order to improve the prediction accuracy, in the embodiment of the present application, the prediction model may be used to predict the application program to be preloaded. The prediction model may be a machine learning model, and the algorithm used may include a Recurrent Neural Networks (RNN), a Long Short-Term Memory (LSTM) network, a threshold cycle unit, a simple cycle unit, an auto-encoder, a decision tree, a random forest, a feature mean classification, a classification regression tree, a hidden markov, a K-nearest neighbor (KNN) algorithm, a logistic regression model, a bayesian model, a gaussian model, and a KL divergence (Kullback-Leibler) or the like.
Optionally, in the process that the user uses the terminal, a training sample may be collected, the training sample is adopted to train the preset initial model, and finally, a prediction model for predicting the application program to be preloaded is obtained. For example, the elements contained in the training sample may include a time sequence or an order sequence in which the application was opened; can include the time, place, frequency, etc. that the application was opened; the method can include the running state of the terminal, such as the on-off state of a mobile data network, the connection state of a wireless hotspot, the identity information of the connected wireless hotspot, the currently running application program, the previous foreground application program, the stay time of the current application program in the background, the last time the current application program is switched to the background, the plugging state of an earphone jack, the charging state, the battery power information, the screen display time and the like; and the data collected by sensors integrated in the terminal can be included, such as a motion sensor, a light sensor, a temperature sensor, a humidity sensor and the like.
For example, a suitable sample element may be selected according to the selected machine learning model, the selected machine learning model may be determined according to the selected sample element, and the model and the sample element may be selected according to requirements on prediction accuracy, a preset speed, and the like, which is not limited in the embodiment of the present application.
In the embodiment of the application, determining the application to be preloaded may include determining the application to be preloaded according to an output result before the prediction model, or may include predicting by using the prediction model and determining the application to be preloaded according to a current output result of the prediction model.
In this embodiment of the application, when the number of the applications to be preloaded is multiple (N), the prediction model may output a start probability of each candidate application set in the candidate application sets, and determine the candidate application with a higher start probability as the application to be preloaded. Optionally, the determining the application to be preloaded includes: predicting a launch probability of a candidate application; and determining the candidate application programs with the higher starting probability as the application programs to be preloaded. Illustratively, the candidate applications may include all applications installed in the terminal, and may also include part of the applications. Some applications may not include system applications or applications that are rarely used by the user. The determination mode and the number of the candidate application programs are not limited in the embodiment of the application. Optionally, the candidate application program may be determined according to the number of times of use and/or the use duration of each application program in a preset time period before the current time, where the preset time period is, for example, 1 month, and when the number of times of use and/or the use duration exceed a corresponding threshold, the corresponding application program is determined as the candidate application program, or the application programs are sorted according to the number of times of use and/or the use duration, and the application program with the highest ranking is determined as the candidate application program.
For example, the predictive model described above may be employed to determine the launch probability of each candidate application. For example, according to a training sample during the training of the prediction model, a current sample is collected and input into the prediction model, so as to obtain the starting probability of each candidate application program. The starting probabilities may be sorted from high to low, and the top N candidate applications (N is a preset value) may be determined as the applications to be loaded. The advantage of this arrangement is that multiple applications can be preloaded, and the multiple applications are determined according to the launch probability, which can improve the accuracy of the prediction.
103, preloading the application program to be preloaded, and prohibiting preloading of a preset application interface in the application program to be preloaded in the preloading process.
In the embodiment of the application, when only one application program to be preloaded exists, the preloading sequence of the application is not required to be considered; when there are multiple applications to be preloaded, the multiple applications to be preloaded can be determined one by one as the current application to be preloaded, and the preloading operation is performed sequentially, or more than 2 applications to be preloaded can be determined as the current application to be preloaded and the preloading operation is performed simultaneously, that is, the preloading processes of the multiple applications can be performed in parallel.
In the embodiment of the present application, the specific process of preloading and the loaded resources are not limited, for example, corresponding hardware resources may be allocated to the application program to be preloaded, and relevant data required for starting is loaded based on the allocated hardware resources. The method can exemplarily include application process starting, application service starting, memory allocation, file content reading, network data acquisition, interface rendering (namely preloading of an application interface), and the like. In addition, the preloaded resources may also be determined according to the specific type of application to be preloaded. In order to improve the completeness of the preloading, in the embodiment of the present application, an application interface of an application program to be preloaded is preloaded. However, the application interfaces involved in the preloading Process are not all needed by the user, and the preloading is generally performed under the condition that the user is not visible, and if all the application interfaces are preloaded, more system resources, such as a Central Processing Unit (CPU) or a Graphics Processing Unit (GPU), are wasted, which not only increases the system power consumption, but also affects the preloading speed. In the embodiment of the application, a part of the application interfaces which do not need to be preloaded can be determined in advance, and in the preloading process, when the application interfaces which currently need to be preloaded belong to the application interfaces, the application interfaces are prohibited from being preloaded.
According to the application program preloading method provided in the embodiment of the application program preloading method, after the application preloading event is triggered, the application program to be preloaded is determined, the application program to be preloaded is preloaded, and the preloading of a preset application interface in the application program to be preloaded is forbidden in the preloading process. By adopting the technical scheme, the application interfaces can be selectively preloaded in the process of preloading the application programs, namely, the preloading operation of some preset application interfaces is omitted, the preloading efficiency can be improved, the system resources can be saved, and the power consumption can be reduced.
In some embodiments, preloading the application to be preloaded includes: and displaying an application interface corresponding to the application program to be preloaded based on a pre-created preloading active window stack, wherein the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of the display screen. And the preloading is carried out outside the screen, and the preloading process is invisible to a user, so that the display of the display content of the foreground application program on the display screen is not influenced.
In the embodiment of the present application, the active window may be understood as a separate interface directly providing interaction and operation for a user, and different names may be used in different operating systems to name the interface. For ease of understanding, the following description will be made taking an Android (Android) operating system as an example.
In the Android system, the active window is called Activity. Activity is a component responsible for interacting with a user that provides a screen (which may be understood as a screen interface, rather than a display screen of an entity) for the user to interact to accomplish a task. In an android application, an Activity is usually a separate screen on which controls can be displayed and events of the user can be monitored and processed. In managing Activity, there are two concepts: task Stack and Stack. The Task corresponds to an application program, the Task is used for storing activities, one Task can store one or more activities, and the activities follow the principle of first-in first-out and last-in first-out. And the Stack is used for managing the Task, generally, one Stack manages the Task to which each Activity required to be shown by one screen belongs, and one Stack can manage one or more tasks, and of course, the Stack also follows the basic management principle of the Stack. The screens described herein are not necessarily completely separate display screens, and in the case of "two screens", the two screens may be only two regions of a complete display screen that independently display respective display contents. Of course, if the terminal has two or even more separate display screens, the "two screens" may also be two separate display screens.
In the Android system, multi-window modes are supported, which may include split screen mode, picture-in-picture mode, and free mode (FreeForm). In the multi-window mode, the Stack in which the application is located may have its own size (size), and may include upper, lower, left, and right coordinates in a coordinate system with the upper left corner of the terminal screen as the origin. For example, (a, b, c, d), which generally describes the boundary of a rectangle, the coordinates of the upper left corner and the coordinates of the lower right corner of the rectangle can be used for representation, i.e. the coordinates of the upper left corner of the rectangle are (a, b), and the coordinates of the lower right corner are (c, d), and such a rectangular area corresponds to the size of Stack. The in-application layout in the Stack is based on the size of the Stack, that is, the application interface corresponding to Activity is displayed within the boundary range of the size.
In the multi-window mode, multiple applications may be allowed to be visible, including both system and user visibility and system-only visibility. The system and the user can see the display on the display screen, and the user can see the display; system-only-visible means that the operating system is visible, but not the user, and may be obscured by foreground applications or displayed outside the display screen as the application is intended to implement.
In the embodiment of the application, the application interface of the application program to be preloaded is preloaded outside the display screen, the preloading can be realized based on a multi-window mechanism of an operating system, and the size corresponding to the application program is set outside the display screen through the multi-window mechanism so as to achieve the purpose of being invisible to a user, so that the display of the display content of the foreground application program on the display screen is not influenced.
Generally, in the multi-window mode, there may be multiple types of stacks, for example, Home Stack represents a Stack of a desktop application display, App Stack represents a third-party application display, and there may be other split-screen stacks. In the embodiment of the application, a preloaded active window Stack (preloaded Stack) is added to indicate a Stack displayed by a preloaded application, and the boundary coordinates of the preloaded Stack are set to be outside the coordinate range of a display screen, so that an application program to be preloaded can be displayed on the Stack. For the Android system, a Stack special for displaying preloaded applications can be newly built based on a multi-window mechanism of the Android system. In the embodiment of the application, the reason for newly building the Stack is that the newly built preloaded Stack can own size and visibility, so that the purpose of preloading outside a display screen is achieved.
In the embodiment of the application, the creation time of the preloaded Stack is not limited, and the preloaded Stack can be set to be in a resident state by default before the terminal leaves a factory, namely the preloaded Stack exists all the time; the method can also be established when the terminal is started or after the terminal is successfully unlocked; but also after an application preloading event is triggered (which may be before determining the application to be preloaded), and so on. Optionally, the preloading an application interface corresponding to the application program to be preloaded based on a pre-created preload active window stack includes: judging whether a pre-established preloading active window stack exists or not; if not, creating a preloaded active window stack according to a preset rule; and preloading an application interface corresponding to the application program to be preloaded based on the created preloading active window stack. The method has the advantages that after the application program to be preloaded is determined, whether the preloading Stack exists or not is judged, if yes, new construction is not needed, and if not, creation is carried out, so that system resources can be saved. It can be understood that, when the application program to be preloaded includes a plurality of application programs, that is, when a plurality of application programs need to be continuously preloaded in a short time, before the first application program to be preloaded starts to load, the preloaded Stack is already created, and then before the second application program to be preloaded starts to load, the preloaded Stack exists, and the above determination may not be necessary.
In the embodiment of the application, a specific process of preloading an application interface corresponding to an application program to be preloaded based on the preloaded Stack is not limited, and for example, the application interface may be drawn and displayed based on the size of the preloaded Stack.
In some embodiments, the preloading an application interface corresponding to the application program to be preloaded based on a pre-created preload active window stack includes: creating a target process corresponding to the application program to be preloaded; creating a task stack corresponding to the application program to be preloaded in a pre-created preloading active window stack; starting an active window corresponding to the application program to be preloaded in the task stack based on the target process; and drawing and displaying an application interface corresponding to the application program to be preloaded based on the started active window. The method has the advantages that the application interface of the application program to be preloaded can be drawn and displayed based on the preloading movable window stack outside the screen coordinate range, the running and the display of the foreground application program cannot be interfered, the system stability is guaranteed, and meanwhile the starting speed of the application program to be preloaded is effectively improved. While creating the target process, an initialization process of the target process may also be included. In the execution process of the above steps, preloading of other resources may also be involved, such as application service starting, memory allocation, file content reading, network data acquisition, and the like.
In some embodiments, further comprising: and sending a fake focus notification to the application program to be preloaded, and keeping continuous drawing and display updating of an application interface corresponding to the application program to be preloaded in a preset time period based on the fake focus notification. The method has the advantages that the application interface can be drawn and displayed under the condition that the application program to be preloaded obtains the focus and is visible to the system, the preloading completion degree is improved, and the focus of foreground application is not affected. The focus in the embodiment of the present application is also referred to as an input focus, and the fake focus is independent from the focus corresponding to the foreground application. Generally, for the current Android system, a focus is unique, for example, input operations such as touch and the like only take effect on the focus, the system end and the application end are consistent for inputting focus information, and once the system end modifies the input focus information, the system end sends information that the input focus information changes to the application, so that the method ensures that the input focus information of the system end and the application end is consistent. In the embodiment of the application, the purpose that the application end can forge the focus is achieved by separating the mode that the system end and the application end input the focus information. Specifically, in the embodiment of the application, the focus information is forged for the preloaded application, so that the preloaded application has the focus information, and the focus information of the system end is still correct, so that the preloaded application can be drawn normally, and the purpose of full loading is achieved. The focus exists in the system end and the application end, which can be regarded as a server end (server) and a client end (client), the system end records the application with the focus, and the application end stores a flag bit (flag) to identify whether the application has the focus. The time for forging the input focus can be that when a new window of the Android window system is added and the focus needs to be updated, a forged focus notification is generated and sent. The method for forging the focus may be a method for changing the focus of the window by calling the client end of the window, so that the window acquires the focus. Specifically, the forged focus notification can be sent based on a Binder mechanism, which is the most common mode of interprocess communication of the Android system and adopts a c/s architecture, i.e., a client/service architecture. In the embodiment of the present application, the preset time period may be designed according to actual situations, and may be, for example, within a fixed time length range after the start of the preloading, or a time period from the start of the preloading to the completion of the preloading, and the like.
For some terminals, especially mobile terminals such as mobile phones and tablet computers, in order to facilitate the use of users, the display modes of the display screen generally include vertical screen display and horizontal screen display, many applications display by default in the vertical screen mode, some applications display by default in the horizontal screen mode (such as some network games), and some applications switch the horizontal and vertical screen display along with the direction in which the user holds the terminal during the use of the terminal. In some embodiments of the present application, a boundary coordinate corresponding to the preloaded active window stack is (H, 0, 2H, H), a coordinate system corresponding to the boundary coordinate is a system coordinate, an origin of the system coordinate is an upper left corner of the display screen, and H is a length of a long side of a display area of the display screen. That is, the side corresponding to H is the maximum side of the display area of the display screen, and is the height of the display screen in the vertical screen display and the width of the display screen in the horizontal screen display. This is done to allow for the display of a landscape screen, pre-loaded application landscape displays, and the normal display of some applications. Fig. 2 is a schematic diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present disclosure. As shown in fig. 2, at this time, the display screen is in a vertical screen mode, the origin of the terminal system coordinates is the left vertex (0,0) of the display screen 201, the width direction of the display screen 201 is the X axis, the height direction is the Y axis, the boundary coordinates corresponding to the preloaded Stack202 are (H, 0, 2H, H), H is the screen height, that is, the area in the left solid line rectangular range is the main screen display area, and the area in the right dotted line rectangular range is the preloaded display area. Fig. 3 is a schematic diagram illustrating a relative position relationship between a preloaded active window stack and a display area of a display screen according to an embodiment of the present application. As shown in fig. 3, at this time, the display screen is in a landscape mode, the origin of the terminal system coordinates is the left vertex (0,0) of the display screen 301, the height direction of the display screen 301 is the X axis, the width direction is the Y axis, the boundary coordinates corresponding to the preloaded Stack202 are (H, 0, 2H, H), H is the screen height, that is, the area in the left solid line rectangular range is the main screen display area, and the area in the right dotted line rectangular range is the preloaded display area.
The reason why the pre-loaded Stack boundaries are so set is that:
the abscissa of the upper left corner is H, which is an interface for preventing the display screen (also referred to as a main screen) from displaying the preloaded application during the landscape screen, and since the main screen has a landscape mode in addition to the portrait mode, the abscissa of the upper left corner of the rectangular area corresponding to the preloaded Stack is set to the screen height in order to prevent the main screen display area from displaying the local part of the preloaded application during the landscape screen of the main screen.
The ordinate in the upper left corner is 0 in order for the preload application to be able to calculate the status bar height correctly. In order to better design a User Interface (UI), the Android application can customize the top status bar, and if the vertical coordinate corresponding to the upper edge is not equal to 0, the height of the status bar may be wrong.
The abscissa of the lower right corner is 2H (2 times the screen height), that is, the width of the rectangle corresponding to the preloaded Stack is equal to the screen height, so that the size of the preloaded Stack can contain the landscape application at the time of preloading (that is, the application interface is an application program in a landscape display mode).
The ordinate of the lower right corner is H, i.e. the height of the rectangle corresponding to the preloaded Stack is equal to the screen height, so as to preload the size of the Stack and be able to contain the vertical screen application at the time of preloading.
For the reasons described above, the inventors set the size of the preload Stack to (H, 0, 2H, H).
In some embodiments, the preset application interface includes a launch page interface and/or a preset toggle animation interface.
The start page is also called a flash screen (Splash screen), a launch Window (launch Window), a Preview Window (Preview Window), or the like, and generally refers to a first page of an open application, and is initially for the purpose that the application can be quickly opened to prevent a white screen or a black screen from appearing, a background can load a main page during display of the start page, and the start page is now commonly used to display information such as brands, campaign promotions, advertisements, and the like of an application program. The start page in the embodiment of the present application may be a static page or a dynamic page, where the dynamic page may include an animation page or a page that is continuously dynamically switched, and the embodiment of the present application is not particularly limited. When an Activity is opened, if the application program of the Activity is not running, the system creates a process for the application of the Activity, but the creation and initialization of the process take time, and before the action is completed, the user may think that the system does not have any reaction, and therefore, a start page is generated to solve the problem. A start page may be understood as a temporary window for display before the application process has successfully created and initialized, displaying the window before the program initialization is complete to inform the user that the system knows that he is about to open the application and responds, displaying a user operable human-machine interface (e.g., the main page of the application) when the program initialization is complete, and removing the start page window.
In some embodiments, when the preset application interface includes a start page interface, the prohibiting, in the preloading process, preloading of the preset application interface in the application program to be preloaded includes: in the preloading process, when detecting that a start page interface display function in the active window management service is about to be called, forbidding calling the start page interface display function. This has the advantage that the display of the start page interface can be inhibited quickly and accurately. Taking the android system as an example, a special function launching page interface display function (showStartingWindow) is provided in the activity management service (activity manager service) of the application program to process and display the launching page. Generally, when or after a process of an application program is created, a start page interface display function is called to avoid the occurrence of phenomena such as white screen or black screen, and therefore, when it is detected that the process of the application program to be preloaded starts to be created, it is considered that it is detected that the start page interface display function in the active window management service is about to be called, and at this time, the call of the start page interface display function is prohibited.
When the preset application interface includes a start page interface, prohibiting the pre-loading of the preset application interface in the application program to be pre-loaded in the pre-loading process, which may also include: in the preloading process, when a starting page interface display function in the active window management service is called, whether the current starting page interface belongs to an application program to be preloaded is judged through the starting page interface display function; and if so, forbidding displaying the current start page interface. The method has the advantages that whether the starting page interface to be displayed belongs to the application program to be preloaded can be accurately judged, and the starting page interface is timely stopped from being displayed when the starting page interface to be displayed belongs to the application program to be preloaded. The method and the device for displaying the starting page interface can reserve a calling step of a function for displaying the starting page interface, ensure the preloading stability of the application program, improve the function, and add a judging logic in the function, so that whether the starting page interface needing to be displayed currently belongs to the application program to be preloaded is judged in the function, if so, the starting page interface cannot be displayed, and the preloading of the starting page interface of the application program to be preloaded is forbidden.
In some embodiments, the determining, by the launch page interface display function, whether the current launch page interface belongs to an application to be preloaded includes: identifying a current starting page interface according to the window type through the starting page interface display function; and judging whether the current starting page interface belongs to the application program to be preloaded or not through the starting page interface display function. The advantage of this arrangement is that the start page interface can be accurately identified. Taking an android system as an example, the Type (Window Type) of the Window owned by the start page is Type _ APPLICATION _ STARTING, which is a unique identifier (flag) of the start page, the showStartingWindow function can accurately identify the start page according to the identifier, judge whether the start page interface belongs to the APPLICATION program to be preloaded, and if so, not display the start page interface. For example, it may be determined whether the application to which the launch page interface belongs is an application to be preloaded. Specifically, an identity of an active window stack where an application program to which a start page interface belongs is located may be obtained, and whether the identity is a preloaded identity is determined; if so, determining that the application program is a preloaded application program. The advantage of setting up like this is that can judge accurately fast according to the ID of Stack whether the application program that the start page interface belongs to is the preloaded application program.
In some embodiments, the preset application interface comprises a preset toggle animation interface. When an application program is opened or the operation such as active window switching is carried out, the system can generate animation, and the animation drawing needs to consume a large amount of resources such as a CPU/GPU.
Illustratively, when the preset application interface includes a preset switching animation interface, the prohibiting the pre-loading of the preset application interface in the application program to be pre-loaded during the pre-loading process includes: and in the preloading process, when detecting that a prepared application switching function in the window management service is about to be called, forbidding to call the prepared application switching function. The advantage of this is that the preloading of the default application interface can be quickly and accurately disabled. The preset animation switching interface may include an Activity switching animation interface, for example, an android system, and a typical Activity switching animation may include: activity openenteralliance, activity openexignation, taskfenenteralliance, taskfoseexignation, wallpaperopenenteralliance, wallpaperwallclosed enteralliance, and the like. The system sets and opens and switches the animation by calling the prepafacing transition function of the WindowManagerService. For example, the first step of the setting of the Activity switching animation generally sets the type of the Activity switching animation by calling the preparportransition function, and the currently common types may include, for example, transfer _ Activity _ OPEN, transfer _ Activity _ CLOSE, transfer _ TASK _ OPEN, transfer _ TASK _ CLOSE, transfer _ TASK _ TO _ FRONT, and transfer _ TASK _ TO _ BACK. The prepareAppTransition () function does essentially two things: the first one is to set the animation type into AppTransition, which will be used in subsequent operations; the second element is a 5s TIMEOUT message that sends an APP _ TRANSITION _ TIMEOUT. When the system is detected to start the setting of the Activity switching animation, the standby application switching function in the window management service is detected to be about to be called, and the calling of the standby application switching function is forbidden, so that the setting process of the Activity switching animation is finished from the first step, and the follow-up pre-loading operation of drawing, displaying and the like on the preset switching animation interface is forbidden.
For example, when the preset application interface includes a preset switching animation interface, the prohibiting the pre-loading of the preset application interface in the application program to be pre-loaded during the pre-loading process may also include: in the preloading process, when a prepared application switching function in the window management service is called, judging whether the current application program is an application program to be preloaded; if yes, terminating the calling of the prepared application switching function so as to forbid the preloading of a preset switching animation interface in the current application program. The method has the advantages that whether the current application program is the application program to be preloaded can be accurately judged, and if yes, the preloading of the preset switching animation interface of the current application program is forbidden in time in a mode of terminating function calling. In the embodiment of the application, the step of calling the application switching preparation function can be reserved, the stability of application program preloading is ensured, when the preparpAppTransition is called, the judgment logic is added, whether the current application program is the application program to be preloaded (namely whether the current application program starts preloading) is judged, whether the calling operation of the preparpAppTransition function is continued is determined, if yes, the function calling is terminated, so that the purpose that the animation is forbidden during preloading is achieved, the drawing speed can be accelerated, the power consumption is reduced, and the problem of animation abnormity caused by background animation to foreground animation can be avoided.
In some embodiments, after preloading the application program to be preloaded, the method further includes: and when receiving an operation instruction of a target application program in the application programs to be preloaded, starting the target application program based on the preloaded resources. After the application interface corresponding to the application program to be preloaded is displayed based on the pre-created stack of preloaded active windows, the method further includes: and when an operation instruction of a target application program in the application programs to be preloaded is received, migrating an application interface corresponding to the target application program contained in the preloading activity window stack to the display screen for displaying. The application interface corresponding to the target application program may include an application interface corresponding to an active window currently located at the top of the stack in a task stack corresponding to the target application program. The method has the advantages that the target application program can be quickly started in a mode of directly transferring the preloaded application interface to the display screen for displaying, the starting page and the preset switching animation are not in the preloading list, the application interface transferred to the display screen is an interactive interface which can be directly operated by a user, the user can operate the target application program without waiting, and the running efficiency of the target application program can be improved.
For example, fig. 4 is a schematic application interface migration diagram provided in the embodiment of the present application, and as shown in fig. 4, when an operation instruction of a target application program is received, an application interface 401 corresponding to the target application program included in a preloaded active window Stack is migrated to a display screen 201 to be displayed, specifically, a task to which the preloaded application interface belongs is migrated to the top of an application active window Stack, and size information, configuration information, and visibility of the task are updated, so that the application interface can be normally displayed on the display screen.
Fig. 5 is a schematic flowchart of another application preloading method provided in the embodiment of the present application, taking an android operating system as an example, the method includes the following steps:
step 501, when detecting that an application preloading event is triggered, determining an application program to be preloaded.
And 502, starting preloading of the application program to be preloaded.
Step 503, creating a target process corresponding to the application program to be preloaded, initializing the target process, and prohibiting to call a showStartingWindow function in the ActivityManagerService in the process, so as to prohibit to start the display of the page interface.
Illustratively, the step of prohibiting the invocation of the showStartingWindow function is performed, for example, at the same time as the target process is created or when the target process is initialized.
Step 504, creating a task stack corresponding to the target application program in the preloading active window stack.
And 505, starting an active window corresponding to the application program to be preloaded in the task stack based on the target process, and sending a fake focus notification to the application program to be preloaded.
Step 506, updating the focus flag bit corresponding to the application program to be preloaded according to the fake focus notification, continuously drawing and updating and displaying the application interface corresponding to the application program to be preloaded based on the started active window in a preset time period, and forbidding to call the prepafacing transition function in the WindowManagerService in the period.
It is understood that step 506 may involve rendering and updating display of multiple application interfaces, and when the prepareAppTransition function is found to be about to be called, the calling is prohibited, so as to realize prohibition of rendering and display of the preset switching animation interface in the application program to be preloaded.
And 507, migrating an application interface corresponding to a target application program contained in the preloaded active window stack to a display screen for displaying when receiving an operation instruction of the target application program in the application program to be preloaded.
According to the application preloading method provided by the embodiment of the application preloading method, in the process of preloading the application program to be preloaded, the display of the page interface is forbidden by forbidding the calling of the showStartingWindow function, and the preloading of the preset switching animation interface is forbidden by forbidding the calling of the preparpAppTransition function, so that the application interfaces can be quickly and accurately forbidden to be preloaded in the preloading process, the drawing speed of the preloading interface is accelerated, the preloading efficiency is improved, and the power consumption of the preloading operation is reduced.
Fig. 6 is a schematic flowchart of a further method for preloading an application program according to an embodiment of the present application, where an android operating system is taken as an example, the method includes the following steps:
step 601, when detecting that an application preloading event is triggered, determining an application program to be preloaded.
Step 602, creating a target process corresponding to the application program to be preloaded, and initializing the target process.
Step 603, when a showStartingWindow function in the ActivintManagerService is called, identifying the APPLICATION interface with the window TYPE of TYPE _ APPLICATION _ STARTING as the current STARTING page interface through the showStartingWindow function.
It is understood that step 603 may start to be executed during the execution of step 602, i.e. step 603 may start to be executed before the target process initialization is completed. For example, the step of calling the showStartingWindow function is performed at the same time as the target process is created or when the target process is initialized.
For example, if no APPLICATION interface with a window TYPE of TYPE _ APPLICATION _ STARTING is found, it may be stated that there is no start page interface to be displayed currently, and step 606 may be directly performed.
Step 604, judging whether the current starting page interface belongs to an application program to be preloaded through a showStartingWindow function, if so, executing step 605; otherwise, step 606 is performed.
And step 605, prohibiting displaying the current start page interface, and executing step 606.
And 606, creating a task stack corresponding to the target application program in the preloading active window stack.
Step 607, starting the active window corresponding to the application program to be preloaded in the task stack based on the target process, and sending a false focus notification to the application program to be preloaded.
And 608, updating the focus flag bit corresponding to the application program to be preloaded according to the fake focus notification, and continuously drawing and updating and displaying the application interface corresponding to the application program to be preloaded based on the started active window within a preset time period.
Step 609, when a prepafacing transformation function in the windowManagerService is called, judging whether the current application program is an application program to be preloaded, if so, executing step 610; otherwise, step 611 is performed.
It is understood that step 608 may involve drawing and updating display of a plurality of application interfaces, so that in the execution process of step 608, there may be a case where the prepapeappransition function is invoked, that is, step 609 may start to be executed in the execution process of step 608.
And step 610, terminating the calling of the preparpapptransition function so as to prohibit the preloading of a preset switching animation interface in the current application program.
Step 611, when receiving an operation instruction of a target application program in the application programs to be preloaded, migrating an application interface corresponding to the target application program contained in the preloaded active window stack to a display screen for displaying.
The application preloading method provided by the embodiment of the application preloading method reserves the function calling step in the normal starting process of the application program, judges whether the application interface to be loaded belongs to the application program to be preloaded or not by adding the judgment logic, and if the application interface to be loaded belongs to the application program to be preloaded, corresponding measures are taken to forbid preloading, so that the drawing speed of the preloaded interface is increased, the preloading efficiency is improved, and the power consumption of preloading operation is reduced.
Fig. 7 is a block diagram of an application preloading device according to an embodiment of the present disclosure, which may be implemented by software and/or hardware, and is generally integrated in a terminal, and may perform preloading of an application by executing an application preloading method. As shown in fig. 7, the apparatus includes:
a preloading event detection module 701, configured to detect whether an application preloading event is triggered;
an application determining module 702, configured to determine an application program to be preloaded when detecting that an application preloading event is triggered;
the preloading module 703 is configured to preload the application program to be preloaded, and prohibit preloading of a preset application interface in the application program to be preloaded during the preloading process.
The application program preloading device provided in the embodiment of the application program determining the application program to be preloaded after detecting that the application preloading event is triggered, preloading the application program to be preloaded, and prohibiting preloading of a preset application interface in the application program to be preloaded in the preloading process. By adopting the technical scheme, the application interfaces can be selectively preloaded in the process of preloading the application programs, namely, the preloading operation of some preset application interfaces is omitted, the preloading efficiency can be improved, the system resources can be saved, and the power consumption can be reduced.
Optionally, the preloading the application program to be preloaded includes:
and displaying an application interface corresponding to the application program to be preloaded based on a pre-created preloading active window stack, wherein the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of the display screen.
Optionally, the preset application interface includes a start page interface and/or a preset switching animation interface.
Optionally, when the preset application interface includes a start page interface, in the preloading process, prohibiting pre-loading the preset application interface in the application program to be pre-loaded, including:
in the preloading process, when detecting that a start page interface display function in the active window management service is about to be called, forbidding calling the start page interface display function;
or,
in the preloading process, when a starting page interface display function in the active window management service is called, whether the current starting page interface belongs to an application program to be preloaded is judged through the starting page interface display function; and if so, forbidding displaying the current start page interface.
Optionally, the determining, by the start page interface display function, whether the current start page interface belongs to the application to be preloaded includes:
identifying a current starting page interface according to the window type through the starting page interface display function;
and judging whether the current starting page interface belongs to the application program to be preloaded or not through the starting page interface display function.
Optionally, when the preset application interface includes a preset switching animation interface, in the preloading process, prohibiting preloading of the preset application interface in the application program to be preloaded includes:
in the preloading process, when detecting that a prepared application switching function in the window management service is about to be called, forbidding to call the prepared application switching function;
or,
in the preloading process, when a prepared application switching function in the window management service is called, judging whether the current application program is an application program to be preloaded; if yes, terminating the calling of the prepared application switching function so as to forbid the preloading of a preset switching animation interface in the current application program.
Optionally, the apparatus further comprises:
and the starting module is used for starting the target application program based on the pre-loaded resource when receiving the running instruction of the target application program in the application program to be pre-loaded.
Optionally, the starting module may be specifically configured to, after displaying the application interface corresponding to the application program to be preloaded based on the pre-created preloaded active window stack, migrate the application interface corresponding to the target application program included in the preloaded active window stack to the display screen for display when receiving an operation instruction of the target application program in the application program to be preloaded.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for preloading applications, the method comprising:
detecting that an application preload event is triggered;
determining an application program to be preloaded;
and preloading the application program to be preloaded, and forbidding preloading a preset application interface in the application program to be preloaded in the preloading process.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the application preloading operation described above, and may also perform related operations in the application preloading method provided in any embodiment of the present application.
The embodiment of the application provides a terminal, and the terminal can be integrated with the application preloading device provided by the embodiment of the application. Fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 800 may include: the application preloading method comprises a memory 801, a processor 802 and a computer program which is stored on the memory 801 and can be run by the processor 802, wherein the processor 802 realizes the application preloading method according to the embodiment of the application when executing the computer program.
The terminal provided by the embodiment of the application can selectively preload the application interface in the process of preloading the application program, namely, the preloading operation of some preset application interfaces is omitted, so that the preloading efficiency can be improved, the system resources can be saved, and the power consumption can be reduced.
Fig. 9 is a schematic structural diagram of another terminal provided in the embodiment of the present application, where the terminal may include: a casing (not shown), a memory 901, a Central Processing Unit (CPU) 902 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU902 and the memory 901 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 901 is used for storing executable program codes; the CPU902 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901, so as to implement the following steps:
detecting that an application preload event is triggered;
determining an application program to be preloaded;
and preloading the application program to be preloaded, and forbidding preloading a preset application interface in the application program to be preloaded in the preloading process.
The terminal further comprises: peripheral interface 903, RF (Radio Frequency) circuitry 905, audio circuitry 906, speakers 911, power management chip 908, input/output (I/O) subsystems 909, other input/control devices 910, touch screen 912, other input/control devices 910, and external port 904, which communicate through one or more communication buses or signal lines 907.
It should be understood that the terminal 900 shown is only one example of a terminal and that the terminal 900 can have more or fewer components than shown, can combine two or more components, or can have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal for preloading applications provided in this embodiment, where the terminal is a mobile phone as an example.
Memory 901, the memory 901 being accessible by the CPU902, the peripheral interface 903, etc., the memory 901 may comprise high speed random access memory, and may also comprise non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 903, the peripheral interface 903 may connect input and output peripherals of the device to the CPU902 and the memory 901.
An I/O subsystem 909, which I/O subsystem 909 may connect input and output peripherals on the device, such as a touch screen 912 and other input/control devices 910, to the peripheral interface 903. The I/O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910. Where one or more input controllers 9092 receive electrical signals from or send electrical signals to other input/control devices 910, the other input/control devices 910 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 9092 may be connected with any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 912, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 9091 in the I/O subsystem 909 receives electrical signals from the touch screen 912 or transmits electrical signals to the touch screen 912. The touch screen 912 detects a contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 912, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 912 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 905 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 905 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 905 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. The RF circuitry 905 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electric signal, and transmit the electric signal to the speaker 911.
The speaker 911 is used to convert the voice signal received by the mobile phone from the wireless network through the RF circuit 905 into sound and play the sound to the user.
And the power management chip 908 is used for supplying power and managing power to the hardware connected with the CPU902, the I/O subsystem and the peripheral interfaces.
The application preloading device, the storage medium and the terminal provided in the above embodiments can execute the application preloading method provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to an application preloading method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. An application preloading method, comprising:
detecting that an application preload event is triggered;
determining an application program to be preloaded;
when detecting that a preset application interface corresponding to the application program to be preloaded exists in the application interface corresponding to the application program to be preloaded, forbidding to preload the preset application interface, and displaying application interfaces except the preset application interface in the application interface corresponding to the application program to be preloaded based on a pre-established preloading activity window stack;
wherein, the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of the display screen;
and when an operation instruction of a target application program in the application programs to be preloaded is received, migrating an application interface corresponding to the target application program contained in the preloading activity window stack to the display screen for displaying.
2. The method according to claim 1, wherein the preset application interface comprises a start page interface and/or a preset switching animation interface.
3. The method according to claim 2, wherein when the preset application interface comprises a start page interface, prohibiting pre-loading of the preset application interface in the application program to be pre-loaded during displaying of the application interface corresponding to the application program to be pre-loaded comprises:
in the process of displaying the application interface corresponding to the application program to be preloaded, when detecting that a start page interface display function in the active window management service is about to be called, forbidding calling the start page interface display function;
or,
in the process of displaying the application interface corresponding to the application program to be preloaded, when a starting page interface display function in the active window management service is called, whether the current starting page interface belongs to the application program to be preloaded is judged through the starting page interface display function; and if so, forbidding displaying the current start page interface.
4. The method according to claim 3, wherein the determining, by the launch page interface display function, whether the current launch page interface belongs to the application to be preloaded comprises:
identifying a current starting page interface according to the window type through the starting page interface display function;
and judging whether the current starting page interface belongs to the application program to be preloaded or not through the starting page interface display function.
5. The method according to claim 2, wherein when the preset application interface comprises a preset switching animation interface, prohibiting the pre-loading of the preset application interface in the application program to be pre-loaded during the process of displaying the application interface corresponding to the application program to be pre-loaded comprises:
in the process of displaying an application interface corresponding to the application program to be preloaded, when detecting that a prepared application switching function in window management service is about to be called, forbidding to call the prepared application switching function;
or,
in the process of displaying an application interface corresponding to the application program to be preloaded, when a prepared application switching function in a window management service is called, whether the current application program is the application program to be preloaded is judged; if yes, terminating the calling of the prepared application switching function so as to forbid the preloading of a preset switching animation interface in the current application program.
6. An application preloading device, comprising:
the device comprises a preloading event detection module, a pre-loading event detection module and a pre-loading event processing module, wherein the preloading event detection module is used for detecting whether an application preloading event is triggered or not;
the application determination module is used for determining the application program to be preloaded when detecting that the application preloading event is triggered;
the preloading module is used for forbidding to preload the preset application interface when detecting that the preset application interface corresponding to the application program to be preloaded exists in the application interface corresponding to the application program to be preloaded, and displaying the application interfaces except the preset application interface in the application interface corresponding to the application program to be preloaded based on a pre-created preloading activity window stack;
wherein, the boundary coordinate corresponding to the preloading active window stack is positioned outside the coordinate range of the display screen;
and when an operation instruction of a target application program in the application programs to be preloaded is received, migrating an application interface corresponding to the target application program contained in the preloading activity window stack to the display screen for displaying.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the application preloading method according to any one of claims 1-5.
8. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the application preloading method according to any of claims 1-5 when executing the computer program.
CN201810538582.7A 2018-05-30 2018-05-30 Application program preloading method and device, storage medium and terminal Active CN108845838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810538582.7A CN108845838B (en) 2018-05-30 2018-05-30 Application program preloading method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810538582.7A CN108845838B (en) 2018-05-30 2018-05-30 Application program preloading method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN108845838A CN108845838A (en) 2018-11-20
CN108845838B true CN108845838B (en) 2021-07-09

Family

ID=64209995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810538582.7A Active CN108845838B (en) 2018-05-30 2018-05-30 Application program preloading method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN108845838B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694621A (en) * 2019-03-12 2020-09-22 青岛海信移动通信技术股份有限公司 Terminal and display method
CN111752443B (en) * 2019-03-28 2024-07-23 华为技术有限公司 Method, related device and system for controlling page of display equipment
CN112596824A (en) * 2021-01-04 2021-04-02 天津中新智冠信息技术有限公司 Information interaction method and device, electronic equipment and storage medium
CN114579193B (en) * 2022-03-08 2024-01-12 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376974A (en) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 Window switching method and device
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN103744862A (en) * 2013-12-06 2014-04-23 长春吉大工易软件有限公司 Preload optimization method of mobile office application based on Sencha Touch
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN106919313A (en) * 2017-04-21 2017-07-04 维沃移动通信有限公司 The startup method and mobile terminal of a kind of application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298554B (en) * 2013-07-15 2019-01-18 北京三星通信技术研究有限公司 Manage the method and device of multitask application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376974A (en) * 2013-06-28 2013-10-30 广州市动景计算机科技有限公司 Window switching method and device
CN103744862A (en) * 2013-12-06 2014-04-23 长春吉大工易软件有限公司 Preload optimization method of mobile office application based on Sencha Touch
CN103677922A (en) * 2013-12-13 2014-03-26 北京奇虎科技有限公司 Method and device for starting application software
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN106406966A (en) * 2016-10-31 2017-02-15 维沃移动通信有限公司 Preloading method for application and mobile terminal
CN106919313A (en) * 2017-04-21 2017-07-04 维沃移动通信有限公司 The startup method and mobile terminal of a kind of application program

Also Published As

Publication number Publication date
CN108845838A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN108614722B (en) Application program preloading method and device, storage medium and terminal
CN108958830B (en) Application program starting method and device, storage medium and terminal
CN108762843B (en) Application program preloading method and device, storage medium and intelligent terminal
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN108647055B (en) Application program preloading method and device, storage medium and terminal
US11467855B2 (en) Application preloading method and device, storage medium and terminal
CN108681475B (en) Application program preloading method and device, storage medium and mobile terminal
CN108762831B (en) Application program preloading method and device, storage medium and terminal
CN108829457B (en) Application program prediction model updating method and device, storage medium and terminal
EP3579104B1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
CN108595224B (en) Application program prompting method and device, storage medium and terminal
CN108647052B (en) Application program preloading method and device, storage medium and terminal
CN108710513B (en) Application program starting method and device, storage medium and terminal
CN108595230B (en) Application program preloading method and device, storage medium and terminal
CN108595231B (en) Application program preloading method and device, storage medium and intelligent terminal
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN108804153B (en) Application program preloading method and device, storage medium and terminal
CN108776599B (en) Management method and device for preloaded application, storage medium and intelligent terminal
US11099861B2 (en) Method for preloading application, storage medium, and terminal
CN108647056B (en) Application program preloading method and device, storage medium and terminal
CN108845838B (en) Application program preloading method and device, storage medium and terminal
CN108762844B (en) Application program preloading method and device, storage medium and terminal
CN108647057B (en) Screen direction setting method and device, storage medium and terminal
CN108762836B (en) Management method and device for preloaded application, storage medium and intelligent terminal
CN108710512B (en) Application program preloading method and device, storage medium and intelligent terminal

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