CN109213537A - Starting control method, device, storage medium and the terminal of application program - Google Patents
Starting control method, device, storage medium and the terminal of application program Download PDFInfo
- Publication number
- CN109213537A CN109213537A CN201810936704.8A CN201810936704A CN109213537A CN 109213537 A CN109213537 A CN 109213537A CN 201810936704 A CN201810936704 A CN 201810936704A CN 109213537 A CN109213537 A CN 109213537A
- Authority
- CN
- China
- Prior art keywords
- application program
- starting
- active window
- default
- network state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present application discloses starting control method, device, storage medium and the terminal of application program.This method comprises: detecting that the starting event of default application program is triggered, the current network state of terminal is obtained, if current network state is matched with default network state, the starting opportunity of the active window of default application program is controlled using preset rules.The embodiment of the present application is by using above-mentioned technical proposal, the starting opportunity of active window in default application program can be rationally controlled according to the current network state of terminal, it avoids causing starting abnormal because the starting opportunity of active window under ad hoc network state is bad, guarantees the smooth starting of default application program.
Description
Technical field
The invention relates to field of terminal technology more particularly to the starting control method of application program, device, storages
Medium and terminal.
Background technique
Currently, with the fast development of terminal technology, many intelligent terminals have become in user's daily life must can not
Few electronic tool.
Various application programs can be generally installed in terminal, realize rich and varied function, meet of user
Property use demand.During user uses application program, whether the starting speed of application program successfully starts up and transports
Row fluency etc., the usage experience of user can all be had an impact and terminal and application programming side's R&D process in examine
The emphasis of worry.However, some current application programs are easy to happen problem on startup, moved back or screen flicker (as gone out suddenly as dodged
Existing completely black picture or complete white picture etc.) etc., therefore, the starting control program of existing application program needs to be optimized.
Summary of the invention
The embodiment of the present application provides starting control method, device, storage medium and the terminal of a kind of application program, Ke Yiyou
Change the starting control program of application program.
In a first aspect, the embodiment of the present application provides a kind of starting control method of application program, comprising:
Detect that the starting event of default application program is triggered;
Obtain the current network state of terminal;
If the current network state is matched with default network state, using preset rules to the default application program
Starting opportunity of active window controlled.
Second aspect, the embodiment of the present application provide a kind of starting control device of application program, comprising:
Whether event detection trigger module, the starting event for detecting default application program are triggered;
Network state obtains module, when for being triggered in the starting event for detecting default application program, obtains terminal
Current network state;
Starting opportunity control module is used for when the current network state is matched with default network state, using default
Rule controls the starting opportunity of the active window of the default application 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 starting control method of the application program 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 starting control method of the application program.
The starting control program of the application program provided in the embodiment of the present application detects the starting thing of default application program
The current network state that terminal is obtained when part is triggered, when current network state is matched with default network state, using default
Rule controls the starting opportunity of the active window of default application program.It, can basis by using above-mentioned technical proposal
The current network state of terminal rationally controls the starting opportunity of active window in default application program, avoids because of ad hoc network state
The starting opportunity of lower active window is bad and causes starting abnormal, guarantees the smooth starting of default application program.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the starting control method of application program provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the starting control method of another application program provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the starting control method of another application program provided by the embodiments of the present application;
Fig. 4 is a kind of structural block diagram of the starting control device of application program provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another 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 the starting control method of application program provided by the embodiments of the present application, this method
It can be executed by the starting control device of application program, wherein the device can be implemented by software and/or hardware, and can generally be integrated in
In terminal.As shown in Figure 1, this method comprises:
Step 101 detects that the starting event of default application program is triggered.
Illustratively, the terminal in the embodiment of the present application may include that mobile phone, tablet computer, computer and game machine etc. can
The terminal device of application program is installed.
In the terminal, generally open application program mode can there are many kinds of.Illustratively, predetermined manner can be passed through
The mode of the corresponding starting entrance of application program is triggered to open application program, starting entrance specifically may include desktop icons, float
The predetermined manner of at least one of window and list of application item, triggering starting entrance for example can be the operation such as click.It is detecting
When being triggered to the corresponding starting entrance of default application program with predetermined manner, it is believed that detect the starting thing of default application program
Part is triggered.For example, then detecting the starting thing of A when the desktop icons for detecting A are clicked for default application program A
Part is triggered.Illustratively, an application program can also be opened because of the calling of another application program, pre- detecting
If application program is called by other applications, it is believed that detect that the starting event of default application program is triggered.Such as
When proceeding to payment step in some shopping class application program, payment class application program can be called, so that payment class is answered
It is opened with program.Certainly, the mode that whether the starting event of the default application program of detection is triggered can also have other modes,
The embodiment of the present application is without limitation.
Illustratively, default application program may include the whole application programs or certain applications program installed in terminal.It can
Choosing, start-up course of the different application under heterogeneous networks state can be investigated, exception occur to start-up course
Application program and corresponding network state are recorded, and are screened out from it default application program.Optionally, the default application
Program includes online tactics sports (Multiplayer Online Battle Arena, MOBA) the class game application of more people.
Step 102, the current network state for obtaining terminal.
In general, terminal can access network in a wired or wireless manner.For wireless mode, wireless office can be passed through
(such as fourth generation mobile communication technology 4G mobile data network or the 5th third-generation mobile communication technology 5G move for domain net or mobile data network
Dynamic data network) access network.Whether current network state may include terminal currently in connected state, connected network
Network type and the network signal quality of connected network etc..
If step 103, the current network state are matched with default network state, using preset rules to described default
The starting opportunity of the active window of application program is controlled.
Inventors have found that certain application programs are during startup, if being abnormal situation, it is to a certain extent and end
The locating network state in end is relevant, and in the related technology, application program is not opened for terminal current network state
It is dynamic targetedly to be designed or controlled.In addition, inventor also found, the screen that application program occurs during startup dodges
The relationship of the abnormal conditions such as bright and network state is very close, screen flicker can behave as terminal screen occur suddenly completely black picture or
Complete white picture, may then restore to normal pictures, such case can bring poor visual experience to user, influence to use
The use at family.In addition, inventor also found, targetedly controlled by the starting opportunity of the active window to application program
System, can be effectively improved starting abnormal conditions.
It, without limitation to default network state and corresponding preset rules, can be according to default in the embodiment of the present application
The difference of application program is arranged accordingly.Illustratively, it can be tested respectively for each default application program,
Determine each default corresponding default network state of application program and corresponding preset rules.Illustratively, for pre-
If application program A, start default application program A under different network states respectively, records corresponding when generation starting exception
Target network state the starting opportunity of the active window of default application program A is adjusted under the target network state
It is whole, under target network state, when no longer there are starting abnormal conditions, by the work of current default application program A adjusted
The adjustment mode on the starting opportunity of dynamic window is recorded as preset rules, is default network state by target network state recording.It can
Choosing, for the same default application program, one or more default network states may be corresponded to, each default network state can
With a corresponding preset rules.
The starting control method of the application program provided in the embodiment of the present application detects the starting thing of default application program
The current network state that terminal is obtained when part is triggered, when current network state is matched with default network state, using default
Rule controls the starting opportunity of the active window of default application program.It, can basis by using above-mentioned technical proposal
The current network state of terminal rationally controls the starting opportunity of active window in default application program, avoids because of ad hoc network state
The starting opportunity of lower active window is bad and causes starting abnormal, guarantees the smooth starting of default application program.
In some embodiments, if the current network state is matched with default network state, using default rule
Then the starting opportunity of the active window of the default application program is controlled, comprising: if the current network state is disconnected
Net state then controls the starting opportunity of the active window of the default application program using preset rules.Invention human hair
Existing, some application programs are when terminal is in suspension state, it may appear that starting is abnormal, therefore suspension state can be set as default
Network state, and the starting opportunity of the active window of default application program is controlled accordingly.The benefit being arranged in this way exists
In it is abnormal can effectively to solve the problems, such as that starting occurs under suspension state in default application program.Whether detection terminal is in disconnected
The mode of net state can have very much, and the embodiment of the present application is without limitation.By taking the mobile terminals such as mobile phone as an example: when detecting movement
SIM is not inserted into the card slot of client identification module (Subscriber Identification Module, the SIM) card of terminal
Card, and wireless network switchs when being not switched on, it is believed that it is in suspension state, wherein wireless network switch may include wirelessly protecting
Very (Wireless Fidelity, WIFI) is switched;When detect mobile terminal mobile data network (data traffic) switch and
When wireless network switch is not switched on, it is believed that be in suspension state;When detecting that mobile terminal is in offline mode, can recognize
For in suspension state.
In some embodiments, if the current network state is matched with default network state, using default rule
Then the starting opportunity of the active window of the default application program is controlled, comprising: if the current network state is corresponding
Network signal quality be lower than preset standard, then when using preset rules to the starting of the active window of the default application program
Machine is controlled.Inventors have found that some application programs terminal be in network signal quality it is poor when, be easy to appear starting it is different
Often, network state setting when therefore network signal quality can be lower than to preset standard is default network state, and is answered default
It is controlled accordingly with the starting opportunity of the active window of program.The advantages of this arrangement are as follows can effectively solve to preset
Application program occurs the abnormal problem of starting when network signal quality is poor.Illustratively, can be come with network signal intensity
Network signal quality is measured, the corresponding network signal quality of current network state can be current network state lower than preset standard
Corresponding network signal intensity is lower than default network signal intensity.To the specific of default network signal intensity in the embodiment of the present application
Numerical value is without limitation.In general, can generally believe with decibel milliwatt (dBm) for unit gauge signal intensity when being less than -100dBm
Number weaker, above-mentioned default network signal intensity can be -100dBm, it is of course also possible to be other numerical value.
Optionally, the default network state in the embodiment of the present application can include above-mentioned two situations, i.e. suspension shape simultaneously
State and the corresponding network signal quality of current network state are lower than preset standard, are detecting current network state in above-mentioned
When any default network state, be all made of corresponding preset rules to starting opportunity of the active window of default application program into
Row control.Wherein, whether identical about corresponding preset rules in the case of two kinds, the embodiment of the present application is without limitation.Hair
Bright people's analysis, some application programs may have patch (patch) to need to carry out in the case where networking to take with network on startup
Business device content is shaken hands, if network disconnects or when network signal is bad, be may result in patch and is synchronized and be obstructed or patch is same
Step missing and so on, such application program is it is possible that program loads retardance, load not exclusively or procedural sequences are disorderly
Situations such as random, and then it is abnormal starting occur.
In some embodiments, it is described using preset rules to the starting opportunity of the active window of the default application program
It is controlled, comprising: after the first active window starting of the default application program, it is corresponding to detect first active window
Whether loaded if not finishing prevents the second active window of the default application program from starting at the first interface.It is optional
, wherein first active window includes first active window run when the default application program is activated, institute
Stating the second active window includes that the default application program active window run when login interface occurs.Optionally, described
The operating system that terminal loads includes Android operation system, at this point, first active window includes LauncherActivity,
Second active window includes QuickLoginFirstActivity.Optionally, if loaded, allow described default
Second active window of application program starts.Inventor analysis, application program occur program load retardance, load not exclusively or
When procedural sequences disorder, it is likely that it will lead in the short time that the first activity has just started, the second active window is activated,
And the also non-loaded in the first interface, the corresponding second contact surface of the second active window begin to load at this time, can upset and occupy
The loading schedule of the corresponding thread in the first interface should be belonged to, so as to cause there is the phenomenon that screen flicker.The embodiment of the present application
Being designed in this way is advantageous in that, rationally controls the starting opportunity of the first active window and the second active window, avoids screen flicker
The generation of phenomenon.
Optionally, can create one section of code be used to detect corresponding first interface of the first active window whether loaded,
When detecting this section of code, it is believed that loaded.
Optionally, the second active window starting for preventing the default application program, comprising: second is living if detecting
Dynamic window will be loaded, then suspend and execute the corresponding object code of second active window.The advantages of this arrangement are as follows
The starting that the second active window can timely and accurately be intercepted, avoids the generation of screen flicker phenomenon.Illustratively, terminal passes through
The title of the second active window is loaded into system operation to realize and detect that the second active window will be loaded.It can be with
A filter condition is created, when detecting that the second active window is inactive, keeps original state, otherwise, pause executes the second activity
The corresponding code line of window (such as code line comprising the second window name).
In some embodiments, it is described using preset rules to the starting opportunity of the active window of the default application program
It is controlled, comprising: start timing in the first active window starting of the default application program, detecting time duration
Not up to before preset duration, the second active window starting of the default application program is prevented.Optionally, wherein described
One active window includes first active window run when the default application program is activated, second active window
The active window run when there is login interface including the default application program.The advantages of this arrangement are as follows Neng Goucong
The starting of the second active window of time upper limit system is that the corresponding page load of the first active window retains the sufficient time.It is optional
, after detecting that time duration reaches preset duration, the second active window of the default application program is allowed to start.
Optionally, the concrete mode that the second active window of detection will be loaded and prevent the second active window to start can
With reference to above-mentioned related content, details are not described herein again.
In some embodiments, stringenter condition can be set to prevent the second active window of default application program
Starting.For example, starting timing in the first active window starting of the default application program, first active window is detected
Whether loaded if loaded detects whether current time duration has reached preset duration at corresponding first interface,
If not up to, the second active window of the default application program is prevented to start.Wherein, if non-loaded, prevents institute
State the second active window starting of default application program.The advantages of this arrangement are as follows the first active window can be further ensured that
Mouthful corresponding first interface loaded, avoids just permitting when leading to the first interface not real loaded because erroneous judgement occurs
Perhaps the second active window starts.
Fig. 2 is the flow diagram of the starting control method of another application program provided by the embodiments of the present application, the party
Method includes the following steps:
Step 201 detects that the starting event of default application program is triggered.
Step 202, the current network state for obtaining terminal.
Step 203 judges whether current network state matches with default network state, if so, thening follow the steps 204;It is no
Then, step 209 is executed.
Illustratively, default network state may include that suspension state or the corresponding network signal quality of current network state are low
In preset standard.
Step 204 starts timing in the first active window starting of default application program.
Wherein, first active window includes first active window run when the default application program is activated
Mouthful.
Step 205, corresponding first interface of the first active window of detection whether loaded, if so, thening follow the steps
206;Otherwise, step 208 is executed.
Step 206 judges that current time duration is not up to preset duration, if so, thening follow the steps 207;Otherwise, step is executed
Rapid 208.
Step 207, the second active window starting for allowing default application program.
Wherein, second active window includes that the default application program active window run when login interface occurs
Mouthful.
Step 208, the second active window starting for preventing default application program, and return to step 205.
Optionally, after executing step 206, when obtained judgement result is no, step 208 is executed, can return to and execute step
Rapid 206, because the first interface loaded has been detected at this time, without repeating step 205.
Step 209, normal start preset application program.
Illustratively, in this step, default application program is not actuated for intervening, i.e., it will not be to default application program
Starting opportunity of active window be adjusted.
The starting control method of application program provided by the embodiments of the present application, in the starting thing for detecting default application program
The current network state that terminal is obtained when part is triggered, when current network state is suspension state or poor network quality,
Before the corresponding first interface loaded of first active window, the starting of the second active window is prevented, and on binding time
Limitation is further ensured that the complete load at the first interface, avoids the abnormal feelings such as splashette occur during default application program launching
Condition guarantees the smooth starting of default application program.
Fig. 3 is the flow diagram of the starting control method of another application program provided by the embodiments of the present application, with pre-
If application program be MOBA class game application for, this method comprises:
Step 301 detects that the starting event of default game application is triggered.
MOBA class game is also known as the online tactics competitive game of more people, is current one of mainstream game classification.Common
MOBA class game includes palm hero alliance, which is that a player fights player (player versus player, PVP)
Mode battle game, PVP mode allow to carry out the game of the various ways such as 1V1,3V3,5V5 between player.In addition, MOBA class is swum
Play further include: heroic alliance, king's honor, the sword of hero, super refreshing, the wit the Three Kingdoms of the whole people, the sword H5 of archangel, eternal discipline
Member: it guards against, space-time calling, the super refreshing, decisive battle of millet!Safety capital and melee Journey to the West etc..As game class application, generally have on startup
Many patch needs carry out shaking hands with network server content in the case where networking, and inventors have found that since MOBA class is swum
Play is different from other kinds of game, other game do not have the rule of battle game, therefore Code Design is different, is more easier
The phenomenon that occurring starting to screen flicker during login interface in the case where suspension or network signal difference.
Illustratively, by taking the operating system of terminal is Android system as an example, the system of terminal can be by presetting game application
Packet name navigate in terminal and be mounted with default game application APK.Assuming that user presets the desk-top picture of game application by clicking
Target mode starts default application program, then terminal is when the desktop icons for detecting default game application are clicked, it is believed that
Detect that the starting event of default game application is triggered.
Step 302, the current network state for obtaining terminal.
Illustratively, it can obtain in terminal and whether be inserted with SIM card, whether mobile data network switch is opened, WIFI switch
Whether open, whether offline mode is opened and the relevant informations such as network signal intensity, carry out the current network of comprehensive assessment terminal
State.
Step 303 judges whether current network state matches with default network state, if so, thening follow the steps 304;It is no
Then, step 309 is executed.
Wherein, default network state may include suspension state or the corresponding network signal intensity of current network state lower than pre-
If network signal intensity.Judge whether current network state can refer to hereinbefore with the matched concrete mode of default network state
Associated description, details are not described herein again.
Step 304 starts timing in the LauncherActivity starting of default game application.
Step 305, corresponding first interface detection LauncherActivity whether loaded, if so, executing step
Rapid 306;Otherwise, step 308 is executed.
Illustratively, java code can be created, for judging whether corresponding first interface LauncherActivity adds
Load finishes, such as:
public void class A{
System.out.println (" A has been loaded ");
}
Wherein, A is LauncherActivity.
Step 306 judges that current time duration is not up to preset duration, if so, thening follow the steps 307;Otherwise, step is executed
Rapid 308.
Illustratively, for MOBA class game application, preset duration can be 93ms, be also possible to other numerical value,
It can be determined according to factors such as game self characters.
Step 307, the QuickLoginFirstActivity starting for allowing default game application.
Step 308, the QuickLoginFirstActivity starting for preventing default game application, and return to step
305。
Illustratively, terminal can be by being loaded into the name of QuickLoginFirstActivity in system operation
When title, it is believed that detect that QuickLoginFirstActivity will start.A filter condition be can establish to prevent
QuickLoginFirstActivity starting, such as:
Boolean B=false;//B does not start
If (B=false)
It remains stationary
}else{
Code line pause executes the row for having B title }
Wherein, B is QuickLoginFirstActivity.
Optionally, after executing step 306, when obtained judgement result is no, step 308 is executed, can return to and execute step
Rapid 306, because LauncherActivity loaded has been detected at this time, without repeating step 305.
Step 309, normal start preset game application.
The starting control method of application program provided by the embodiments of the present application is detecting MOBA by taking MOBA game as an example
When game application starts, if detecting, current is the state of suspension state or network quality difference, then can open active window
Dynamic opportunity is managed, and can effectively solve the exception such as screen flicker occur during MOBA game enters login interface after actuation
The problem of, the fluency of MOBA game running is improved, while avoiding bringing puzzlement for player, is conducive to promote user experience.
Fig. 4 is a kind of structural block diagram of the starting control device of application program provided by the embodiments of the present application, which can
By software and or hardware realization, it is typically integrated in terminal, it can be by the starting control method of executing application come to application
Program is actuated for controlling.As shown in figure 4, the device includes:
Whether event detection trigger module 401, the starting event for detecting default application program are triggered;
Network state obtains module 402, when for being triggered in the starting event for detecting default application program, obtains eventually
The current network state at end;
Starting opportunity control module 403 is used for when the current network state is matched with default network state, using pre-
If rule controls the starting opportunity of the active window of the default application program.
The starting control device of the application program provided in the embodiment of the present application detects the starting thing of default application program
The current network state that terminal is obtained when part is triggered, when current network state is matched with default network state, using default
Rule controls the starting opportunity of the active window of default application program.It, can basis by using above-mentioned technical proposal
The current network state of terminal rationally controls the starting opportunity of active window in default application program, avoids because of ad hoc network state
The starting opportunity of lower active window is bad and causes starting abnormal, guarantees the smooth starting of default application program.
Optionally, if the current network state is matched with default network state, using preset rules to described
The starting opportunity of the active window of default application program is controlled, comprising:
If the current network state is suspension state, using preset rules to the active window of the default application program
The starting opportunity of mouth is controlled;Alternatively,
If the corresponding network signal quality of the current network state is lower than preset standard, using preset rules to described
The starting opportunity of the active window of default application program is controlled.
Optionally, described to be controlled using starting opportunity of the preset rules to the active window of the default application program
System, comprising:
After the first active window starting of the default application program, first active window corresponding first is detected
Interface whether loaded;Wherein, first active window includes run when the default application program is activated
One active window;
If not finishing, the second active window of the default application program is prevented to start;Wherein, second active window
Mouth includes that the default application program active window run when login interface occurs.
Optionally, described to be controlled using starting opportunity of the preset rules to the active window of the default application program
System, comprising:
Start timing in the first active window starting of the default application program, is detecting that time duration is not up to
Before preset duration, the second active window starting of the default application program is prevented;Wherein, first active window includes
First active window that the default application program is run when being activated, second active window include that described preset is answered
The active window run when there is login interface with program.
Optionally, the second active window starting for preventing the default application program, comprising:
If detecting, the second active window will be loaded, and suspended and executed second active window corresponding target generation
Code.
Optionally, the operating system that the terminal loads includes Android operation system;
First active window includes LauncherActivity, and second active window includes
QuickLoginFirstActivity。
Optionally, the default application program includes the online tactics sports MOBA class game application of more people.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
It instructs when being executed by computer processor for the starting control method of executing application, this method comprises:
Detect that the starting event of default application program is triggered;
Obtain the current network state of terminal;
If the current network state is matched with default network state, using preset rules to the default application program
Starting opportunity of active window controlled.
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 starting for the application program that executable instruction is not limited to the described above controls operation, and the application any embodiment institute can also be performed
Relevant operation in the starting control method of the application program of offer.
The embodiment of the present application provides a kind of terminal, and application program provided by the embodiments of the present application can be integrated in the terminal
Start control device.Fig. 5 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.Terminal 500 may include: storage
Device 501, processor 502 and the computer program that is stored on memory 501 and can be run in processor 502, the processor
502 realize the starting control method of the application program as described in the embodiment of the present application when executing the computer program.
Terminal provided by the embodiments of the present application can rationally control default application program according to the current network state of terminal
The starting opportunity of middle active window, avoid because the starting opportunity of active window under ad hoc network state is bad cause to start it is different
Often, guarantee the smooth starting of default application program.
Fig. 6 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 601, central processing unit (central processing unit, CPU) 602 (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 CPU602 and the memory 601 are arranged on the circuit board;The power circuit, is used for
It powers for each circuit or device of the terminal;The memory 601, for storing executable program code;It is described
CPU602 is run and the executable program code pair by reading the executable program code stored in the memory 601
The computer program answered, to perform the steps of
Detect that the starting event of default application program is triggered;
Obtain the current network state of terminal;
If the current network state is matched with default network state, using preset rules to the default application program
Starting opportunity of active window controlled.
The terminal further include: Peripheral Interface 603, RF (Radio Frequency, radio frequency) circuit 605, voicefrequency circuit
606, loudspeaker 611, power management chip 608, input/output (I/O) subsystem 609, other input/control devicess 610, touching
Touch screen 612, other input/control devicess 610 and outside port 604, these components pass through one or more communication bus or
Signal wire 607 communicates.
It should be understood that graphic terminal 600 is only an example of terminal, and terminal 600 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.
Below just it is provided in this embodiment for application program launching control terminal be described in detail, the terminal with
For mobile phone.
Memory 601, the memory 601 can be accessed by CPU602, Peripheral Interface 603 etc., and the memory 601 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 CPU602 and deposited by Peripheral Interface 603, the Peripheral Interface 603
Reservoir 601.
I/O subsystem 609, the I/O subsystem 609 can be by the input/output peripherals in equipment, such as touch screen 612
With other input/control devicess 610, it is connected to Peripheral Interface 603.I/O subsystem 609 may include 6091 He of display controller
For controlling one or more input controllers 6092 of other input/control devicess 610.Wherein, one or more input controls
Device 6092 processed receives electric signal from other input/control devicess 610 or sends electric signal to other input/control devicess 610,
Other input/control devicess 610 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 6092 can with it is following any one connect: keyboard, infrared port,
The indicating equipment of USB interface and such as mouse.
Touch screen 612, the touch screen 612 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 6091 in I/O subsystem 609 receives electric signal from touch screen 612 or sends out to touch screen 612
Electric signals.Touch screen 612 detects the contact on touch screen, and the contact that display controller 6091 will test is converted to and is shown
The interaction of user interface object on touch screen 612, i.e. realization human-computer interaction, the user interface being shown on touch screen 612
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 605 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 605 receives and sends RF letter
Number, RF signal is also referred to as electromagnetic signal, and RF circuit 605 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 605 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 606 is mainly used for receiving audio data from Peripheral Interface 603, which is converted to telecommunications
Number, and the electric signal is sent to loudspeaker 611.
Loudspeaker 611 is reduced to sound for mobile phone to be passed through RF circuit 605 from the received voice signal of wireless network
And the sound is played to user.
Power management chip 608, the hardware for being connected by CPU602, I/O subsystem and Peripheral Interface are powered
And power management.
Starting control device, storage medium and the terminal of the application program provided in above-described embodiment can be performed the application and appoint
The starting control method of application program provided by embodiment of anticipating has and executes the corresponding functional module of this method and beneficial to effect
Fruit.The not technical detail of detailed description in the above-described embodiments, reference can be made to application program provided by the application any embodiment
Starting control 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 starting control method of application program characterized by comprising
Detect that the starting event of default application program is triggered;
Obtain the current network state of terminal;
If the current network state is matched with default network state, work of the preset rules to the default application program is used
The starting opportunity of dynamic window is controlled.
2. if the method according to claim 1, wherein the current network state and default network state
Matching then controls the starting opportunity of the active window of the default application program using preset rules, comprising:
If the current network state is suspension state, using preset rules to the active window of the default application program
Starting opportunity is controlled;Alternatively,
If the corresponding network signal quality of the current network state is lower than preset standard, using preset rules to described default
The starting opportunity of the active window of application program is controlled.
3. the method according to claim 1, wherein it is described using preset rules to the default application program
The starting opportunity of active window is controlled, comprising:
After the first active window starting of the default application program, corresponding first interface of first active window is detected
Whether loaded;Wherein, first active window includes first run when the default application program is activated
Active window;
If not finishing, the second active window of the default application program is prevented to start;Wherein, the second active window packet
It includes the default application program and the active window run when login interface occurs.
4. the method according to claim 1, wherein it is described using preset rules to the default application program
The starting opportunity of active window is controlled, comprising:
Start timing in the first active window starting of the default application program, is detecting that time duration is not up to default
Before duration, the second active window starting of the default application program is prevented;Wherein, first active window includes described
First active window that default application program is run when being activated, second active window include described default using journey
There is the active window run when login interface in sequence.
5. the method according to claim 3 or 4, which is characterized in that described to prevent the second of the default application program from living
Dynamic window starting, comprising:
If detecting, the second active window will be loaded, and suspended and executed the corresponding object code of second active window.
6. the method according to claim 3 or 4, which is characterized in that the operating system that the terminal loads includes Android behaviour
Make system;
First active window includes LauncherActivity, and second active window includes
QuickLoginFirstActivity。
7. the method according to claim 1, wherein the default application program includes the online tactics sports of more people
MOBA class game application.
8. a kind of starting control device of application program characterized by comprising
Whether event detection trigger module, the starting event for detecting default application program are triggered;
Network state obtains module and obtains working as terminal when for being triggered in the starting event for detecting default application program
Preceding network state;
Starting opportunity control module is used for when the current network state is matched with default network state, using preset rules
The starting opportunity of the active window of the default application program is controlled.
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 starting control method of the application program 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
The starting control method of sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810936704.8A CN109213537A (en) | 2018-08-16 | 2018-08-16 | Starting control method, device, storage medium and the terminal of application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810936704.8A CN109213537A (en) | 2018-08-16 | 2018-08-16 | Starting control method, device, storage medium and the terminal of application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109213537A true CN109213537A (en) | 2019-01-15 |
Family
ID=64989038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810936704.8A Pending CN109213537A (en) | 2018-08-16 | 2018-08-16 | Starting control method, device, storage medium and the terminal of application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109213537A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362359A (en) * | 2019-07-11 | 2019-10-22 | 重庆传音通讯技术有限公司 | A kind of program starting method, apparatus, terminal and storage medium |
CN110381376A (en) * | 2019-07-09 | 2019-10-25 | 青岛海信传媒网络技术有限公司 | Application processing method, device and terminal |
CN111683176A (en) * | 2020-05-09 | 2020-09-18 | 珠海格力电器股份有限公司 | Application addiction prevention method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101317171A (en) * | 2005-11-30 | 2008-12-03 | 微软公司 | Delay start-up of applications |
US20140317285A1 (en) * | 2011-11-21 | 2014-10-23 | Sony Computer Entertainment Inc. | Information processing system |
CN106547582A (en) * | 2015-09-22 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of preprocess method and device |
CN106823372A (en) * | 2016-12-22 | 2017-06-13 | 深圳众思科技有限公司 | Game on line starts method, device and terminal |
CN107908452A (en) * | 2017-11-15 | 2018-04-13 | 福建中金在线信息科技有限公司 | Multi-page starts method and device |
-
2018
- 2018-08-16 CN CN201810936704.8A patent/CN109213537A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101317171A (en) * | 2005-11-30 | 2008-12-03 | 微软公司 | Delay start-up of applications |
US20140317285A1 (en) * | 2011-11-21 | 2014-10-23 | Sony Computer Entertainment Inc. | Information processing system |
CN106547582A (en) * | 2015-09-22 | 2017-03-29 | 阿里巴巴集团控股有限公司 | A kind of preprocess method and device |
CN106823372A (en) * | 2016-12-22 | 2017-06-13 | 深圳众思科技有限公司 | Game on line starts method, device and terminal |
CN107908452A (en) * | 2017-11-15 | 2018-04-13 | 福建中金在线信息科技有限公司 | Multi-page starts method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381376A (en) * | 2019-07-09 | 2019-10-25 | 青岛海信传媒网络技术有限公司 | Application processing method, device and terminal |
CN110362359A (en) * | 2019-07-11 | 2019-10-22 | 重庆传音通讯技术有限公司 | A kind of program starting method, apparatus, terminal and storage medium |
CN111683176A (en) * | 2020-05-09 | 2020-09-18 | 珠海格力电器股份有限公司 | Application addiction prevention method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107783803B (en) | System optimization method and device of intelligent terminal, storage medium and intelligent terminal | |
WO2019024603A1 (en) | Terminal and child mode implementation method, and computer readable storage medium | |
CN110515533B (en) | Electronic equipment shortcut operation method and device, electronic equipment and storage medium | |
CN107249084B (en) | Mobile terminal, program calling method and computer-readable storage medium | |
CN109213537A (en) | Starting control method, device, storage medium and the terminal of application program | |
CN107944258A (en) | Start control method, device, storage medium and the terminal of application with method of service | |
CN106681717B (en) | Terminal application program management method and device and electronic equipment | |
CN108646906A (en) | Frame per second method of adjustment, device, storage medium and intelligent terminal | |
WO2019218886A1 (en) | Application pre-loading management method, device, storage medium and smart terminal | |
CN107861773A (en) | Associate management-control method, device, storage medium and the mobile terminal started | |
CN109840418A (en) | Jump control method, device, storage medium and the terminal of application program | |
CN107608853A (en) | Control method, device, storage medium and the intelligent terminal of terminal usage time | |
CN106990831A (en) | A kind of method and terminal for adjusting screen intensity | |
CN108804153A (en) | Preloading method, apparatus, storage medium and the terminal of application program | |
CN107831886A (en) | Association starts management-control method, device, storage medium and the intelligent terminal of application | |
CN106446670A (en) | Application management method and device and electronic equipment | |
CN106937258B (en) | A kind of control method of broadcast, device and mobile terminal | |
CN106778128B (en) | Information protection method, device and terminal | |
EP3486823B1 (en) | System notification service control method, apparatus, terminal device, and storage medium | |
CN107862203A (en) | Control method, device, storage medium and the terminal of application program | |
CN108829444A (en) | A kind of method that background application is automatically closed, terminal and computer storage medium | |
CN107957905A (en) | Method, apparatus, storage medium and the intelligent terminal of self-starting are applied in limitation | |
CN107197082A (en) | A kind of information prompting method and terminal | |
CN112084483B (en) | Application locking and unlocking method, device, equipment and storage medium | |
CN107391989A (en) | Message treatment method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190115 |
|
RJ01 | Rejection of invention patent application after publication |