The course control method and device of a kind of application program
Technical field
The present invention relates to communication technical field, in particular, is related to the course control method and dress of a kind of application program
Put.
Background technology
With science and technology constantly bring forth new ideas, intelligent television be not only operating only under a kind of mode of operation carry out it is defeated
Go out, can also support the operation of other patterns simultaneously, and realize the switching of intelligent television in different modes.Such as intelligent television simultaneously
Support the output of simulated television pattern and DTMB (Digital Television Terrestrial Multimedia
Broadcasting, DTTB) pattern output.
However, when intelligent television is worked under simulated television pattern, the signal originating process under simulated television pattern is just located
In running status;When intelligent television is worked under DTMB patterns, DTMB processes corresponding with DTMB are also at running status
In.Generally, in the operating system of android system, after user's click exits application such as the shortcut of home keys, the application is simultaneously
It is not exiting truly, its corresponding application process is but corresponding by its application nor closing truly
Process be put into system background and continued to run with.
Therefore, when exiting signal originating process when user clicks on shortcut, and opening DTMB processes simultaneously, due to signal source
Process and DTMB processes are run in systems simultaneously, and simply signal originating process operates in system background, and DTMB processes, which operate in, is
Unite foreground, therefore, the problem of signal originating process and DTMB processes now will occur mutually to fight for intelligent television system resource.
This undoubtedly reduces the stability of intelligent television system, have impact on systematic function.
The content of the invention
In view of the above-mentioned problems, the present invention provides a kind of course control method and device of application program, to solve existing skill
The problem of intelligent television system stability reduces caused by signal originating process mutually fights for system resource with DTMB processes in art.Skill
Art scheme is as follows:
Based on an aspect of of the present present invention, the present invention provides a kind of course control method of application program, applied to intelligent electricity
Depending on, including:
Obtain the control instruction for opening DTTB DTMB applications of user's input;
Detect the intelligent television and currently whether there is the signal originating process being in running status;
If it does, stop the signal originating process being in running status;
Open DTMB processes corresponding to the DTMB applications.
Preferably, in addition to:
If the intelligent television there is currently no the signal originating process in running status, the DTMB is directly opened
Using corresponding DTMB processes.
Preferably, the detection intelligent television currently whether there is the signal originating process bag being in running status
Include:
Send broadcast message;The character string with default mark is comprised at least in the broadcast message;Wherein, it is described to carry
The character string of default mark is used for after the signal originating process receives the character string, stops the signal originating process;
Receive feedback message;The feedback message is used to show that current intelligent television whether there is in running status
Signal originating process.
Preferably, the detection intelligent television currently whether there is the signal originating process bag being in running status
Include:
Search the process stack that the intelligent television is currently in running status;The process stack is at least in for storage
Signal originating process and/or DTMB processes in running status;
Judge to whether there is signal originating process in the process stack.
Preferably, the signal originating process being in described in the stopping in running status includes:
The identity of the signal originating process is extracted from the process stack;
By the processing to the identity, stop the signal originating process being in running status.
Preferably, the identity includes Process flowchart symbol PID.
Based on another aspect of the present invention, the present invention provides a kind of progress control unit of application program, applied to intelligence
TV, including:
Acquisition module, for obtaining the control instruction for opening DTTB DTMB applications of user's input;
Detection module, it currently whether there is the signal originating process being in running status for detecting the intelligent television;
Stopping modular, the letter in running status is there is currently for detecting the intelligent television in the detection module
During number originating process, stop the signal originating process being in running status;
Opening module, for opening DTMB processes corresponding to the DTMB applications.
Preferably, the detection module includes:
Broadcast message module is sent, is broadcast the message for sending;Comprised at least in the broadcast message with default mark
Character string;Wherein, the character string with default mark is used for after the signal originating process receives the character string,
Stop the signal originating process;
Message module is received, for receiving feedback message;The feedback message is used to show whether current intelligent television is deposited
In the signal originating process in running status.
Preferably, the detection module includes:
Searching modul, the process stack being currently at for searching the intelligent television in running status;The process stack is extremely
It is few to be used to store the signal originating process being in running status and/or DTMB processes;
Judge module, for judging to whether there is signal originating process in the process stack.
Preferably, the stopping modular includes:
Identity extraction module, for extracting the identity of the signal originating process from the process stack;
Stop submodule, for by the processing to the identity, stopping the signal being in running status
Originating process.
Using above-mentioned technical proposal, after the present invention obtains the control instruction of unlatching DTMB applications of user's input, examine first
Survey intelligent television and currently whether there is the signal originating process being in running status.It is in when detecting that intelligent television there is currently
During signal originating process in running status, stop after being in the signal originating process in running status, opening, DTMB applications are corresponding
DTMB processes.Therefore, the present invention when opening DTMB processes, close signal originating process, avoid signal originating process with
DTMB processes are run in systems simultaneously, and intelligent television system money is mutually fought for so as to avoid signal originating process and DTMB processes
The problem of source, it ensure that the stability of intelligent television system.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is a kind of a kind of flow chart of the course control method of application program provided by the invention;
Fig. 2 is a kind of another flow chart of the course control method of application program provided by the invention;
Fig. 3 is a kind of another flow chart of the course control method of application program provided by the invention;
Fig. 4 is a kind of flow chart of stop signal originating process method provided by the invention;
Fig. 5 is a kind of a kind of structural representation of the progress control unit of application program provided by the invention;
Fig. 6 is a kind of structural representation of detection module in a kind of progress control unit of application program provided by the invention
Figure;
Fig. 7 is another structural representation of detection module in a kind of progress control unit of application program provided by the invention
Figure;
Fig. 8 is a kind of structural representation of stopping modular in a kind of progress control unit of application program provided by the invention
Figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
In the prior art, for the different demands of user, user can switch the mode of operation of intelligent television, open intelligence electricity
Different processes under apparent different working modes.As intelligent television works under simulated television pattern first, at signal originating process
In running status.Sometime, user wants to open the DTMB processes under DTMB patterns.Now, user can click on such as
The shortcut of home keys exits signal source application, that is, exits signal originating process corresponding to signal source application, then goes unlatching DTMB to enter
Journey.However, design of the android system of existing intelligent television to application is to apply the shortcut that home keys are clicked in user
It is not exiting for the application program of real meaning when exiting, but system has put it to system background and continued to run with.Now,
For intelligent television system, after user is again turned on DTMB processes, signal originating process and DTMB in intelligent television enter
Journey can be in running status simultaneously.Therefore, signal originating process and DTMB processes will mutually fight for intelligent television system resource,
This undoubtedly reduces the stability of intelligent television system, have impact on systematic function.The present invention is exactly to be directed on of the prior art
The course control method and device of a kind of application program of shortcoming proposition are stated, to solve signal originating process and DTMB in the prior art
Process mutually fights for intelligent television system resource.The problem of causing the stability of intelligent television system to reduce.
It should be noted that when intelligent television is worked under simulated television pattern in the present invention, start under simulated television
The i.e. corresponding open signal originating process of application program.When intelligent television is under DTMB patterns, it is pair to start DTMB application programs
DTMB processes should be opened.
Embodiment one
Fig. 1 is referred to, it illustrates a kind of a kind of flow chart of the course control method of application program provided by the invention,
Including:
Step 101, the control instruction of the unlatching DTMB applications of user's input is obtained.
In the present embodiment, when user clicks on the application program for starting DTMB, that is, the unlatching DTMB of user's input is got
The control instruction of application.
In actual applications, intelligent television includes multiple application modules, as video module, chat module, audio-frequency module,
On-line module etc..Different application modules correspondingly belongs to different application programs.When user chooses some application to start, i.e., pair
Process corresponding to the application should be opened.
Step 102, detect intelligent television and currently whether there is the signal originating process being in running status.If it does,
Step 103 is performed, if it does not, performing step 105.
In the present embodiment, when user, which triggers, opens DTMB applications, intelligent television is detected first currently with the presence or absence of place
Signal originating process in running status.
In the prior art, after user, which clicks on, exits signal originating process such as the shortcut of home keys, based on android system
To the design concept of application, it can't directly stop signal originating process, but by signal originating process be put into system background after
Reforwarding row.In the present invention, in order to avoid signal originating process and DTMB processes are simultaneously in running status, when getting user
The control instruction of the unlatching DTMB applications of input, detection intelligent television currently whether there is the signal source being in running status and enter
Journey, if it does, performing the signal originating process that step 103 stops being in running status.
Step 103, the signal originating process being in running status is stopped.
Step 104, DTMB processes corresponding to DTMB applications are opened.
In the present embodiment, the signal originating process in running status is being detected the presence of, and running status will be in
In signal originating process stop after, open DTMB application corresponding to DTMB processes.
Step 105, DTMB processes corresponding to DTMB applications are directly opened.
In the present embodiment, when detect intelligent television currently without exist be in running status in signal originating process
When, directly open DTMB processes corresponding to DTMB applications.
Using the above-mentioned technical proposal of the present invention, control instruction of the present invention in the unlatching DTMB applications for obtaining user's input
Afterwards, intelligent television is detected first currently whether there is the signal originating process being in running status.When detect intelligent television work as
When preceding presence is in the signal originating process in running status, stops after being in the signal originating process in running status, opening
DTMB processes corresponding to DTMB applications.Therefore, the present invention closes signal originating process, avoids letter when opening DTMB processes
Number originating process and DTMB processes are run in systems simultaneously, and intelligence is mutually fought for so as to avoid signal originating process and DTMB processes
The problem of television system resource, it ensure that the stability of intelligent television system.
Embodiment two
On the basis of above-described embodiment, referring to Fig. 2, it illustrates a kind of process of application program provided by the invention
Another flow chart of control method, including:
Step 201, the control instruction of the unlatching DTMB applications of user's input is obtained.
Step 202, broadcast message is sent.Wherein, the character string with default mark is comprised at least in broadcast message;Its
In, the character string with default mark is used for after signal originating process receives the character string, stop signal originating process.
In the present embodiment, after system gets the control instruction of unlatching DTMB applications of user's input, system can be certainly
It is dynamic to send a broadcast message to the application layer of intelligent television.The character with default mark is comprised at least in the broadcast message
String.If there is the signal originating process being in running status, the signal source being now in running status in current intelligent television
Process can receive the broadcast message, and read the character string in the broadcast message.Preferably, signal originating process is connect by broadcast
Receive device and receive broadcast message.
After signal originating process reads the character string with default mark, own process can be stopped according to the instruction of character string
Operation, to realize the purpose of stop signal originating process.
If the signal originating process being in running status is not present in current intelligent television, the broadcast message is intended only as one
Individual common message is broadcasted in application layer.
Step 203, feedback message is received.Wherein, feedback message is used to show that current intelligent television whether there is in fortune
Signal originating process in row state.If it does, step 204 is performed, if it does not, performing step 206.
In the present embodiment, if current intelligent television has the signal originating process being in running status, signal source
, can also be to one feedback message of DTMB progress feedbacks while process receives broadcast message stopping own process.The feedback
The information content that there is currently the signal originating process in running status is comprised at least in message.Now, DTMB processes receive
To the feedback message, the information content in feedback message is read, knows that current intelligent television has the letter being in running status
Number originating process.Preferably, the relevant information of signal originating process can also be included in feedback message, to help DTMB processes to signal
The depth of originating process understands.
Step 204, the signal originating process being in running status is stopped.
In the present embodiment, when DTMB processes receive the feedback message of signal originating process transmission, current intelligence electricity is known
While depending on the signal originating process being in running status be present, the broadcast that signal originating process also have read system transmission disappears
The character string with default mark that breath includes, the letter for stopping being in running status according to the character string with default mark
Number originating process.
Step 205, DTMB processes corresponding to DTMB applications are opened.
Step 206, DTMB processes corresponding to DTMB applications are directly opened.
When in the present embodiment, in order to ensure to open DTMB processes corresponding to DTMB applications, it stopped in operation
Signal originating process in state, the present invention can be arranged on the preset time after the feedback information for receiving the transmission of signal originating process
Afterwards, DTMB processes corresponding to DTMB applications are opened in control;Can also be arranged on signal originating process it is out of service after, system send one
Confirm to stop message to DTMB processes, DTMB processes get DTMB corresponding to unlatching DTMB applications after the confirmation stops message and entered
Journey.
Embodiment three
On the basis of above-described embodiment, referring to Fig. 3, a kind of process of application program provided by the invention please be show
Another flow chart of control method, including:
Step 301, the control instruction of the unlatching DTMB applications of user's input is obtained.
Step 302, the process stack that intelligent television is currently in running status is searched.Wherein, process stack is at least used to deposit
The signal originating process and/or DTMB processes that storage is in running status.
In the present invention, intelligent television system includes at least one process stack, and process stack is at least used to store in fortune
Signal originating process and/or DTMB processes in row state.After signal source process initiation, the signal originating process is just put into process
In stack, after DTMB process initiations, just the DTMB processes are put into process stack.In addition, after other application starts in system,
Process corresponding to other application can also be put into process stack by system.
Certainly, it is different according to the type of application, multiple process stacks also can be set, be respectively used to store corresponding to different application
Process.After one or more processes have been put into some process stack, the process stack is just in running status.
In the present embodiment, after the control instruction of unlatching DTMB applications of user's input is obtained, system first looks for locating
Process stack in running status.
Step 303, judge to whether there is signal originating process in process stack.If it does, step 304 is performed, if do not deposited
Performing step 306.
In the present embodiment, system searching judges each process respectively to after all process stacks in running status
It whether there is signal originating process in stack.If signal originating process be present at least one process stack, show current intelligent television
In the presence of the signal originating process in running status.If signal source is not present in all process stacks in running status
Process, show that the signal originating process being in running status is not present in current intelligent television.
Step 304, the signal originating process being in running status is stopped.
In the present embodiment, when detecting signal originating process in process stack be present, the signal originating process is stopped.
Specifically, Fig. 4 is see, it illustrates a kind of flow chart of stop signal originating process method provided by the invention,
Including:
Step 401, the identity of signal originating process is extracted from process stack.
Wherein, identity can be PID (Process Identifier, Process flowchart symbol).In actual application
In, system can be automatically one unique PID of course allocation corresponding to application program after application program launching, and PID is used to distinguish
Different processes.After process terminates stopping, system can withdraw the PID of the process.After in other process initiations, system is being incited somebody to action
PID distributes to process corresponding to the program that other are in running status.Therefore, the present invention need to only extract the identity of signal originating process
Identify PID, you can find the signal originating process in running status.Pass through the place of the identity PID to signal originating process
Reason, realizes the control to signal originating process.
Step 402, by the processing to identity, the signal originating process being in running status is stopped.
In the present embodiment, after the identity PID of system extraction signal originating process, such as kill-PID behaviour is performed
Make, withdraw the PID of signal originating process, stop the signal originating process being in running status.
Step 305, DTMB processes corresponding to DTMB applications are opened.
Step 306, DTMB processes corresponding to DTMB applications are directly opened.
Example IV
Based on a kind of description of the course control method of application program provided by the invention above, the present invention also provides a kind of
The progress control unit of application program, applied to intelligent television, referring to Fig. 5, it illustrates a kind of application provided by the invention
A kind of structural representation of the progress control unit of program, including:Acquisition module 100, detection module 200, the and of stopping modular 300
Opening module 400.Wherein,
Acquisition module 100, the control instruction of the unlatching DTMB applications for obtaining user's input.
Detection module 200, it currently whether there is the signal originating process being in running status for detecting intelligent television.
Stopping modular 300, the signal in running status is there is currently for detecting intelligent television in detection module 200
During originating process, stop the signal originating process being in running status.
Opening module 400, for opening DTMB processes corresponding to DTMB applications.
Using the above-mentioned technical proposal of the present invention, the unlatching DTMB that the present invention obtains user's input in acquisition module 100 should
After control instruction, intelligent television is detected by detection module 200 first and currently whether there is the signal being in running status
Originating process.When detection module 200 detects that intelligent television there is currently the signal originating process in running status, stop mould
Block 300 stops after being in the signal originating process in running status, and opening module 400 is entered in DTMB corresponding to unlatching DTMB applications
Journey.Therefore, the present invention closes signal originating process, avoids signal originating process and DTMB processes are same when opening DTMB processes
Shi Yunhang in systems, so as to avoid signal originating process and the problem of DTMB processes mutually fight for intelligent television system resource,
It ensure that the stability of intelligent television system.
Embodiment five
On the basis of above-described embodiment, the present invention also provides detection module in a kind of progress control unit of application program
A kind of structural representation, referring to Fig. 6, including:Send broadcast message module 210 and receive message module 220.Wherein,
Broadcast message module 210 is sent, is broadcast the message for sending.Wherein, comprised at least in broadcast message with default
The character string of mark;Wherein, the character string with default mark is used to receive the character in the signal originating process
After string, stop the signal originating process.
Message module 220 is received, for receiving feedback message.Wherein, feedback message is used to show that current intelligent television is
It is no the signal originating process being in running status to be present.
Embodiment six
On the basis of above-described embodiment, the present invention also provides detection module in a kind of progress control unit of application program
Another structural representation, referring to Fig. 7, including:Searching modul 230 and judge module 240.
Searching modul 230, the process stack being currently at for searching intelligent television in running status.Wherein, process stack is extremely
It is few to be used to store the signal originating process being in running status and/or DTMB processes.
Judge module 240, for judging to whether there is signal originating process in process stack.
Embodiment seven
On the basis of above-described embodiment, the present invention also provides stopping modular in a kind of progress control unit of application program
A kind of structural representation, referring to Fig. 8, including:Identity extraction module 310 and stopping submodule 320.Wherein,
Identity extraction module 310, for extracting the identity of signal originating process from process stack.
Preferably, identity can be PID (Process Identifier, Process flowchart symbol).
Stop submodule 320, for by the processing to identity, the signal source for stopping being in running status to be entered
Journey.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
The course control method and device of a kind of application program provided by the present invention are described in detail above, this
Apply specific case in text to be set forth the principle and embodiment of the present invention, the explanation of above example is only intended to
Help to understand method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, the think of according to the present invention
Think, in specific embodiments and applications there will be changes, in summary, this specification content should not be construed as pair
The limitation of the present invention.