Display media method, the operating system of mobile device for mobile device
Technical field
The present invention relates to communication technical field, be particularly used for the method for the display media of mobile device and the operating system of mobile device.
Background technology
It is typically equipped with substantial amounts of application program in mobile device (such as mobile phone), these application programs during running it occur frequently that user can only the sight that is finished of the current operation of idle waiting application program, such as application program start, load mass data or carry out complex calculation time, user can only idle waiting application program be finished application program could be carried out next step operation.
User needs when above-mentioned sight occurs, in the case of mobile device can be run not affecting application program, and display media on the interface of application program, thus allow user be not required to idle waiting again, and prior art cannot meet this demand of user.
Summary of the invention
The embodiment of the present invention provides the method for display media, also provides for corresponding equipment and system.
A kind of method of the display media for mobile device, including: the operating system of mobile device obtains the program entity of described mobile device status information in running;Judge according to described status information whether the operation of described program entity is in the state needing user to wait;If, then display media on the interface of described program entity, and continue the status information obtaining described program entity in running, judge whether the operation of described program entity is according to the described status information continuing to obtain and need not the state that user waits, the most then stop at display media on the interface of described program entity.
A kind of method of the display media for mobile device, including: the operating system of mobile device obtains instruction message;Judge that whether described instruction message is for indicating described operating system display media on the interface of the program entity of described mobile device;If, then display media on the interface of described program entity, and continue to obtain instruction message, judge that whether the instruction message continuing to obtain is for indicating described operating system to stop at display media on the interface of described program entity, the most then stop at and on the interface of described program entity, show described media information.
A kind of operating system of mobile device, including: acquiring unit, it is used for the program entity obtaining described mobile device status information in running;First judging unit, for judging according to described status information whether the operation of described program entity is in the state needing user to wait, if, then trigger display unit, and continue to trigger acquiring unit, the status information continuing to obtain according to described acquiring unit judges whether the operation of described program entity is in and need not the state that user waits, the most then stop the operation performed by described display unit;Described display unit, for display media on the interface of described program entity.
A kind of operating system of mobile device, including: obtain message elements, be used for obtaining instruction message;Second judging unit, for judging that whether the described instruction message obtaining message elements acquisition is for indicating display media unit display media on the interface of the program entity of mobile device;If, then trigger described display media unit, and continue to trigger described acquisition message elements, judge that whether described acquisition message elements continues the instruction message of acquisition for indicating the operation stopped performed by described display media unit, the most then stop the operation performed by described display media unit;Described display media unit, for display media on the interface of the program entity of mobile device.
In the embodiment of the present invention, the operating system of mobile device can obtain the program entity of this mobile device status information in running, and whether it is in, according to the operation of this status information determining program entity, the state needing user to wait, realize when the operation of program entity is in the state needing user to wait, can on the interface of program entity display media, when operation in program entity is in the state that need not user's wait, stop at display media on the interface of program entity, the display process of whole media information does not interferes with the operation of program entity.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of an embodiment of method of display media in the embodiment of the present invention for mobile device;
Fig. 2 is the schematic flow sheet of another embodiment of method of display media in the embodiment of the present invention for mobile device;
Fig. 3 is the schematic flow sheet of another embodiment of method of display media in the embodiment of the present invention for mobile device
Fig. 4 is the logical structure schematic diagram of an embodiment of the operating system of mobile device in the embodiment of the present invention;
Fig. 5 is the logical structure schematic diagram of another embodiment of the operating system of mobile device in the embodiment of the present invention.
Detailed description of the invention
The embodiment of the present invention provides a kind of method of display media for mobile device, and the embodiment of the present invention also provides for the operating system of corresponding mobile device, is described in detail individually below.
Embodiment one, referring to Fig. 1, in the embodiment of the present invention, an embodiment for the method for the display media of mobile device includes:
101, the program entity of acquisition mobile device status information in running;
Mobile device generally all can be provided with a lot of program entity, such as play, ocr software, the application entity such as chat software, each program entity can switch over during running in different states, such as start, suspend and exit, wherein also can there is a kind of state in program entity during running, when program entity operation in a state in which time, the user of mobile device needs this state waiting program entity to terminate, next step operation could be performed, such as, when program entity is in startup, when loading mass data or carry out complex calculation state, user needs to wait this state of end of run of program entity, next step operation could be performed.In this article, by this state residing for the operation of program entity, referred to as need the state that user waits, otherwise, by other states residing for the operation of program entity, referred to as need not the state that user waits.
The operating system of mobile device can obtain program entity status information in running.
102, whether it is in, according to the operation of the status information determining program entity of the program entity obtained, the state needing user to wait, if it is not, then perform step 103, the most then performs step 104;
Operating system can obtain program entity status information in running in a step 101, and judges the status information obtained:
If knowing that program entity is according to the status information operating system obtained to need not the state that user waits, illustrate that now user need not display media on the interface of program entity, then perform step 103;
If knowing that program entity is in the state needing user to wait according to the status information operating system obtained, illustrate that now user needs display media on the interface of program entity, then perform step 104.
Herein, media information can be advertisement or video etc..
103, the interface state of program entity is maintained;
104, display media on the interface of program entity, and continue to obtain program entity status information in running;
When according to the status information that step 101 obtains, operating system knows that program entity is in the state needing user to wait, operating system can on the interface of program entity display media.
During display media, operating system is also continuing to obtain program entity status information in running, then performs step 105.
105, whether it is according to the operation of status information determining program entity of the program entity obtained and need not the state that user waits, if it is not, then perform step 106, the most then perform step 107;
Whether the operation of the status information determining program entity of the program entity that operating system obtains according to step 104 is in need not the state that user waits,
If it is not, explanation user need for wait time on the interface of program entity display media, then perform step 106;
If so, illustrating that now user need not display media on the interface of program entity, user needs again to be concerned about the interface of program entity, then perform step 107.
106, display media on the interface of program entity is continued;
107, display media on the interface of program entity is stopped at.
In the present embodiment, the operating system of mobile device can obtain the program entity of this mobile device status information in running, and whether it is in, according to the operation of this status information determining program entity, the state needing user to wait, realize when the operation of program entity is in the state needing user to wait, can on the interface of program entity display media, when operation in program entity is in the state that need not user's wait, stop at display media on the interface of program entity, the display process of whole media information does not interferes with the operation of program entity.
Embodiment two, referring to Fig. 2, in inventive embodiments, another embodiment for the method for the display media of mobile device includes:
201, program entity status information in running is obtained;
In the present embodiment, operating system can regularly monitor the situation of calling of local standard control to obtain program entity status information in running.
Operating system can also obtain program entity status information in running by some specific operation behaviors (such as display of network operation, specific interface element etc.) that timing monitoring is local.
Optionally, the status information of acquisition can be saved in the way of list by operating system, whenever a cycle (such as, from display media to terminate display media be a cycle) terminate after, operating system will by list status information delete.
202, whether it is in, according to the operation of the status information determining program entity of the program entity obtained, the state needing user to wait, if it is not, then perform step 203, the most then performs step 204;
Operating system can be according to the status information of the program entity obtained by monitoring the calling situation of local standard control, it is judged that whether the operation of program entity is in the state needing user to wait, such as:
Local standard control is the loading frame on the interface of program entity, it will be understood by those skilled in the art that, operating system is called loading frame and is i.e. meaned that the operation of now program entity is in the state of loading data, in other words, the most now operation of program entity is in the state needing user to wait, operating system can be according to the status information of the program entity obtained when loading frame and being called, know that the operation of program entity is in the state needing user to wait, i.e. user needs display media on the interface of program entity, then perform step 204.
203, the interface state of program entity is maintained;
204, media information is obtained;
Operating system is knowing that needs are on the interface of program entity after display media, it is possible to from webserver downloads of media information, then perform step 205.
Optionally, operating system sends the request message of request downloads of media information to the webserver, then receives the media information that the webserver sends, thus obtains media information.
It should be noted that this step can also perform before step 201, or after step 201, perform before step 202.As long as this step performed before operating system display media in a word.
Obviously, media information can also preset in a mobile device, as long as operating system reading media information from mobile device.
205~208, step 205~207 can refer to step 104~107.Wherein, operating system is display media on the interface of program entity, can be specifically the operating system display window that covers a media information on the interface of program entity, display media wherein.Optionally, the operating system of mobile device can be to use floating layer mode display media on the interface of program entity.
In the present embodiment, operating system can obtain the state of the operation of program entity by the situation of calling of monitoring local standard control, thus realize when the operation of program entity is in the state needing user to wait, can on the interface of program entity display media, when operation in program entity is in the state that need not user's wait, stopping at display media on the interface of program entity, the display process of whole media information does not interferes with the operation of program entity.
Embodiment three, referring to Fig. 3, in inventive embodiments, another embodiment for the method for the display media of mobile device includes:
301, the media information that the webserver sends is obtained;
In the present embodiment, operating system timing detects whether to exist and is connected with the network of the webserver, if, then send the request message of request downloads of media information to the webserver, then obtain the advertisement that the webserver sends, it should be noted that, if be connected with the network of the webserver and there is various selectable mode simultaneously,, if there is not the internetwork connection mode of WIFI, then prioritizing selection 3G in operating system prioritizing selection WIFI.
During in order to prevent operating system from needing display media, operating system does not also get media information from the webserver, can first then operating system is again having network to be connected with the webserver when in a mobile device by preset for media information, update media information.
302, instruction message is obtained, it is judged that instruction message, whether for indicating operating system display media on the interface of the program entity of mobile device, if it is not, then perform step 303, the most then performs step 304;
In the present embodiment, operating system can obtain instruction message, and then operating system judges that whether this instruction message is for indicating operating system display media on the interface of the program entity of mobile device.Optionally, operating system can by the instruction message sent according to program entity judge this instruction message whether for indicating operating system display media on the interface of the program entity of mobile device, if it is not, then perform step 303, the most then perform step 304.Particularly as follows:
1, the operation in program entity is in the information code needing the code position of user's waiting state to implant for sending instruction message, the such as code position of loading data in program entity, implantation information code, or in program entity, carry out the code position of complex calculation, implant information code.Thus realize when the operation of program entity be in need user's waiting state time, program entity sends instruction message according to embedded information code to operating system, and in instruction message, carry instruction operating system information of display media on the interface of the program entity of mobile device, as long as operating system gets the information entrained by instruction message that program entity sends, it is carried out step 304.
Or,
2, the operation in program entity is in the code needing the code position of user's waiting state to implant for sending instruction message, the such as code position of loading data in program entity, code implant, or in program entity, carry out the code position of complex calculation, code implant.Thus realize when the operation of program entity be in need user's waiting state time, program entity sends instruction message to operating system according to embedded code in the way of broadcast, and carries instruction operating system information of display media on the interface of the program entity of mobile device in instruction message.As long as operating system timing receipt broadcast, get the information entrained by broadcast, be carried out step 304.
303, the interface state of program entity is maintained;
304, display media on the interface of program entity, and continue to obtain instruction message;
Operating system is display media on the interface of program entity, can be specifically the operating system display window that covers a media information on the interface of program entity, display media wherein.Optionally, the operating system of mobile device can be to use floating layer mode display media on the interface of program entity.
Operating system, during display media, also may proceed to obtain instruction message, then performs step 305.
305, judge that the instruction message continuing to obtain, whether for indicating operating system to stop display media on the interface of the program entity of mobile device, if it is not, then perform step 306, the most then performs step 307;
This step is referred to step 302.By the instruction message sent according to program entity, operating system can judge that whether this instruction message is for indicating operating system to stop display media on the interface of the program entity of mobile device, if not, then perform step 306, the most then perform step 307.Particularly as follows:
1, the operation in program entity is in and need not the code position implantation of user's waiting state for sending the information code of instruction message, in program entity, such as stop the code position of loading data, implant information code, or in program entity, stop the code position of complex calculation, implant information code.Thus realize when the operation of program entity be in need not user's waiting state time, program entity sends instruction message according to embedded information code to operating system, and in instruction message, carry instruction operating system on the interface of the program entity of mobile device, stop the information of display media, as long as operating system gets the information entrained by instruction message that program entity sends, it is carried out step 307.
Or,
2, the operation in program entity is in and need not the code position implantation of user's waiting state for sending the code of instruction message, in program entity, such as stop the code position of loading data, code implant, or in program entity, stop carrying out the code position of complex calculation, code implant.Thus realize when the operation of program entity be in need not user's waiting state time, program entity sends instruction message to operating system according to embedded code in the way of broadcast, and carries, in instruction message, the information indicating operating system to stop display media on the interface of the program entity of mobile device.As long as operating system timing receipt broadcast, get the information entrained by broadcast, be carried out step 307.
306, display media on the interface of program entity is continued;
307, display media on the interface of program entity is stopped at.
In the present embodiment, operating system can obtain instruction message, judge to indicate message whether for indicating operating system display media on the interface of the program entity of mobile device, thus realize when the operation of program entity is in the state needing user to wait, can on the interface of program entity display media, operating system can continue to obtain instruction message while display media, judge to continue whether to obtain instruction message for indicating operating system to stop display media on the interface of the program entity of mobile device, thus realize when the operation of program entity is in the state that need not user's wait, stop at display media on the interface of program entity.
Embodiment four, referring to Fig. 4, in the embodiment of the present invention, an embodiment of the operating system of mobile device includes:
Acquiring unit 401, is used for the program entity obtaining mobile device status information in running;Further, acquiring unit 401 is additionally operable to obtain program entity status information in running by the situation of calling of monitoring local standard control.
First judging unit 402, for judging according to status information whether the operation of described program entity is in the state needing user to wait, if, then trigger display unit 403, and continue to trigger acquiring unit 401, whether it is in, according to the operation of the status information determining program entity of acquiring unit 401 continuation acquisition, the state that user waits that need not, the most then stops the operation performed by display unit 403;
Wherein, display unit 403, for display media on the interface of program entity, further, display unit 403 is additionally operable on the interface of program entity use floating layer mode display media.
Further, operating system also includes: receive media information unit 404, for before display media, sending the request message of request downloads of media information to the webserver at display unit 403 on the interface of program entity;Receive the media information that the webserver sends.
Embodiment five, referring to Fig. 5, in the embodiment of the present invention, another embodiment of the operating system of mobile device includes:
Obtain message elements 501, be used for obtaining instruction message;Further, obtain message elements 501 to be additionally operable to obtain the instruction message that program entity sends according to embedded information code, or further, obtain message elements 501 to be additionally operable to obtain the instruction message that program entity sends in the way of broadcast according to embedded code.
Second judging unit 502, for judging that whether the instruction message obtaining message elements 501 acquisition is for indicating display media unit 503 display media on the interface of the program entity of mobile device;If, then trigger display media unit 503, and continue to trigger and obtain message elements 501, judge that whether obtain message elements 501 continues the instruction message of acquisition for indicating the operation stopped performed by display media unit 503, the most then stop the operation performed by display media unit 503;
Wherein, display media unit 503, for display media on the interface of the program entity of mobile device, optionally, display media unit 503 is additionally operable on the interface of program entity use floating layer mode display media.
Further, operating system also includes: obtain information unit 504, for before obtaining the step of message elements 501 acquisition instruction message, whether detection network connects is WIFI, if, then sent the request message of request downloads of media information by WIFI to the webserver, then receive, by WIFI, the media information that the webserver sends.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by program and completes to instruct relevant hardware, this program can be stored in a computer-readable recording medium, and storage medium may include that ROM, RAM, disk or CD etc..
The method of the display media for mobile device provided the embodiment of the present invention above and the operating system of mobile device are described in detail, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, the most all will change, in sum, this specification content should not be construed as limitation of the present invention.