Summary of the invention
In view of above-mentioned, the present invention provides a kind of application program launching control method, device, terminal and readable storage medium storing program for executing,A possibility that running in application program various terminals can be promoted.
First aspect present invention provides a kind of application program launching control method, which comprises
Receive starting application program instruction when, obtain terminal hardware configuration information and the current network information;
Judge hardware configuration information whether with preset configuration information matches;
If the hardware configuration information and preset configuration information matches, judge the network information whether with default networkInformation matches;
If the network information and the default network information matching, controls the application program and enter default operation mouldFormula.
Preferably, the preset configuration information includes the first configuration information and the second configuration information;The default operation mouldFormula includes the first operational mode and the second operational mode, and the service requirement of second operational mode is lower than the first operation mouldThe service requirement of formula;The method also includes:
If the hardware configuration information is matched with first configuration information, judge the network information whether with it is describedDefault network information matching;
If the network information and the default network information matching, the application program is controlled into the first operation mouldFormula.
Preferably, the method also includes:
If the hardware configuration information is matched with second configuration information, judge the network information whether with it is describedDefault network information matching;
If the network information and the default network information matching, the application program is controlled into the second operation mouldFormula.
Preferably, the method also includes:
It obtains the application program and runs the load time-consuming that a page is completed in load under first operational mode;
If the load is time-consuming to be greater than or equal to default load time-consuming, controls the application program and switch to described secondOperational mode operation.
Preferably, before the control application program switches to the second operational mode operation, the methodFurther include:
If the load is time-consuming to be greater than or equal to default load time-consuming, operation switch prompting information is exported;
When receiving default input information, executes the control application program and switch to the second operational mode fortuneRow.
Preferably, after the application program enters preset running mode, the method also includes:
If the terminal local includes Internet resources, the application program preferentially loads the institute that the terminal local includesState the add-in in Internet resources, wherein the Internet resources include preloading resource packet and/or local cache.
Preferably, the application program enters preset running mode and includes:
Enter the preset running mode during the starting page of the application program is shown.
Second aspect of the present invention also provides a kind of application program launching control device, and described device includes:
Module is obtained, for obtaining the hardware configuration information of the terminal when receiving the instruction of starting application programAnd the current network information;
Judgment module, for judge hardware configuration information whether with preset configuration information matches;And in the hardware configurationInformation and when preset configuration information, judge the network information whether with default network information matching;
Operational mode control module is used in the network information and the default network information matching, described in controlApplication program enters preset running mode.
Third aspect present invention also provides a kind of terminal, which is characterized in that the terminal includes processor and memory, instituteProcessor is stated for realizing application program launching control as described above when executing the computer program stored in the memoryMethod.
Fourth aspect present invention also provides a kind of computer readable storage medium, deposits on the computer readable storage mediumComputer program is contained, the computer program realizes application program launching control method as described above when being executed by processorThe step of.
Application program launching control method, device, terminal and readable storage medium storing program for executing provided by the invention are receiving startingWhen the instruction of program, obtain the terminal hardware configuration information and the current network information, and by judge hardware configuration letterBreath whether with preset configuration information matches and judge the network information whether with default network information matching, with the determination endHold currently supported operational mode, and the hardware configuration information and preset configuration information matches and the network information withIn the case of the default network information matching, controls the application program and enter preset running mode, so that application programOperation adapts to the hardware configuration and current Network status of the terminal, is conducive to run in promotion application program various terminalsA possibility that, and then be conducive to promote the fluency experience that user runs application program.
Further, using the present invention, after the application program enters the first operational mode, by being completed to loadThe time-consuming judgement time-consuming with default load of the load of one page, to determine whether is load fluency in the first operating modeIt meets the requirements.And when the load time-consuming for completing a page is greater than or equal to the default load time-consuming, it is believed that theLoad fluency under one operational mode is poor to the Experience Degree of user.Thus make to apply by way of running mode switchingProgram can be run under lower performance mode, to promote the fluency that user uses.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific realApplying mode, the present invention will be described in detail.It should be noted that in the absence of conflict, presently filed embodiment and realityThe feature applied in mode can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodimentOnly some embodiments of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this fieldThose of ordinary skill's every other embodiment obtained without making creative work, belongs to guarantor of the present inventionThe range of shield.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the inventionThe normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description toolThe purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the flow chart of the application program launching control method of first embodiment of the invention, it should be noted that this hairThe application program launching control method of bright embodiment is not limited to step and sequence in flow chart shown in FIG. 1.RootAccording to different demands, the step in shown flow chart can increase, remove or change sequence.
The application program launching control method of present embodiment is applied to terminal, is related to the electronic technology based on machine learningField, as shown in Figure 1, the application program launching control method may include steps of:
Step 101: when receiving the instruction of starting application program, obtaining the hardware configuration information and current net of terminalNetwork information.
Present embodiment, when the user clicks when the icon of application program, the terminal receives the user in the figureWhen the touch-control of cursor position inputs information, i.e., it is believed that the terminal receives the instruction for opening application program.Certainly, can also pass throughOther modes open the application program, just will not enumerate herein.
In present embodiment, the hardware configuration information of the terminal includes the processor model of the terminal, graphics processType number, internal storage (RAM) size and internal storage space (ROM) size etc..The current network information packet of the terminalInclude current network mode (such as 2G/3G/4G), data transmission bauds.
It is understood that the hardware configuration information for obtaining the terminal can be by calling the system data of the terminal realIt is existing;The network mode for obtaining the current network information of the terminal can call the system set-up parameters of the terminal to realize;It obtainsThe current data transmission bauds of the terminal can be realized by way of uploading test data file and downloading test data file.
Step 102: judge hardware configuration information whether with preset configuration information matches.
In present embodiment, the preset configuration information is that the application program can normally transport under corresponding operational modeWhat row needed, thus the basic hardware configuration information determined.
It is understood that when the hardware configuration information preset configuration letter consistent or described with the preset configuration informationWhen breath, i.e., it is believed that the hardware configuration information and preset configuration information matches.
It is understood that the preset configuration information in present embodiment may include the first configuration information and second with confidenceBreath, wherein first configuration information is that the application program can operate normally needs under high-performance operation mode, becauseAnd the basic hardware configuration information determined;Second configuration information is that the application program can be under low performance operational modeOperate normally needs, thus the basic hardware configuration information determined.
Step 103: if the hardware configuration information and preset configuration information matches, judge the network information whether withDefault network information matching.
In present embodiment, the default network information is that the application program can provide under corresponding operational modeWhat normal loading velocity needed, thus the basic network information determined, include at least data transmission bauds information.
It is understood that when the network information network information consistent or described with the default network information is determinedData transmission bauds when being greater than the data transmission bauds in the default network information, i.e., it is believed that the network information with it is described pre-If network information matching.
Step 104: if the network information and the default network information matching, controlling the application program and enter in advanceIf operational mode.
In present embodiment, the preset running mode is common according to the hardware configuration information and the network information of the terminalIt determines, and the preset running mode is to be different from the operational mode of normal operation mode or compatibility operation mode.
It is understood that by default, the terminal operating is under normal operation mode or compatibility operation mode.And when the hardware configuration information of the terminal and preset configuration information do not match that, the step of present embodiment can be terminated streamJourney, so that the terminal can be run under the normal operation mode.
In present embodiment, the preset running mode may include the first operational mode and the second operational mode, describedThe service requirement of two operational modes is lower than the service requirement of first operational mode, namely is believed that first operational modeFor high-performance operation mode, second operational mode is low performance operational mode, thus corresponds to preset configuration information above-mentioned,Have:
1), when the hardware configuration information is matched with first configuration information, judge the network information whether withThe default network information matching;
When the network information and the default network information matching, the application program is controlled into the first operation mouldFormula.
2), when the hardware configuration information is matched with second configuration information, judge the network information whether withThe default network information matching;
When the network information and the default network information matching, the application program enters the second operational mode.
It is understood that in the first operating mode, the image of load can for image high-definition, can load compared withIt can for complicated style sheet and also load some dynamic images for having visual impact degree;And in the second operating mode, loadImage be that the image of low definition is substituted with the form of filling color and to the image of some available fill colors fillings, forbid loading dynamic image.
In present embodiment, in the instruction for receiving startup program, obtains the hardware configuration information of the terminal and work asThe preceding network information, and by judge hardware configuration information whether with preset configuration information matches and judge that the network information isNo and default network information matching, with the currently supported operational mode of the determination terminal, and in the hardware configuration informationIn the case of preset configuration information matches and the network information and the default network information matching, control described using journeySequence enters preset running mode, so that the operation of application program adapts to the hardware configuration and currently network-like of the terminalCondition is conducive to promote a possibility that running in application program various terminals, and then is conducive to promote user's operation application programFluency experience.
In present embodiment, the default operation mould is entered preferably during the starting page of the application program is shownFormula to enable applications to more be transitioned into naturally under the preset running mode, while avoiding and entering using journeyAfter sequence corresponding information displayed page, then the problem of row running mode switching bring load waste etc..
It, can also be in the following way to increase after the application program enters preset running mode in present embodimentAdd the speed of application program loading page, further to promote the operation fluency of application program:
If the terminal local includes the Internet resources, the application program preferentially loads the terminal local and includesThe Internet resources in add-in.
Herein, the Internet resources may include preloading resource packet and/or local cache, wherein the preloading resourceBao Kezhong contains high stability (i.e. modification frequency is low) and the higher static resource file of access frequency.
Fig. 2 is the flow chart of the application program launching control method of second embodiment of the invention, present embodiment and theThe main distinction of one embodiment is, includes obtaining the application program in first operational mode in second embodimentThe time-consuming and corresponding subsequent processing of load that a page is completed in lower operation load and etc..It should be noted that in the present inventionSpirit or essential attributes in the range of, each concrete scheme suitable for first embodiment can also be suitable for the accordinglyIn two embodiments, for the sake of saving space and avoiding repetition, details are not described herein again.
As shown in Fig. 2, the application program launching control method may include steps of:
Step 201: when receiving the instruction of starting application program, obtaining the hardware configuration information of the terminal and currentThe network information.
Step 202: judge hardware configuration information whether with preset configuration information matches.
Step 203: if the hardware configuration information is matched with first configuration information, judging that the network information isThe no and default network information matching.
Step 204: if the network information and the default network information matching, controlling the application program and enter theOne operational mode.
Step 205: obtaining the application program and run adding for load one page of completion under first operational modeIt carries time-consuming.
In present embodiment, the load time-consuming that a page is completed in the load is to enter one from the application program to specifyThe page, when completing the load of the last one add-in until obtained total time-consuming.
It is understood that the specified page should have certain typicalness, should be included at least in the page a certain amount ofAdd-in.
Step 206: if the load is time-consuming to be greater than or equal to default load time-consuming, controlling the application program and switch toThe second operational mode operation.
In present embodiment, the time-consuming default load can be empirical value or the acceptable load consumption of the user only testedWhen, it can be set to 4 seconds of occurrence.
In present embodiment, the first operational mode can be entered in the application program on the basis of first embodimentAfter, by the time-consuming judgement time-consuming with default load of the load for completing a page to load, mould is run first to determineWhether the load fluency under formula meets the requirements.And when the load time-consuming for completing a page is greater than or equal to described presetLoad is time-consuming, it is believed that load fluency in the first operating mode is poor to the Experience Degree of user.Thus pass through switching fortuneThe mode of row mode allows the application to run under lower performance mode, to promote the fluency that user uses.
In present embodiment, before the control application program switches to the second operational mode operation, alsoThe needs of running mode switching can be asked the user whether by exporting prompt information, specifically:
It is greater than or equal to default load time-consuming when the load is time-consuming, then exports operation switch prompting information, wherein describedThe operation switch prompting information of output can be presented to the user by a pop-up option display mode.
When receiving default input information, executes the application program and switch to the second operational mode operation.ThisPlace, the pop-up option presets input information it is believed that receiving when the user clicks, thus, it is believed that customer acceptance is transportedThe operation of row pattern switching, therefore execute the application program and switch to the second operational mode operation to complete operational modeHandover operation.
Application program launching control method provided by the invention can be by machine learning constantly and repeatedly, can be according to userThe feedback of offer further makes the application program launching control experience for promoting user.
Fig. 3 is the illustrative functional block diagram of the application program launching control device of an embodiment of the present invention.Such as Fig. 3Shown, application program launching control device 100 can obtain the hardware configuration information of terminal in the instruction for receiving startup programAnd the current network information, and by judge hardware configuration information whether with preset configuration information matches and judge network letterBreath whether with default network information matching, with the currently supported operational mode of the determination terminal, and in the hardware configurationIn the case of information and preset configuration information matches and the network information and the default network information matching, answered described in controlEnter preset running mode with program so that the operation of application program adapt to the terminal hardware configuration and current networkSituation is conducive to promote a possibility that running in application program various terminals, and then is conducive to promote user's operation application programFluency experience.
Application program launching control device 100 of the invention may include one or more modules, one or more ofModule can be stored in the memory of terminal and may be configured to by one or more processors (present embodiment oneA processor) it executes, to complete the present invention.For example, as shown in figure 3, the application program launching control device 100 may includeObtain module 11, judgment module 12, operational mode control module 13, output module 14, input module 15 and execution module 16.ThisInventing so-called module can be the program segment for completing a specific function, than program more suitable for description software in the processorImplementation procedure.
It should be noted that each embodiment of corresponding above-mentioned application program launching control method, application program launching controlDevice 100 processed may include part or all in each functional module shown in Fig. 3, and the function of each module will be in following toolBody introduction.Identical noun related terms and its specific explanation in each embodiment of use above program startup control methodIllustrate to be readily applicable to the following function introduction to each module.It is just no longer superfluous herein for the sake of saving space and avoiding repetitionIt states.
Fig. 4 is the illustrative structural schematic diagram of the terminal of an embodiment of the present invention.Terminal 1 provided in this embodiment is wrappedIt includes: processor 10, memory 20, display screen 30 and being stored in the memory 20 and can be run on the processor 10Computer program, as application program launching control program.When the processor 10 executes the computer program, realize above-mentionedStep in each application program launching control method embodiment, such as step 101 shown in FIG. 1 is to step 104.Alternatively,The processor 10 realizes the function of each module in above-mentioned apparatus embodiment when executing the computer program, such as in Fig. 3Acquisition module 11 realize in the instruction for receiving startup program, obtain the hardware configuration information and current net of the terminalThe function of network information.
The terminal 1 can be the calculating such as mobile phone, desktop PC, notebook, palm PC and cloud server and setIt is standby.The terminal 1 may include, but be not limited to, processor 10, memory 20 and display screen 30.Those skilled in the art can manageSolution, the schematic diagram are only example of the present invention for realizing the terminal 1 of application program launching control method, composition pairThe restriction of terminal 1 may include perhaps combining certain components or different components, example than illustrating more or fewer componentsSuch as described terminal 1 can also include input-output equipment, network access equipment, bus.
Alleged processor 10 can be central processing unit (Central Processing Unit, CPU), can also beOther general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processorDeng the processor 10 is the control centre of the terminal 1, utilizes each portion of various interfaces and the entire terminal 1 of connectionPoint.
The memory 20 can be used for storing the computer program and/or module, the processor 10 by operation orThe computer program and/or module being stored in the memory 20 are executed, and calls the data being stored in memory 20,Realize the various functions of the terminal 1.The memory 20 can mainly include storing program area and storage data area, wherein depositStore up program area can application program needed for storage program area, at least one function (for example sound-playing function, image play functionEnergy is equal) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.It can also include nonvolatile memory in addition, memory 20 may include high-speed random access memory, such as hard disk, interiorIt deposits, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card,Flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
The display screen 30 can be used for showing graph text information, allow the user to visually intuitively get its displayInformation.
The terminal 1 may also include application program launching control device 100 as shown in Figure 3, the application program launchingControl device 100 can store in the memory 20.
Illustratively, the computer program can be divided into one or more modules, one or more of mouldsBlock is stored in the memory 20, and is executed by the processor 10, to complete the present invention.One or more of modulesIt can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing the computer programImplementation procedure in the terminal 1.It is opened for example, the computer program can be divided into application program as shown in Figure 3Dynamic control device 100, including obtain module 11, judgment module 12, operational mode control module 13, output module 14, input mouldBlock 15 and execution module 16, each module concrete function are as follows:
Module 11 is obtained, can be used for obtaining the hardware configuration information of terminal when receiving the instruction of starting application programAnd the current network information.
Judgment module 12, can be used for judging hardware configuration information whether with preset configuration information matches;And in the hardwareConfiguration information and when preset configuration information, judge the network information whether with default network information matching;Specifically, may be used alsoJudge whether the hardware configuration information matches with the first configuration information;Judge the hardware configuration information and the second configuration informationWhether match.
Operational mode control module 13 can be used for the control in the network information and the default network information matchingThe application program enters preset running mode.
Output module 14 can be used for being greater than or equal to default load time-consuming in the load time-consuming, export operation switching and mentionShow information.
Input module 15 can be used for receiving default input information.
Execution module 16 can be used for when receiving default input information, executes the application program and switches to described theThe operation of two operational modes.
If the integrated module of terminal 1 of the present invention is realized in the form of SFU software functional unit and as independent productWhen selling or using, it can store in a computer readable storage medium.Based on this understanding, in present invention realizationThe all or part of the process in the application program launching control method of each embodiment is stated, can also be referred to by computer programRelevant hardware is enabled to complete, the computer program can be stored in a computer readable storage medium, the computer journeySequence is when being executed by processor, it can be achieved that step in the application program launching control method of the respective embodiments described above.Wherein, instituteStating computer program includes computer program code, and the computer program code can be source code form, object identification code shapeFormula, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry the computer journeyAny entity or device of sequence code, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only storageDevice (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal,Telecommunication signal and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can basisLegislation and the requirement of patent practice carry out increase and decrease appropriate in jurisdiction, such as in certain jurisdictions, according to legislationAnd patent practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er QieIn the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matterFrom the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended powerBenefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claimsVariation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.ThisOutside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.System, device or terminal installation rightMultiple units, module or the device stated in it is required that can also pass through software or hardware by the same unit, module or deviceTo realize.The first, the second equal words are used to indicate names, and are not indicated any particular order.
Embodiment of above is only used to illustrate the technical scheme of the present invention and not to limit it, although referring to the above preferable embodiment partyFormula describes the invention in detail, those skilled in the art should understand that, it can be to technical solution of the present inventionIt modifies or equivalent replacement should not all be detached from the spirit and scope of technical solution of the present invention.