CN108845838A - Application program preloads method, apparatus, storage medium and terminal - Google Patents

Application program preloads method, apparatus, storage medium and terminal Download PDF

Info

Publication number
CN108845838A
CN108845838A CN201810538582.7A CN201810538582A CN108845838A CN 108845838 A CN108845838 A CN 108845838A CN 201810538582 A CN201810538582 A CN 201810538582A CN 108845838 A CN108845838 A CN 108845838A
Authority
CN
China
Prior art keywords
application
preloading
program
preloaded applications
applications program
Prior art date
Application number
CN201810538582.7A
Other languages
Chinese (zh)
Inventor
韩世广
陈岩
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN201810538582.7A priority Critical patent/CN108845838A/en
Publication of CN108845838A publication Critical patent/CN108845838A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; 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; 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

Abstract

The embodiment of the present application discloses application program and preloads method, apparatus, storage medium and terminal.This method includes:It detects and is triggered using pre-loaded event;It determines to preloaded applications program;It is preloaded to described to preloaded applications program, and during the preloading, forbids preloading the default application interface in preloaded applications program.The embodiment of the present application is by using above-mentioned technical proposal, during being preloaded to application program, the preloading of selectivity can be carried out to application interface, omit the preload operation of some preset application interfaces, preloading efficiency can be improved, and system resource is saved, reduce power consumption.

Description

Application program preloads method, apparatus, storage medium and terminal

Technical field

The invention relates to application program loading technique field more particularly to application program preload method, apparatus, Storage medium and terminal.

Background technique

Currently, to have become people daily for the terminals such as smart phone, tablet computer, laptop and intelligent appliance Essential electronic equipment in life.As terminal device is constantly intelligent, operation is all mounted in most terminal devices System enables terminal device to install rich and varied application program, meets the needs of user is different.

It can be installed as the configuration of terminal device is constantly promoted, in most terminal devices dozens or even hundreds of using journey Sequence, and as the function of application program becomes increasingly abundant, the resource of application program required load when running is also more and more.Work as user When selection one application program of starting, terminal can load resource needed for the application program launching, after to be loaded, Into the initial interface of application program, whole process will usually spend the several seconds even more than ten seconds time, lead to application program Starting efficiency is lower, needs to improve.

Summary of the invention

The embodiment of the present application provides a kind of application program and preloads method, apparatus, storage medium and terminal, can optimize and answer With the preloading scheme of program.

In a first aspect, the embodiment of the present application provides a kind of application program pre-add support method, including:

It detects and is triggered using pre-loaded event;

It determines to preloaded applications program;

Preloaded to described to preloaded applications program, and during the preloading, forbid to it is described to Default application interface in preloaded applications program is preloaded.

Second aspect, the embodiment of the present application provide a kind of application program pre-load means, including:

Whether pre-loaded event detection module is triggered for detecting using pre-loaded event;

Using determining module, for detecting that determination is to preloaded applications program when being triggered using pre-loaded event;

Preloaded components, for being preloaded to described to preloaded applications program, and in the process of the preloading In, forbid preloading the default application interface in preloaded applications program.

The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the application program pre-add support method as described in the embodiment of the present application when the program is executed by processor.

Fourth aspect, the embodiment of the present application provide a kind of terminal, including memory, and processor and storage are on a memory And the computer program that can be run in processor, the processor realize such as the embodiment of the present application when executing the computer program The application program pre-add support method.

The application program provided in the embodiment of the present application preloads scheme, detects after being triggered using pre-loaded event, It determines to preloaded applications program, treats preloaded applications program and preloaded, and during preloading, forbid treating Default application interface in preloaded applications program is preloaded.By using above-mentioned technical proposal, to application program into During row preloads, the preloading of selectivity can be carried out to application interface, that is, is omitted some preset using boundary The preload operation in face can be improved preloading efficiency, and save system resource, reduce power consumption.

Detailed description of the invention

Fig. 1 is a kind of flow diagram of application program pre-add support method provided by the embodiments of the present application;

Fig. 2 is a kind of preloading active window storehouse provided by the embodiments of the present application and shows the opposite of on-screen display (osd) area Positional diagram;

Fig. 3 is another preloading active window storehouse provided by the embodiments of the present application and the phase for showing on-screen display (osd) area To positional diagram;

Fig. 4 is that a kind of application interface provided by the embodiments of the present application migrates schematic diagram;

Fig. 5 is the flow diagram of another application program pre-add support method provided by the embodiments of the present application;

Fig. 6 is the flow diagram of another application program pre-add support method provided by the embodiments of the present application;

Fig. 7 is a kind of structural block diagram of application program pre-load means provided by the embodiments of the present application;

Fig. 8 is a kind of structural schematic diagram of mobile terminal provided by the embodiments of the present application;

Fig. 9 is the structural schematic diagram of another mobile terminal provided by the embodiments of the present application.

Specific embodiment

Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.It further needs exist for illustrating , part relevant to the application is illustrated only for ease of description, in attached drawing rather than entire infrastructure.

It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..

Fig. 1 is a kind of flow diagram of application program pre-add support method provided by the embodiments of the present application, and this method can be with It is executed by application program pre-load means, wherein the device can be implemented by software and/or hardware, and can generally integrate in the terminal. As shown in Figure 1, this method includes:

Step 101 is detected and is triggered using pre-loaded event.

Illustratively, the terminal in the embodiment of the present application may include mobile phone, tablet computer, laptop and intelligent family The terminal devices such as electricity.Operating system is mounted in terminal.

Illustratively, can be arranged according to the actual situation using the trigger condition of pre-loaded event, the embodiment of the present application is not Make specific limit.For example, can meet preset condition in the movement for detecting user (such as picks up terminal, entr screen unlock behaviour Make or input terminal unlock operation etc.) when, pre-loaded event is applied in triggering;Or it can detect foreground application When change, pre-loaded event is applied in triggering;Or it can be after the pre- flow gauge of preloaded applications, immediately (or by pre- If after duration) it triggers and applies pre-loaded event;Or can be triggered with fixed time interval etc..It is triggered when using pre-loaded event Afterwards, system can be detected by the modes such as reading flag bit or reception triggering command and has been triggered using pre-loaded event, be had Detection mode the embodiment of the present application of body is also without limitation.

Step 102 is determined to preloaded applications program.

Illustratively, it can be understood as the application program that user may will open to preloaded applications program, can be The application program of the fixation pre-set, be also possible to predict by the way of certain come application program etc..To pre-add Carrying application program may include one or more.

In order to improve the starting speed of application program, on the terminal device, it is a kind of normal for preload to application program With and effectively promote the method for user experience, predict user may the application program that will use, by the way that these are answered in advance Starting resource is ready to, and makes it when really being opened by user, being capable of quick start.In the related technology, it is mainly based upon The method of statistics preloads application program, for example the most common application program of user may be only several, by these Application program is all preloaded.However, aforesaid way is too simple roughly, lead to the precision of prediction of preloaded applications program And accuracy is inadequate, therefore, in order to improve prediction accuracy, in the embodiment of the present application, prediction model can be used and treat preloading Application program predicted.The prediction model can be machine learning model, and used algorithm may include circulation nerve Network (Recurrent neural networks, RNN), shot and long term remember (Long Short-Term Memory, LSTM) net Network, thresholding cycling element, simple cycle unit, autocoder, decision tree, random forest, characteristic mean classification, classification return Tree, Hidden Markov, K arest neighbors (k-NearestNeighbor, KNN) algorithm, Logic Regression Models, Bayesian model, Gauss Model and KL divergence (Kullback-Leibler divergence) etc..

Optionally, training sample can be acquired, using training sample to default introductory die during user's using terminal Type is trained, and finally obtains the prediction model for predicting application program to be preloaded.Illustratively, it is wrapped in training sample The element contained may include the time series or order sequence that application program is opened;May include application program be opened time, Place and the frequency etc.;It may include the operating status of terminal, such as the switch state of mobile data network, the connection shape of hotspot State, the identity information of the hotspot connected, currently running application program, upper prospect application program, a current application Program is switched to the plug shape of the time on backstage, earphone jack in the duration of backstage stop, current application program the last time State, charged state, battery level information and screen show duration etc.;It may also include the sensor integrated in terminal to collect Data, such as motion sensor, light sensor, temperature sensor and humidity sensor.

Illustratively, suitable sample elements can be selected according to selected machine learning model, it can also be according to selected Sample elements determine selected machine learning model, may also be combined with the demand to prediction accuracy and pre-set velocity etc. Model and the selection of sample elements etc. are carried out, the embodiment of the present application is without limitation.

In the embodiment of the present application, determine to preloaded applications program to may include according to the output result before prediction model It determines to preloaded applications program, also may include being predicted using prediction model, by the current output result of prediction model It determines to preloaded applications program.

In the embodiment of the present application, when preloaded applications program is multiple (N number of), prediction model can export candidate and answer With the starting probability of candidate's set of applications each in collection of programs, the higher candidate application of probability will be started and be determined as wait preload Application program.Optionally, the determination is to preloaded applications program, including:The starting probability of predicting candidate application program;It will open The dynamic candidate application program of the higher default value of probability is determined as to preloaded applications program.Illustratively, candidate to apply journey Sequence may include all application programs installed in terminal, may also comprise certain applications program.Certain applications program can not include System application can also not include the application program that user is rarely employed.The embodiment of the present application is to candidate application program Method of determination and quantity are without limitation.Optionally, can be made according to each application program in the preset period of time before current time Candidate application program is determined with number and/or using duration, and preset period of time is, for example, 1 month, when access times and/or use It is long that corresponding application program is determined as candidate application program when being more than corresponding threshold value, alternatively, according to access times and/ Or each application program is ranked up using duration, application program in the top is determined as candidate application program.

Illustratively, prediction model described above can be used to determine the starting probability of each candidate application program.For example, Training sample when according to prediction model training, acquires current sample, current sample is input in prediction model, obtain each time Select the starting probability of application program.Sequence from high to low can be carried out to starting probability, will come preceding N's (N is default value) Candidate application program is determined as application program to be loaded.The advantages of this arrangement are as follows can be carried out to multiple application programs pre- Load, and this multiple application program is determined according to starting probability, and the accuracy of prediction can be improved.

Step 103 preloads to preloaded applications program to described, and during the preloading, forbids The default application interface in preloaded applications program is preloaded.

In the embodiment of the present application, when preloaded applications program only has one, without considering the preloading sequence of application; And when preloaded applications program has multiple, it can be determined as currently answering wait preload one by one to preloaded applications program by multiple With program, and preload operation is successively carried out, 2 or more application programs to be preloaded can also be determined as currently wait preload Application program, and preload operation is carried out simultaneously, that is to say, that the preloading procedure of multiple application programs can be parallel progress 's.

In the embodiment of the present application without limitation to the detailed process of preloading and the resource loaded, it may be, for example, to pre- Loading application programs distribute corresponding hardware resource, and related data needed for the load starting of the hardware resource based on distribution.Show Example property, it may include application process starting, application service starting, Memory Allocation, file content reading, Network Data Capture and Interface renders (preloading to application interface) etc..In addition, the resource preloaded can also be according to preloaded applications program Concrete type determine.In order to improve the completeness of preloading, in the embodiment of the present application, preloaded applications program can be treated Application interface is preloaded.However, application interface involved in preloading procedure is not required for user, and General preload is carried out in the sightless situation of user, if preloading to all application interfaces, then will More system resource is wasted, such as central processing unit (Central Process Unit, CPU) or graphics processor Resources such as (Graphics Processing Unit, GPU) not only will increase system power dissipation, but also influence to preload speed. In the embodiment of the present application, the certain applications interface for not needing to be preloaded can be predefined and work as detection in preloading procedure To when currently the application interface preloaded being needed to belong to this kind of application interface, forbid preloading the application interface.

The application program pre-add support method provided in the embodiment of the present application, detects after being triggered using pre-loaded event, It determines to preloaded applications program, treats preloaded applications program and preloaded, and during preloading, forbid treating Default application interface in preloaded applications program is preloaded.By using above-mentioned technical proposal, to application program into During row preloads, the preloading of selectivity can be carried out to application interface, that is, is omitted some preset using boundary The preload operation in face can be improved preloading efficiency, and save system resource, reduce power consumption.

In some embodiments, it is preloaded to described to preloaded applications program, including:It is pre- based on what is be pre-created Loading activity window stack shows described to the corresponding application interface of preloaded applications program, wherein the preloading active window The corresponding boundary coordinate of mouth storehouse is located at except the coordinate range of display screen.It is preloaded outside screen, preloading procedure It is invisible to user, do not interfere with the display of the display content of foreground application on the display screen.

In the embodiment of the present application, active window can be regarded as one it is independent be directly facing user provide interaction and operation Interface may name the interface in different operating system using different nouns.In order to make it easy to understand, below with Android (Android) following explanation is carried out for operating system.

In android system, active window is referred to as Activity.Activity, which is one, to be responsible for interacting with user Component provides screen (can be understood as screen interface, and the display screen of non-physical), so that user's interaction completes certain Item task.In an android application program, an Activity is usually exactly an individual screen, it above can be with Show that some controls can also be monitored and handle the event of user.In being managed to Activity, there is two such concept: Task (task stack) and Stack (active window storehouse).Task corresponds to an application program, and Task is used to store Activity, One or more Activity can be stored in one Task, and these Activity follow " first-in last-out, last in, first out " Principle.And Stack is used to be managed Task, in general, each Activity of the Stack to displaying needed for a screen Affiliated Task is managed, and a Stack can manage one or more Task, and certainly, Stack similarly follows storehouse Basic management principle.The not necessarily complete independent display screen of screen described here, by taking " two screens " as an example, the two Screen may be the region that two independent displays respectively show content in a full display screen.Certainly, if terminal has Two even more than two separate display screens, then " two screens " is also possible to two independent display screens.

In android system, multiwindow mode is supported, it may include span mode, picture-in-picture mode and free schema (FreeForm).Under multiwindow mode, the Stack where application program can have the size (size) of oneself, may include Using the terminal screen upper left corner as the coordinate up and down in the coordinate system of origin.For example, (a, b, c, d), general description is one The coordinate on the boundary of a rectangle, coordinate and the lower right corner that the rectangle upper left corner can be used is indicated, i.e. the top left co-ordinate of rectangle For (a, b), bottom right angular coordinate is (c, d), and such rectangular area just corresponds to the size of Stack.In Stack using interior layout It is to be subject to the size of Stack, that is to say, that the corresponding application interface of Activity is carried out in the bounds of size Display.

Under multiwindow mode, can permit multiple application programs and be in visible state, including system and use it is visible per family Only system is visible.System and refer to being shown on the display screen with visible per family, and user it can be seen that;Only system It can be seen that refer to operating system visible, and user is invisible, may be blocked or by the application on foreground as the application to be realized Display screen outside show.

In the embodiment of the present application, the application interface that preloaded applications program is treated outside display screen is preloaded, can To realize based on the multiwindow mechanism of operating system, the corresponding size of application program is located at by display screen by multiwindow mechanism Curtain is outer and reaches to the sightless purpose of user, to not interfere with the display content of foreground application on the display screen Display.

In general, may exist a plurality of types of Stack under multiwindow mode, as Home Stack indicates desktop application The Stack of display, App Stack indicate that third-party application shows can also there is other split screens Stack etc..The embodiment of the present application In, increase preloading active window storehouse (preloading Stack), the Stack shown for indicating preloaded applications newly, and be arranged The boundary coordinate for preloading Stack is located at except the coordinate range of display screen, and application program to be preloaded may be displayed on The Stack.For android system, can based on the multiwindow mechanism of android system, create one dedicated for Show the Stack of preloaded applications.In the embodiment of the present application, newly-built Stack is because newly-built preloading Stack can be allowed to gather around There are oneself size and visibility, to realize the purpose preloaded outside display screen.

In the embodiment of the present application, without limitation to the creation opportunity for preloading Stack, the default before terminal is dispatched from the factory can be Setting preloads Stack and is in resident state, i.e. preloading Stack is always existed;Can also terminal be switched on when or terminal solution It is created after locking successfully;It (can be before determining to preloaded applications program) can also be created after being triggered using pre-loaded event Build etc..Optionally, described described to preloaded applications program based on the preloading active window storehouse being pre-created preloading Corresponding application interface, including:Judge whether there is the preloading active window storehouse being pre-created;If it does not exist, then according to Preset rules creation preloads active window storehouse;It is preloaded based on the preloading active window storehouse created described to pre-add Carry the corresponding application interface of application program.The advantages of this arrangement are as follows to be preloaded to preloaded applications program in determination Later, judge that preloading Stack whether there is, and if it exists, then without newly-built, if it does not exist, then created, can save and be System resource.It is understood that when preloaded applications program includes multiple, namely need continuous in a short time preload When multiple application programs, before first starts load to preloaded applications program, preloading Stack, which has been created, to be finished, then Before second starts load to preloaded applications program, it is existing for preloading Stack, it may not be necessary to carry out above-mentioned judgement.

In the embodiment of the present application, preload to based on preloading Stack to the corresponding application interface of preloaded applications program Detailed process without limitation, such as can based on preload Stack size carry out application interface drafting and show etc..

In some embodiments, described described wait preload based on the preloading active window storehouse being pre-created preloading The corresponding application interface of application program, including:Creation is described to the corresponding target process of preloaded applications program;It is being pre-created Preloading active window storehouse in creation it is described to the corresponding task stack of preloaded applications program;Existed based on the target process Start in the task stack described to the corresponding active window of preloaded applications program;It is drawn simultaneously based on the active window started Display is described to the corresponding application interface of preloaded applications program.The advantages of this arrangement are as follows screen coordinate model can be based on The application interface that preloading active window storehouse except enclosing treats preloaded applications program is drawn and is shown, will not interfere The operation and display of foreground application guarantee system stability, while effectively improving when the starting of preloaded applications program Speed.While creating target process, it may also include the initialization procedure of target process.In the implementation procedure of above-mentioned steps In, it is also possible to it is related to the preloading of other resources, such as application service starting, Memory Allocation, file content is read and network data Obtain etc., the embodiment of the present application to the preloading procedures of other resources without limitation.

In some embodiments, further include:Focus notice is forged to described send to preloaded applications program, and is based on institute It states and forges the holding lasting drafting to the corresponding application interface of preloaded applications program within a preset period of time of focus notice And display updates.The advantages of this arrangement are as follows can to preloaded applications program obtain focus and to system it is visible In the case of complete the drafting and display of application interface, improve the completeness of preloading, and shadow is not generated to the focus of foreground application It rings.Focus in the embodiment of the present application is also known as input focus, and it is mutually indepedent to forge focus focus corresponding with foreground application.One As, for current android system, focus is unique, such as the inputs operation focus point such as touches and come into force, right In input focus information, system end and application end are consistent, and system end will be sent out once modifying input focus information to application It send input focus information changed information, guarantees that system end is consistent with application end input focus information in this approach.This Shen It please realize that application end can forge the mesh of focus in embodiment, by way of separation system end and application end input focus information 's.Specifically, focus notice is forged to preloaded applications, makes preloaded applications that there is focus information in the embodiment of the present application, and The focus information of system end is still that correctly, processing can enable preloaded applications normally to draw in this way, is reached all The purpose of load.Focus is present in system end and application end, it is believed that is server-side (server) and client (client), is System end record gathers around focal application, and application end saves flag bit (flag) and identifies whether oneself has focus.Forge input focus Opportunity can be when Android window system increase newly window, when needing to update focus, generate forge focus notify and carry out It sends.The method that the method for forging focus can be the change window focus at the end client for calling window, so that the window obtains Take focus.Specifically, the transmission of focus notice can be carried out forging based on Binder mechanism, Binder mechanism is android system Interprocess communication most common mode, using c/s framework, i.e. client/service architecture.In the embodiment of the present application, when presetting Between section can design according to the actual situation, such as can be within the scope of the fixation duration after starting to preload, be also possible to start pre- It is loaded into the period etc. for completing to preload.

For some terminals, especially the mobile terminals such as mobile phone and tablet computer show in order to facilitate the use of user The display mode of display screen curtain generally includes vertical screen display and transverse screen display, and many application program defaults are shown using vertical screen mode Show, and some application programs default is shown (such as some online games) using transverse screen mode, in the use process of terminal, Some application programs can also hold the direction of terminal with user and carry out the switching that horizontal/vertical screen is shown.In some realities of the application It applies in example, the corresponding boundary coordinate of the preloading active window storehouse is (H, 0,2H, H), the corresponding seat of the boundary coordinate Mark system is system coordinates, and the origin of the system coordinates is the upper left corner of the display screen, and H is the display of the display screen The long side length in region.That is, H it is corresponding while be show screen display area it is maximum while, be in vertical screen display The height for showing screen, the width in transverse screen display to show screen.The purpose being arranged in this way allows for display screen transverse screen, pre- The normal display of transverse screen display and some application programs is applied in load.Fig. 2 is a kind of preloading provided by the embodiments of the present application The relative positional relationship schematic diagram of active window storehouse and display on-screen display (osd) area.As shown in Fig. 2, showing that screen is perpendicular at this time Screen mode, terminal system origin are the left vertex (0,0) for showing screen 201, and the width direction of display screen 201 is X Axis, short transverse are Y-axis, and preloading the corresponding boundary coordinate of Stack202 is (H, 0,2H, H), and H is that screen is high, i.e., the left side is real Region in line rectangular extent is main on-screen display (osd) area, and the region within the scope of the dashed rectangle of the right is to preload display area. Fig. 3 is another preloading active window storehouse provided by the embodiments of the present application and shows that the relative position of on-screen display (osd) area is closed It is schematic diagram.As shown in figure 3, showing that screen is transverse screen mode at this time, terminal system origin is the left side for showing screen 301 The short transverse on vertex (0,0), display screen 301 is X-axis, and width direction is Y-axis, preloads the corresponding boundary Stack202 and sits It is designated as (H, 0,2H, H), H is that screen is high, i.e., the region within the scope of the solid-line rectangle of the left side is main on-screen display (osd) area, the right dotted line Region in rectangular extent is to preload display area.

The reason of each boundary Stack is arranged such is preloaded to be:

The abscissa in the upper left corner be H, be in order to prevent transverse screen when show that screen (alternatively referred to as main screen) is shown to pre-add The interface of application is carried, because main screen is in addition to vertical screen mode, there are also transverse screen modes, when main screen transverse screen, in order to prevent Main screen display area domain shows the part of the application of preloading, so the upper left that will preload the corresponding rectangular area Stack Angle abscissa is set as screen height.

The ordinate in the upper left corner is 0, is in order to which preloaded applications can be computed correctly status bar height.Android application For better design user interface (User Interface, UI), the customized top state column of meeting, if top is corresponding vertical Coordinate is not equal to 0, then the height of status bar may mistake.

The abscissa in the lower right corner is 2H (2 times of screen height), i.e. width=screen of the corresponding rectangle of preloading Stack is high, is It can be comprising transverse screen when preloading using (i.e. application interface is transverse screen display mode in order to preload the size of Stack Application program).

The ordinate in the lower right corner is H, i.e. it is to preload that height=screen of the corresponding rectangle of preloading Stack is high The size of Stack can include vertical screen application when preloading.

Based on above-mentioned reason, the size for preloading Stack is set (H, 0,2H, H) by inventor.

In some embodiments, the default application interface includes starting page boundary face and/or default switching cartoon interface.

Wherein, starting page is also known as splashette (Splash screen), enlightenment window (Starting window) or preview Window (Preview Window) etc. generally referred to as opens first page of application, is initially in order to which application can be rapid It opens, prevents white screen or blank screen, backstage can carry out the load of homepage during starting page is shown, it is normal to start page now For information such as the brand, promotional activities and the advertisements that show application program.Starting page in the embodiment of the present application can be quiet The state page is also possible to dynamic page, and wherein dynamic page may include animated pages or the page of continuous switching at runtime etc., this Shen Please embodiment be not especially limited.When opening an Activity, if application program belonging to this Activity does not have also Have and running, system can be one process of application creation belonging to this Activity, but the creation and initialization of process all need The time is wanted, system is if without any reaction, user may be also with corresponding to arrive without point before this movement is completed Position, so there have been starting pages to solve the problems, such as this.Starting page can be regarded as one in program process The successfully preceding contingent window shown is created and initialized, shows this window before program initialization is completed, to inform user system System, which has been known for him, will open this application program and be made that response, show that user can operate after the completion of program initialization Human-computer interaction interface (homepage of such as application program), and remove starting page window.

In some embodiments, described in the preloading when the default application interface includes starting page boundary face In the process, forbid preloading the default application interface in preloaded applications program, including:In the preloading During, when detecting that the starting page boundary face explicit function in active window management service will be called, forbid calling Starting page boundary face explicit function.The advantages of this arrangement are as follows capableing of the display in rapidly and accurately No starting page boundary face. By taking Android system as an example, have in the activity management service (ActivityManagerService) of application program special Function starts page boundary face explicit function (showStartingWindow) to handle display starting page.In general, applying journey When the process of sequence is created or after creation, starting page boundary face explicit function, hair phenomena such as to avoid white screen or blank screen will be called It is raw, therefore, it can detect when the process of preloaded applications program starts creation, it is believed that detect active window management service In starting page boundary face explicit function will be called, at this time come forbid to starting page boundary face explicit function calling.

It is described during the preloading when the default application interface includes starting page boundary face, forbid to institute It states and is preloaded to the default application interface in preloaded applications program, be may also comprise:During the preloading, When calling the starting page boundary face explicit function in active window management service, worked as by starting page boundary face explicit function judgement Whether preceding starting page boundary face belongs to preloaded applications program;If so, forbidding being currently up page boundary face described in display.It sets in this way Setting is advantageous in that, can accurate judgement starting page boundary face to be shown whether belong to preloaded applications program, and in determination Belong to when preloaded applications program, stops the display in the starting page boundary face in time.The embodiment of the present application can retain to starting page The invocation step of interface display function guarantees the stability that application program preloads, and improves to the function, in the function The middle logic for increasing judgement, to judge whether the starting page boundary face currently shown belongs to pre- in the function Loading application programs, if so, the starting page boundary face will not be shown, to realize the starting for forbidding treating preloaded applications program Page boundary face is preloaded.

In some embodiments, described to be currently up whether page boundary face belongs to by starting page boundary face explicit function judgement In to preloaded applications program, including:It is identified and is currently up according to window type by starting page boundary face explicit function Page boundary face;It is currently up whether page boundary face belongs to preloaded applications program by starting page boundary face explicit function judgement. The advantages of this arrangement are as follows starting page boundary face can be recognized accurately.By taking Android system as an example, start the window class that page possesses Type (Window Type) is TYPE_APPLICATION_STARTING, this is the starting unique mark (flag) of page, Starting page can be recognized accurately in showStartingWindow function according to the mark, and judges to start whether page boundary face belongs to To preloaded applications program, if belonging to, the starting page boundary face is not shown.Illustratively, it can determine whether belonging to starting page boundary face Whether application program is to preloaded applications program.Specifically, locating for application program belonging to available starting page boundary face The identity of active window storehouse judges whether the identity is to preload identity;If so, determining described using journey Sequence is preloaded applications program.The advantages of this arrangement are as follows can rapidly and accurately be judged according to the identity of Stack Start whether application program belonging to page boundary face is preloaded applications program.

In some embodiments, presetting application interface includes default switching cartoon interface.Application program is being opened or is being carried out System can generate animation when the operations such as active window switching, and animation drafting needs to expend the resources such as a large amount of CPU/GPU.

Illustratively, described in the preloading when the default application interface includes default switching cartoon interface In the process, forbid preloading the default application interface in preloaded applications program, including:In the preloading During, when detecting that the preparation application switching function in window management service will be called, forbid calling described pre- Standby application switching function.The advantages of this arrangement are as follows can rapidly and accurately forbid the preloading of default application interface.Its In, default switching cartoon interface may include Activity switching cartoon interface, and for Android system, typical Activity is cut The picture that moves may include:ActivityOpenEnterAnimation, activityOpenExitAnimation, TaskOpenEnterAnimation, taskCloseExitAnimation, wallpaperOpenEnterAnimation and WallpaperCloseEnterAnimation etc..System is by calling WindowManagerService's PrepareAppTransition function setup is opened, switches animation.For example, the first step of Activity switching cartoon setting, Generally can by call prepareAppTransition function come be arranged Activity switch animation types, at present for compare Common type may include such as TRANSIT_ACTIVITY_OPEN, TRANSIT_ACTIVITY_CLOSE, TRANSIT_ This is several by TASK_OPEN, TRANSIT_TASK_CLOSE, TRANSIT_TASK_TO_FRONT, TRANSIT_TASK_TO_BACK Kind.PrepareAppTransition () function has mainly done two pieces thing:First is to arrive animation types setting In AppTransition, this value will be used in subsequent operation;Second is to send an APP_TRANSITION_TIMEOUT 5s time exceeded message.When the system of detecting starts to carry out Activity switching cartoon setting, it is believed that detect window management Preparation application switching function in service will be called, and forbid the calling of prepared application switching function at this time, thus from the The setting procedure of one the end of the step Activity switching animation, thus realize forbid it is subsequent to the progress of default switching cartoon interface Drafting and the preload operations such as display.

Illustratively, described in the preloading when the default application interface includes default switching cartoon interface In the process, forbid preloading the default application interface in preloaded applications program, may also comprise:Described pre- During load, call window management service in preparation application switching function when, judge current application program whether be To preloaded applications program;If so, this calling of the prepared application switching function is terminated, to forbid the current application The preloading of default switching cartoon interface in program.The advantages of this arrangement are as follows can accurately judge current application journey Whether sequence is to preloaded applications program, if so, forbidding current application program in time by way of terminating function call The preloading of default switching cartoon interface.In the embodiment of the present application, the invocation step to preparation application switching function can be retained, protected The stability that application program preloads is demonstrate,proved, and when calling prepareAppTransition, increase decision logic, judgement is current Whether application program is to preloaded applications program (i.e. whether current application program has started to preload), to decide whether to continue The call operation of prepareAppTransition function is forbidden to realize when preloading if so, terminating function call Animation can be accelerated to draw speed, reduce power consumption, animation animation caused by the animation of foreground in backstage can also be avoided to ask extremely Topic.

In some embodiments, to it is described preloaded to preloaded applications program after, further include:It is receiving It is described when the operating instruction of the destination application in preloaded applications program, start the target based on resource has been preloaded Application program.Illustratively, shown based on the preloading active window storehouse being pre-created it is described to preloaded applications program After corresponding application interface, further include:Receiving the operation to the destination application in preloaded applications program When instruction, the corresponding application interface of the destination application for including in the preloading active window storehouse is migrated to institute Display screen is stated to be shown.Wherein, the corresponding application interface of destination application may include that destination application is corresponding The corresponding application interface of active window of stack top is currently in task stack.The advantages of this arrangement are as follows can be by will The mode that application interface Direct Transfer to the display screen preloaded is shown, quick start destination application, and start Page and default switching animation migrate the friendship that can directly operate to the application interface of display screen for user not in the column of preloading Mutual interface, user without waiting can operate destination application, and the operational efficiency of destination application can be improved.

Illustratively, Fig. 4 is that a kind of application interface provided by the embodiments of the present application migrates schematic diagram, as shown in figure 4, connecing When receiving the operating instruction of destination application, the destination application for including in active window storehouse will be preloaded and corresponding answered It is migrated with interface 401 to display screen 201 and is shown, specifically, migrating task belonging to preloaded applications interface to answering With the top of active window Stack, and the dimension information, configuration information and visibility of the task is updated, thus application interface energy Enough displays normal on the display screen.

Fig. 5 is the flow diagram of another application program pre-add support method provided by the embodiments of the present application, is grasped with Android For making system, this method comprises the following steps:

Step 501 detects that determination is to preloaded applications program when being triggered using pre-loaded event.

Step 502 starts to treat preloaded applications program and is preloaded.

Step 503, creation initialize target process to the corresponding target process of preloaded applications program, During this, forbids calling the showStartingWindow function in ActivityManagerService, be forbidden with realizing Start the display in page boundary face.

Illustratively, such as while creating target process or when starting to initialize target process, taboo is executed The step of only calling showStartingWindow function.

Step 504, the corresponding task stack of creation destination application in preloading active window storehouse.

Step 505 is started in the task stack based on target process to the corresponding active window of preloaded applications program, And focus notice is forged to sending to preloaded applications program.

Step 506 is updated to the corresponding focus marks position of preloaded applications program, when default according to forgery focus notice It is persistently drawn in section based on the active window started and updates display to the corresponding application interface of preloaded applications program, herein Period forbids calling the prepareAppTransition function in WindowManagerService.

It is understood that may relate to the drafting of multiple application interfaces in step 506 and update display, finding When prepareAppTransition function will be called, forbid calling, forbids treating in preloaded applications program to realize Default switching cartoon interface drafting and display.

Step 507 is receiving when the operating instruction of the destination application in preloaded applications program, will preload The corresponding application interface of the destination application for including in active window storehouse is migrated to display screen and is shown.

Application pre-add support method provided by the embodiments of the present application, in the process treating preloaded applications program and being preloaded In, by forbidding the calling of showStartingWindow function come the display in No starting page boundary face, by forbidding Calling to forbid the preloading to default switching cartoon interface for prepareAppTransition function, can be rapidly and accurately Forbid these application interfaces to be preloaded in preloading procedure, accelerate to preload interface drafting speed, improve and preload efficiency, And reduce the power consumption of preload operation.

Fig. 6 is the flow diagram of another application program pre-add support method provided by the embodiments of the present application, is grasped with Android For making system, this method comprises the following steps:

Step 601 detects that determination is to preloaded applications program when being triggered using pre-loaded event.

Step 602, creation initialize target process to the corresponding target process of preloaded applications program.

Step 603, call ActivityManagerService in showStartingWindow function when, pass through ShowStartingWindow function identifies that the application interface that window type is TYPE_APPLICATION_STARTING is to work as Preceding starting page boundary face.

It is understood that step 603 can start to execute in the implementation procedure of step 602, it can target into Journey initialization starts to execute step 603 before completing.Such as while creating target process or start to carry out target process When initialization, the step of calling showStartingWindow function is executed.

Illustratively, it if not finding the application interface that window type is TYPE_APPLICATION_STARTING, can say It is bright there is currently no starting page boundary face to be shown, can directly execute step 606.

Step 604 is currently up whether page boundary face belongs to wait preload by the judgement of showStartingWindow function Application program, if so, thening follow the steps 605;Otherwise, step 606 is executed.

Step 605 forbids display to be currently up page boundary face, executes step 606.

Step 606, the corresponding task stack of creation destination application in preloading active window storehouse.

Step 607 is started in the task stack based on target process to the corresponding active window of preloaded applications program, And focus notice is forged to sending to preloaded applications program.

Step 608 is updated according to forgery focus notice to the corresponding focus marks position of preloaded applications program, pre- If persistently being drawn in the period based on the active window started and updating display to the corresponding application interface of preloaded applications program.

Step 609, call WindowManagerService in prepareAppTransition function when, judgement Whether current application program is to preloaded applications program, if so, thening follow the steps 610;Otherwise, step 611 is executed.

It is understood that may relate to the drafting of multiple application interfaces in step 608 and update display, so in step During 608 execute, can there is a situation where that prepareAppTransition function is called, i.e., step 609 can be in step Start to execute in rapid 608 implementation procedure, in the embodiment of the present application for convenience of explanation, using the description side of two steps Formula, but to specific implementation procedure and sequence etc. and without limitation.

Step 610, this calling for terminating prepareAppTransition function, to forbid the current application program In default switching cartoon interface preloading.

Step 611 is receiving when the operating instruction of the destination application in preloaded applications program, will preload The corresponding application interface of the destination application for including in active window storehouse is migrated to display screen and is shown.

Application pre-add support method provided by the embodiments of the present application, remains the function tune in application program normal boot process Judge whether application interface to be loaded belongs to preloaded applications program by way of increasing decision logic with step, if Belong to, then take appropriate measures to forbid preloading, accelerates to preload interface drafting speed, improve and preload efficiency, and drop The low power consumption of preload operation.

Fig. 7 is a kind of structural block diagram of application program pre-load means provided by the embodiments of the present application, which can be by soft Part and/or hardware realization, are typically integrated in terminal, can carry out application program by executing application pre-add support method It preloads.As shown in fig. 7, the device includes:

Whether pre-loaded event detection module 701 is triggered for detecting using pre-loaded event;

Using determining module 702, for detecting that determination is to preloaded applications journey when being triggered using pre-loaded event Sequence;

Preloaded components 703, for being preloaded to described to preloaded applications program, and in the mistake of the preloading Cheng Zhong forbids preloading the default application interface in preloaded applications program.

Application program pre-load means provided by the embodiments of the present application, detect after being triggered using pre-loaded event, really Determine to treat preloaded applications program to preloaded applications program and preloaded, and during preloading, forbid treating pre- Default application interface in loading application programs is preloaded.By using above-mentioned technical proposal, carried out to application program During preloading, the preloading of selectivity can be carried out to application interface, that is, omits some preset application interfaces Preload operation, preloading efficiency can be improved, and save system resource, reduce power consumption.

Optionally, it is preloaded to described to preloaded applications program, including:

It is shown based on the preloading active window storehouse being pre-created described corresponding using boundary to preloaded applications program Face, wherein the corresponding boundary coordinate of active window storehouse that preloads is located at except the coordinate range of display screen.

Optionally, the default application interface includes starting page boundary face and/or default switching cartoon interface.

Optionally, described during the preloading when the default application interface includes starting page boundary face, prohibit Only the default application interface in preloaded applications program is preloaded, including:

During the preloading, the starting page boundary face explicit function in active window management service is being detected i.e. When will be called, forbid calling starting page boundary face explicit function;

Alternatively,

During the preloading, when calling the starting page boundary face explicit function in active window management service, It is currently up whether page boundary face belongs to preloaded applications program by starting page boundary face explicit function judgement;If so, Forbid being currently up page boundary face described in display.

Optionally, described to be currently up whether page boundary face belongs to pre-add by starting page boundary face explicit function judgement Application program is carried, including:

It is identified by the starting page boundary face explicit function according to window type and is currently up page boundary face;

It is currently up whether page boundary face belongs to preloaded applications program by starting page boundary face explicit function judgement.

Optionally, when the default application interface includes default switching cartoon interface, the mistake in the preloading Cheng Zhong forbids preloading the default application interface in preloaded applications program, including:

During the preloading, detecting that the preparation application switching function in window management service will be adjusted Used time forbids calling the prepared application switching function;

Alternatively,

During the preloading, when calling the preparation application switching function in window management service, judgement is worked as Whether preceding application program is to preloaded applications program;If so, this calling of the prepared application switching function is terminated, with Forbid the preloading of the default switching cartoon interface in the current application program.

Optionally, which further includes:

Starting module, for receiving the operating instruction to the destination application in preloaded applications program When, start the destination application based on resource has been preloaded.

Optionally, starting module can be specifically used for based on the preloading active window storehouse being pre-created show described in It is described to the destination application in preloaded applications program receiving after the corresponding application interface of preloaded applications program Operating instruction when, by it is described preloading active window storehouse in include the corresponding application interface of the destination application move The display screen is moved to be shown.

The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable Instruction is used for executing application pre-add support method when being executed by computer processor, and this method includes:

It detects and is triggered using pre-loaded event;

It determines to preloaded applications program;

Preloaded to described to preloaded applications program, and during the preloading, forbid to it is described to Default application interface in preloaded applications program is preloaded.

Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (example Such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other types Memory or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, or It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet) Calculation machine system.Second computer system can provide program instruction to the first computer for executing.Term " storage medium " can To include two or more that may reside in different location (such as in the different computer systems by network connection) Storage medium.Storage medium can store the program instruction that can be performed by one or more processors and (such as be implemented as counting Calculation machine program).

Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application The application program preload operation that executable instruction is not limited to the described above can also be performed the application any embodiment and be provided Application program pre-add support method in relevant operation.

The embodiment of the present application provides a kind of terminal, and it is pre- that application program provided by the embodiments of the present application can be integrated in the terminal Loading device.Fig. 8 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.Terminal 800 may include:Memory 801, processor 802 and the computer program that is stored on memory 801 and can be run in processor 802, the processor 802 The application program pre-add support method as described in the embodiment of the present application is realized when executing the computer program.

Terminal provided by the embodiments of the present application can be to application interface during preloading to application program The preloading for carrying out selectivity, that is, omit the preload operation of some preset application interfaces, and preloading effect can be improved Rate, and system resource is saved, reduce power consumption.

Fig. 9 is the structural schematic diagram of another terminal provided by the embodiments of the present application, which may include:Shell (figure In be not shown), memory 901, central processing unit (central processing unit, CPU) 902 (also known as processor, with Lower abbreviation CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in the shell The space interior surrounded;The CPU902 and the memory 901 are arranged on the circuit board;The power circuit, is used for It powers for each circuit or device of the terminal;The memory 901, for storing executable program code;It is described CPU902 is run and the executable program code pair by reading the executable program code stored in the memory 901 The computer program answered, to realize following steps:

It detects and is triggered using pre-loaded event;

It determines to preloaded applications program;

Preloaded to described to preloaded applications program, and during the preloading, forbid to it is described to Default application interface in preloaded applications program is preloaded.

The terminal further includes:Peripheral Interface 903, RF (Radio Frequency, radio frequency) circuit 905, voicefrequency circuit 906, loudspeaker 911, power management chip 908, input/output (I/O) subsystem 909, other input/control devicess 910, touching Touch screen 912, other input/control devicess 910 and outside port 904, these components pass through one or more communication bus or Signal wire 907 communicates.

It should be understood that graphic terminal 900 is only an example of terminal, and terminal 900 can have than figure Shown in more or less component, two or more components can be combined, or can have different portions Part configuration.Various parts shown in the drawings can be including one or more signal processings and/or specific integrated circuit Hardware, software or hardware and software combination in realize.

Just the terminal provided in this embodiment preloaded for application is described in detail below, which is with mobile phone Example.

Memory 901, the memory 901 can be accessed by CPU902, Peripheral Interface 903 etc., and the memory 901 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.

The peripheral hardware that outputs and inputs of equipment can be connected to CPU902 and deposited by Peripheral Interface 903, the Peripheral Interface 903 Reservoir 901.

I/O subsystem 909, the I/O subsystem 909 can be by the input/output peripherals in equipment, such as touch screen 912 With other input/control devicess 910, it is connected to Peripheral Interface 903.I/O subsystem 909 may include 9091 He of display controller For controlling one or more input controllers 9092 of other input/control devicess 910.Wherein, one or more input controls Device 9092 processed receives electric signal from other input/control devicess 910 or sends electric signal to other input/control devicess 910, Other input/control devicess 910 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 9092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.

Touch screen 912, the touch screen 912 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..

Display controller 9091 in I/O subsystem 909 receives electric signal from touch screen 912 or sends out to touch screen 912 Electric signals.Touch screen 912 detects the contact on touch screen, and the contact that display controller 9091 will test is converted to and is shown The interaction of user interface object on touch screen 912, i.e. realization human-computer interaction, the user interface being shown on touch screen 912 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.

RF circuit 905 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 905 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 905 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 905 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..

Voicefrequency circuit 906 is mainly used for receiving audio data from Peripheral Interface 903, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 911.

Loudspeaker 911 is reduced to sound for mobile phone to be passed through RF circuit 905 from the received voice signal of wireless network And the sound is played to user.

Power management chip 908, the hardware for being connected by CPU902, I/O subsystem and Peripheral Interface are powered And power management.

It is arbitrarily real that the application can be performed in application program pre-load means, storage medium and the terminal provided in above-described embodiment Application program pre-add support method provided by example is applied, has and executes the corresponding functional module of this method and beneficial effect.Not upper The technical detail of detailed description in embodiment is stated, reference can be made to application program preloading side provided by the application any embodiment Method.

Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation, The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. a kind of application program pre-add support method, which is characterized in that including:
It detects and is triggered using pre-loaded event;
It determines to preloaded applications program;
It preloads to described to preloaded applications program, and during the preloading, forbids to described to pre-add The default application interface carried in application program is preloaded.
2. being wrapped the method according to claim 1, wherein being preloaded to described to preloaded applications program It includes:
Shown based on the preloading active window storehouse being pre-created it is described to the corresponding application interface of preloaded applications program, In, the corresponding boundary coordinate of active window storehouse that preloads is located at except the coordinate range of display screen.
3. according to the method described in claim 2, it is characterized in that, the default application interface include starting page boundary face and/or Default switching cartoon interface.
4. according to the method described in claim 3, it is characterized in that, when the default application interface include starting page boundary face when, It is described during the preloading, forbid the default application interface to described in preloaded applications program to carry out pre-add It carries, including:
During the preloading, detecting that the starting page boundary face explicit function in active window management service will be by When calling, forbid calling starting page boundary face explicit function;
Alternatively,
During the preloading, when calling the starting page boundary face explicit function in active window management service, pass through The starting page boundary face explicit function judgement is currently up whether page boundary face belongs to preloaded applications program;If so, forbidding Page boundary face is currently up described in display.
5. according to the method described in claim 4, it is characterized in that, described worked as by starting page boundary face explicit function judgement Whether preceding starting page boundary face belongs to preloaded applications program, including:
It is identified by the starting page boundary face explicit function according to window type and is currently up page boundary face;
It is currently up whether page boundary face belongs to preloaded applications program by starting page boundary face explicit function judgement.
6. according to the method described in claim 3, it is characterized in that, when the default application interface includes default switching animation circle It is described during the preloading when face, forbid carrying out the default application interface in preloaded applications program It preloads, including:
During the preloading, detecting that the preparation application switching function in window management service will be called When, forbid calling the prepared application switching function;
Alternatively,
During the preloading, when calling the preparation application switching function in window management service, judgement is currently answered It whether is to preloaded applications program with program;If so, this calling of the prepared application switching function is terminated, to forbid The preloading of default switching cartoon interface in the current application program.
7. according to the method described in claim 2, it is characterized in that, aobvious based on the preloading active window storehouse being pre-created Show it is described to the corresponding application interface of preloaded applications program after, further include:
It is described when the operating instruction of the destination application in preloaded applications program receiving, by the preloading activity The corresponding application interface of the destination application for including in window stack is migrated to the display screen and is shown.
8. a kind of application program pre-load means, which is characterized in that including:
Whether pre-loaded event detection module is triggered for detecting using pre-loaded event;
Using determining module, for detecting that determination is to preloaded applications program when being triggered using pre-loaded event;
Preloaded components are prohibited for preloading to described to preloaded applications program, and during the preloading Only the default application interface in preloaded applications program is preloaded.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The application program pre-add support method as described in any in claim 1-7 is realized when row.
10. a kind of terminal, which is characterized in that including memory, processor and storage can be run on a memory and in processor Computer program, the processor is realized as claimed in claim 1 using journey when executing the computer program Sequence pre-add support method.
CN201810538582.7A 2018-05-30 2018-05-30 Application program preloads method, apparatus, storage medium and terminal CN108845838A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN108845838A true CN108845838A (en) 2018-11-20

Family

ID=64209995

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN108845838A (en)

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

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

Similar Documents

Publication Publication Date Title
US10691332B2 (en) Text input on an interactive display
CN106249909B (en) Language in-put correction
EP3162085B1 (en) Operating method for microphones and electronic device supporting the same
US9823762B2 (en) Method and apparatus for controlling electronic device using touch input
EP2720126B1 (en) Method and apparatus for generating task recommendation icon in a mobile device
US9779527B2 (en) Method, terminal device and storage medium for processing image
EP2933709A2 (en) Haptic information management method and electronic device supporting the same
CN104049866B (en) The implementation method and device of a kind of mobile terminal and its split screen
EP2854010B1 (en) Method and apparatus for displaying messages
EP3355223B1 (en) Unlock method and mobile terminal
EP2981104A1 (en) Apparatus and method for providing information
EP3035283A1 (en) Image processing method and apparatus, and terminal device
KR101390103B1 (en) Controlling image and mobile terminal
CN106406966B (en) Application program preloading method and mobile terminal
US20140358535A1 (en) Method of executing voice recognition of electronic device and electronic device using the same
US20150012881A1 (en) Method for controlling chat window and electronic device implementing the same
ES2643176T3 (en) Method and apparatus for providing independent view activity reports that respond to a tactile gesture
CN108874539B (en) Resource allocation method, device, terminal and storage medium
CN105320425A (en) Context-based presentation of user interface
US10419823B2 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
US9983654B2 (en) Electronic device and method of controlling power of electronic device
US10191718B2 (en) Electronic device for processing multi-modal input, method for processing multi-modal input and server for processing multi-modal input
EP3074861A1 (en) Application activation method and apparatus and electronic equipment
KR20120123744A (en) Api to replace a keyboard with custom controls
CN105163373B (en) A kind of localization method and mobile 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