Summary of the invention
For the problems referred to above, the invention provides a kind of course control method and device of application program, to solve signal source process and DTMB process in prior art, mutually fight for the problem that intelligent television system stability that system resource causes reduces.Technical scheme is as follows:
Based on an aspect of of the present present invention, the invention provides a kind of course control method of application program, be applied to intelligent television, comprising:
Obtain the control command of the unlatching Digital Television Terrestrial Broadcasting DTMB application of user's input;
Detect the current signal source process whether existing in running status of described intelligent television;
If existed, stop described signal source process in running status;
Open described DTMB and apply corresponding DTMB process.
Preferably, also comprise:
If the current signal source process not existing in running status of described intelligent television, directly opens described DTMB and applies corresponding DTMB process.
Whether preferably, the described intelligent television of described detection is current exists the signal source process in running status to comprise:
Send broadcast; In described broadcast, at least comprise the character string with default sign; Wherein, the described character string with default sign, for receiving after described character string in described signal source process, stops described signal source process;
Receive feedback message; Described feedback message is for showing whether current intelligent television exists the signal source process in running status.
Whether preferably, the described intelligent television of described detection is current exists the signal source process in running status to comprise:
Search the current process stack in running status of described intelligent television; Described process stack is at least for storing signal source process and/or the DTMB process in running status;
Judge in described process stack and whether have signal source process.
Preferably, described in, stopping described signal source process in running status comprises:
The identify label of extracting described signal source process from described process stack;
By the processing to described identify label, stop described signal source process in running status.
Preferably, described identify label comprises process command character PID.
Based on another aspect of the present invention, the invention provides a kind of progress control unit of application program, be applied to intelligent television, comprising:
Acquisition module, for obtaining the control command of the unlatching Digital Television Terrestrial Broadcasting DTMB application of user's input;
Detection module, for detection of the current signal source process whether existing in running status of described intelligent television;
Stopping modular, when detecting the signal source process of the current existence of described intelligent television in running status at described detection module, stops described signal source process in running status;
Opening module, applies corresponding DTMB process for opening described DTMB.
Preferably, described detection module comprises:
Send broadcast module, for sending broadcast; In described broadcast, at least comprise the character string with default sign; Wherein, the described character string with default sign, for receiving after described character string in described signal source process, stops described signal source process;
Receipt message module, for receiving feedback message; Described feedback message is for showing whether current intelligent television exists the signal source process in running status.
Preferably, described detection module comprises:
Search module, for searching the current process stack in running status of described intelligent television; Described process stack is at least for storing signal source process and/or the DTMB process in running status;
Judge module, for judging whether described process stack exists signal source process.
Preferably, described stopping modular comprises:
Identify label extraction module, for the identify label of extracting described signal source process from described process stack;
Stop submodule, for by the processing to described identify label, stop described signal source process in running status.
Application technique scheme, the present invention obtains after the control command of unlatching DTMB application of user input, first detects the current signal source process whether existing in running status of intelligent television.When the signal source process of the current existence of intelligent television in running status being detected, stop after the signal source process in running status, apply corresponding DTMB process opening DTMB.Therefore, the present invention, when opening DTMB process, has closed signal source process, has avoided signal source process and DTMB process to operate in system simultaneously, thereby avoided signal source process and DTMB process mutually to fight for the problem of intelligent television system resource, guaranteed the stability of intelligent television system.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
In prior art, for user's different demands, user can be switched the mode of operation of intelligent television, opens the different processes of intelligent television under different working modes.As first intelligent television works under simulated television pattern, signal source process is in running status.Sometime, user wants to open the DTMB process under DTMB pattern.Now, user can click as the shortcut of home key exits signal source and apply, and exits signal source and applies corresponding signal source process, then go to open DTMB process.Yet the Android system of existing intelligent television to the design of application is, being applied in when shortcut that user clicks home key exits not is the exiting of application program of real meaning, but system has put it to system backstage, continues operation.Now, for intelligent television system, when user opens after DTMB process again, the signal source process in intelligent television and DTMB process can be simultaneously in running statuses.Therefore, signal source process and DTMB process just can be fought for intelligent television system resource mutually, and the stability that this has reduced intelligent television system undoubtedly, has affected systematic function.Course control method and the device of a kind of application program that the present invention proposes for above-mentioned shortcoming of the prior art just, fight for intelligent television system resource mutually to solve signal source process and DTMB process in prior art.The problem that causes the stability reduction of intelligent television system.
It should be noted that, in the present invention, intelligent television works in simulated television pattern lower time, and the application program starting under simulated television is corresponding start signal originating process.When intelligent television is in DTMB pattern lower time, start the i.e. corresponding DTMB of the unlatching process of DTMB application program.
Embodiment mono-
Refer to Fig. 1, a kind of flow chart that it shows the course control method of a kind of application program provided by the invention, comprising:
Step 101, obtains the control command of the unlatching DTMB application of user's input.
In the present embodiment, when user clicks the application program that starts DTMB, get the control command of the unlatching DTMB application of user's input.
In actual applications, intelligent television comprises a plurality of application modules, as video module, chat module, audio-frequency module, on-line module etc.Different application module correspondences belong to different application programs.When user chooses certain application start, i.e. this applies corresponding process corresponding unlatching.
Step 102, detects the current signal source process whether existing in running status of intelligent television.If existed, execution step 103, if there is no, execution step 105.
In the present embodiment, when user triggers unlatching DTMB application, first detect the current signal source process whether existing in running status of intelligent television.
In prior art, when user clicks as the shortcut of home key exits after signal source process, the design concept based on Android system to application, it can't directly stop signal source process, but signal source process is put into system backstage, continues to move.In the present invention, for fear of signal source process and DTMB process simultaneously in running status, when getting the control command of the unlatching DTMB application of user's input, detect the current signal source process whether existing in running status of intelligent television, if existed, the execution step 103 signal source processes that stop in running status.
Step 103, stops the signal source process in running status.
Step 104, opens DTMB and applies corresponding DTMB process.
In the present embodiment, the signal source process existing in running status detected, and after the signal source process in running status is stopped, DTMB applies corresponding DTMB process in unlatching.
Step 105, directly opens DTMB and applies corresponding DTMB process.
In the present embodiment, when the current not signal source process in running status of intelligent television being detected, directly open DTMB and apply corresponding DTMB process.
Apply technique scheme of the present invention, the present invention, after the control command of unlatching DTMB application of obtaining user's input, first detects the current signal source process whether existing in running status of intelligent television.When the signal source process of the current existence of intelligent television in running status being detected, stop after the signal source process in running status, apply corresponding DTMB process opening DTMB.Therefore, the present invention, when opening DTMB process, has closed signal source process, has avoided signal source process and DTMB process to operate in system simultaneously, thereby avoided signal source process and DTMB process mutually to fight for the problem of intelligent television system resource, guaranteed the stability of intelligent television system.
Embodiment bis-
On the basis of above-described embodiment, refer to Fig. 2, the another kind of flow chart that it shows the course control method of a kind of application program provided by the invention, comprising:
Step 201, obtains the control command of the unlatching DTMB application of user's input.
Step 202, sends broadcast.Wherein, in broadcast, at least comprise the character string with default sign; Wherein, the described character string with default sign is used for receiving after this character string in signal source process, stop signal originating process.
In the present embodiment, when system acquisition is after the control command of the unlatching DTMB application of user's input, system can send a broadcast automatically to the application layer of intelligent television.In this broadcast, at least comprise the character string with default sign.If current intelligent television exists the signal source process in running status, now the signal source process in running status can receive this broadcast, and reads the character string in this broadcast.Preferably, signal source process receives broadcast by radio receiver.
Signal source process reads after the character string with default sign, can stop according to the indication of character string the operation of self process, to realize the object of stop signal originating process.
If current intelligent television does not exist the signal source process in running status, this broadcast is just broadcasted in application layer as a common message.
Step 203, receives feedback message.Wherein, feedback message is for showing whether current intelligent television exists the signal source process in running status.If existed, execution step 204, if there is no, execution step 206.
In the present embodiment, if while there is the signal source process in running status in current intelligent television, when signal source process receives this broadcast and stops self process, also can be to feedback message of DTMB progress feedback.The information content that at least comprises the signal source process of current existence in running status in this feedback message.Now, DTMB process receives this feedback message, reads the information content in feedback message, knows that current intelligent television exists the signal source process in running status.Preferably, in feedback message, can also comprise the relevant information of signal source process, to help DTMB process, the degree of depth of signal source process be understood.
Step 204, stops the signal source process in running status.
In the present embodiment, when DTMB process receives the feedback message that signal source process sends, know when current intelligent television exists the signal source process in running status, signal source process has also read the character string with default sign that broadcast that system sends comprises, according to the character string with default sign, stops the signal source process in running status.
Step 205, opens DTMB and applies corresponding DTMB process.
Step 206, directly opens DTMB and applies corresponding DTMB process.
In the present embodiment, when guaranteeing that opening DTMB applies corresponding DTMB process, stopped the signal source process in running status, the present invention can be arranged on after the Preset Time after the feedback information that receives the transmission of signal source process, controls unlatching DTMB and applies corresponding DTMB process; Can also be arranged on signal source process out of service after, system sends one to be confirmed to stop message to DTMB process, DTMB process gets this confirmation and stops opening DTMB after message and apply corresponding DTMB process.
Embodiment tri-
On the basis of above-described embodiment, refer to Fig. 3, please show another flow chart of the course control method of a kind of application program provided by the invention, comprising:
Step 301, obtains the control command of the unlatching DTMB application of user's input.
Step 302, searches the current process stack in running status of intelligent television.Wherein, process stack is at least for storing signal source process and/or the DTMB process in running status.
In the present invention, intelligent television system comprises at least one process stack, and process stack is at least for storing signal source process and/or the DTMB process in running status.After signal source process initiation, just this signal source process is put into process stack, after DTMB process initiation, just this DTMB process is put into process stack.In addition, in system, after other application starts, system can also be applied other corresponding process and put into process stack.
Certainly, different according to the type of application, a plurality of process stacks also can be set, be respectively used to store process corresponding to different application.In certain process stack, put into after one or more processes, this process stack is just in running status.
In the present embodiment, after the control command of unlatching DTMB application of obtaining user's input, first system searches the process stack in running status.
Step 303, judges in process stack, whether there is signal source process.If existed, execution step 304, if there is no, execution step 306.
In the present embodiment, system searching, after all process stacks in running status, judges respectively in each process stack whether have signal source process.If had at least one process stack, there is signal source process, show that current intelligent television exists the signal source process in running status.If all there is not signal source process in all process stacks in running status, show that current intelligent television does not exist the signal source process in running status.
Step 304, stops the signal source process in running status.
In the present embodiment, in detecting process stack, there is signal source process, stop this signal source process.
Particularly, can consult Fig. 4, the flow chart that it shows a kind of stop signal originating process method provided by the invention, comprising:
Step 401, the identify label of extracting signal source process from process stack.
Wherein, identify label can be PID(Process Identifier, process command character).In actual application, after application program launching, system can be unique PID of course allocation corresponding to application program automatically, and PID is for distinguishing different processes.After process finishes to stop, system can be regained the PID of this process.When after other process initiations, system is being distributed to PID process corresponding to other programs in running status.Therefore, the present invention only need extract the identify label PID of signal source process, can find the signal source process in running status.By the processing of the identify label PID to signal source process, realize the control to signal source process.
Step 402, by the processing to identify label, stops the signal source process in running status.
In the present embodiment, system is extracted after the identify label PID of signal source process, carries out for example operation of kill-PID, regains the PID of signal source process, stops the signal source process in running status.
Step 305, opens DTMB and applies corresponding DTMB process.
Step 306, directly opens DTMB and applies corresponding DTMB process.
Embodiment tetra-
Based on the description of the course control method of a kind of application program provided by the invention above, the present invention also provides a kind of progress control unit of application program, be applied to intelligent television, refer to Fig. 5, a kind of structural representation that it shows the progress control unit of a kind of application program provided by the invention, comprising: acquisition module 100, detection module 200, stopping modular 300 and opening module 400.Wherein,
Acquisition module 100, for obtaining the control command of the unlatching DTMB application of user's input.
Detection module 200, for detection of the current signal source process whether existing in running status of intelligent television.
Stopping modular 300, when detecting the signal source process of the current existence of intelligent television in running status at detection module 200, stops the signal source process in running status.
Opening module 400, applies corresponding DTMB process for opening DTMB.
Apply technique scheme of the present invention, the present invention obtains at acquisition module 100 after the control command of unlatching DTMB application of user input, first by detection module 200, detects the current signal source process whether existing in running status of intelligent television.When detection module 200 detects the signal source process of the current existence of intelligent television in running status, stopping modular 300 stops after the signal source process in running status, and opening module 400 is applied corresponding DTMB process opening DTMB.Therefore, the present invention, when opening DTMB process, has closed signal source process, has avoided signal source process and DTMB process to operate in system simultaneously, thereby avoided signal source process and DTMB process mutually to fight for the problem of intelligent television system resource, guaranteed the stability of intelligent television system.
Embodiment five
On the basis of above-described embodiment, the present invention also provides a kind of structural representation of detection module in a kind of progress control unit of application program, refers to Fig. 6, comprising: send broadcast module 201 and receipt message module 202.Wherein,
Send broadcast module 201, for sending broadcast.Wherein, in broadcast, at least comprise the character string with default sign; Wherein, the described character string with default sign, for receiving after described character string in described signal source process, stops described signal source process.
Receipt message module 202, for receiving feedback message.Wherein, feedback message is for showing whether current intelligent television exists the signal source process in running status.
Embodiment six
On the basis of above-described embodiment, the present invention also provides the another kind of structural representation of detection module in a kind of progress control unit of application program, refers to Fig. 7, comprising: search module 203 and judge module 204.
Search module 203, for searching the current process stack in running status of intelligent television.Wherein, process stack is at least for storing signal source process and/or the DTMB process in running status.
Judge module 204, for judging whether process stack exists signal source process.
Embodiment seven
On the basis of above-described embodiment, the present invention also provides a kind of structural representation of stopping modular in a kind of progress control unit of application program, refers to Fig. 8, comprising: identify label extraction module 301 and stop submodule 302.Wherein,
Identify label extraction module 301, for extracting the identify label of signal source process from process stack.
Preferably, identify label can be PID(Process Identifier, process command character).
Stop submodule 302, for by the processing to identify label, stop the signal source process in running status.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and each embodiment stresses is the 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, relevant part is referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Above the course control method of a kind of application program provided by the present invention and device are described in detail, applied specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.