Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Be illustrated in figure 1 as the method flow schematic diagram of a kind of preview that the embodiment of the invention provides, this method is mainly used in the mobile phone, and the embodiment of the invention is to be the description that main body is carried out with the mobile phone, and this method comprises the steps:
S101: receive the selection signal of user for the background application of moving in the mobile phone." background application " of indication just is meant and moves in mobile phone in the present embodiment, but the various application that in the current display screen of mobile phone, do not show.Background application in the mobile phone generally all represents by a rest image, in order to distinguish background application and other not in the application of running background, can add specific sign on the icon of background application, plays expression such as one
Behind the rest image that the user chooses this background application by the button or the touch-screen of mobile phone, the processor of mobile phone (Advanced RISC Machines, ARM) can receive that one selects signal according to this button or touch event, have a mapping form in the internal memory of mobile phone and just be used for writing down application at running background, write down the main information of these background application in this mapping form, such as can these background application being made a distinction with unique ID index value; Also can distinguish with diverse name; Also can distinguish with the combination of several characteristic value; It all is unique so just can making each background application, can not produce the phenomenon of repetition.And above-mentioned selection signal can point to a certain background application in the above-mentioned mapping form.In addition, it can be that choice box is moved on this rest image that above-mentioned user chooses the process of the rest image of background application, thereby makes this rest image keep highlighted state; Also can be after choice box is moved to this rest image, to represent to choose this background application by clicking or double-clicking.
Because arbitrary button or touch event on the mobile phone can be operated background application according to certain requirement, such as triggering events corresponding by next specified button.Therefore above-mentioned selection signal can corresponding a kind of background application, also can corresponding multiple background application.When the multiple background application of correspondence, can represent all just in the application of running background with a static icon, also can represent that a certain class is just in the application of running background with a static icon.Such as the static icon that on mobile phone display screen, has and be called " just at running game ", after the user chooses this static icon, mobile phone can receive that one selects signal, has comprised with this static icon pairing a plurality of just in the sign of the recreation of running background in this selection signal.
S102: the current image date of obtaining corresponding background application according to described selection signal.After mobile phone is received selection signal among the step S101, because this selection signal can point to a certain background application in the above-mentioned mapping form, so ARM can obtain and the background application of this selection signal correspondence, and mobile phone can obtain the current image date of this background application then.In the present embodiment, " current image date " be meant correspondence when mobile phone receives user selection signal background application the view data that should show on the foreground.
S103: generate preview image and in the preview window, show described preview image according to described current image date.In the present embodiment, mobile phone can have multiple according to the form of the preview image that current image date generated that obtains, such as png, jpg, jpeg, bmp etc.
As one embodiment of the present of invention, the position of the preview window can be pre-defined by mobile phone, the size of this preview window can know that with the user ruuning situation of recognizing background application is advisable, such as, the preview window can appear at the top of the pairing rest image of this background application, also can cover rest image, it is to amplify from rest image that the user is felt.
As one embodiment of the present of invention, the preview window is the adjustable window of transparency, to highlight this preview window more.
The embodiment of the invention is by extracting the current image data frames of background application, and should current image data frame be converted into preview image and show, make the user can clearly grasp the ruuning situation of selected background application, and do not need this background application is switched to the foreground, reduced complex operating steps.In addition, also enrich the display effect of mobile phone interface, improved user's experience.
Be illustrated in figure 2 as the method flow schematic diagram of the another kind of preview that the embodiment of the invention provides, this method comprises the steps:
S201: receive the selection signal of user for the background application of moving in the mobile phone, this step and above-mentioned steps S101 are similar, no longer give unnecessary details at this.
S202: search the mapping form according to described selection signal, the unique identification of the background application of acquisition and described selection signal correspondence.Such as can be in the mapping form according to unique index ID, or unique name, or the mode of index D+ name, identify unique background application.
S203: obtain current image date with the background application of described unique identification correspondence according to described unique identification.
In specific implementation, can realize this step by calling a spread function, this spread function is compiled in advance, gives current image date that different value promptly can realize obtain with this unique identification corresponding background application to it according to unique identification when calling this spread function.Obtain current image date such as index ID according to this selected background application, the interface shape of spread function is: intApp GetFrameAccordIndexID (int nIndex, IBitmap*pResult) wherein nIndex is the index ID of this background application, pResult is a pointer of depositing current frame data, points to the view data in a certain region of memory.
As one embodiment of the present of invention, selection signal among the step S201 may be a signal that continues, it can continue for some time T, this moment, mobile phone can periodically come the invoke extensions function to obtain view data every a time interval t, thereby keep the ageing of background application preview, allow the user can recognize up-to-date background application state, it is pointed out that above-mentioned time interval t need be less than duration T.When keeping highlighted such as rest image when some background application always, be that choice box when resting on this rest image always, mobile phone can be set each pictorial data of periodically obtaining this background application in 20 seconds, and the retention time of the highlighted state of this rest image need be greater than 20 seconds certainly.
S204: generate preview image and in the preview window, show described preview image according to described current image date.
In the present embodiment, the quantity of the preview window can be decided according to the pairing background application quantity of the selection signal among the step S201.When selecting a plurality of background application of signal correspondence, such as on the icon of highlighted resting on " just at running game " time, according to just in the difference of running background recreation number, the number of the preview window that shows is also different, and generally speaking the number of number of this preview window and background application is to concern one to one.
In addition, as one embodiment of the present of invention, the display mode of the preview window can have following two kinds of situations:
Be illustrated in figure 3 as the display mode schematic diagram of a kind of the preview window of the embodiment of the invention, when the user chooses " just at running game " icon (showing with thick frame table), 3 recreation that mobile phone can move the backstage are presented in the current screen by the mode of the preview window (frame of broken lines) successively.This DISPLAY ORDER can by successively arrange running time or according to first letter symbol arrange in proper order etc.
Be illustrated in figure 4 as the display mode schematic diagram of another kind of the preview window of the embodiment of the invention, when the user chooses " just at running game " icon, mobile phone enters a screen that is used for showing the preview window separately, and recreation the preview window (frame of broken lines) of running background is arranged with the order of setting.
For the rest image of the recreation of directly choosing a specific running background, such as recreation one, its display mode also can comprise above-mentioned two kinds of situations, has just repeated no more at this.
The embodiment of the invention is by extracting the current image data frames of background application, and should current image data frame be converted into preview image and show, make the user can clearly grasp the ruuning situation of selected background application, and do not need this background application is switched to the foreground, reduced complex operating steps.The introducing of periodic refreshing function makes background application preview of the present invention can keep higher ageing, and in addition, the embodiment of the invention has also been enriched the display effect of mobile phone interface, has improved user's experience.
Be illustrated in figure 5 as the structural representation of a kind of pre-viewing device that the embodiment of the invention provides, this device comprises: receiving element 510, acquiring unit 520 and preview unit 530, wherein acquiring unit 520 links to each other with receiving element 510 and preview unit 530 respectively.
Receiving element 510 is used for receiving the selection signal of the background application that the user moving for mobile phone, background application in the mobile phone is generally all represented by a rest image, behind the rest image that the user chooses this background application by the button or the touch-screen of mobile phone, receiving element 510 can receive that one selects signal, and this selection signal can point to a certain background application in the mapping form in the internal memory.It can be that choice box is moved on this rest image that above-mentioned user chooses the mode of the rest image of background application, thereby makes this rest image keep highlighted state; Also can be after choice box is moved to this rest image, to represent to choose this background application by clicking or double-clicking.
Above-mentioned described be one to select the corresponding a kind of background application of signal, as one embodiment of the present of invention, one select signal also can be corresponding multiple background application.In this case, can represent all just in the application of running background, also can represent that a certain class is just in the application of running background with a static icon with a static icon.Such as the static icon that on mobile phone display screen, has and be called " just at running game ", after the user chooses this static icon, receiving element 510 can receive that one selects signal, and this selection signal can point to a plurality of background application in the mapping form in the internal memory.
Acquiring unit 520 is used for obtaining according to described selection signal the current image date of corresponding background application.
Acquiring unit 520 can be resolved the selection signal that receiving element 510 receives and be obtained corresponding background application, this is because this selection signal can point to a certain background application in the mapping form, so acquiring unit 520 can obtain and the background application of this selection signal correspondence, and then obtains the current image date of this background application.
Preview unit 530 is used for generating preview image and showing described preview image at the preview window according to described current image date.
In the present embodiment, the form of the preview image that preview unit 530 is generated can have multiple, such as png, jpg, jpeg, bmp etc.The position of this preview window also can be pre-defined by mobile phone, its size can know that with the user ruuning situation of recognizing background application is advisable, such as, the preview window can appear at the top of the pairing rest image of this background application, also can cover rest image, it is to amplify from rest image that the user is felt.
As one embodiment of the present of invention, the preview window is the adjustable window of transparency, to highlight this preview window more.
The embodiment of the invention is by extracting the current image data frames of background application, and should current image data frame be converted into preview image and show, make the user can clearly grasp the ruuning situation of selected background application, and do not need this background application is switched to the foreground, reduced complex operating steps.In addition, also enrich the display effect of mobile phone interface, improved user's experience.
Be illustrated in figure 6 as the structural representation of the another kind of pre-viewing device that the embodiment of the invention provides, this device comprises: receiving element 610, acquiring unit 620, preview unit 630 and timing unit 640, wherein acquiring unit 620 links to each other with receiving element 610, preview unit 630 and timing unit 640 respectively.
Receiving element 610 is used for receiving the selection signal of the background application that the user moving for mobile phone, and the effect of the receiving element 510 among the embodiment of itself and Fig. 5 correspondence is similar.
Timing unit 640 is used to set a time interval t, and this time interval t is less than the duration T of above-mentioned selection signal.
Acquiring unit 620 is used for the duration T according to above-mentioned selection signal, obtains the view data of corresponding background application every a time interval t.Thereby can guarantee the ageing of background application preview, allow the user can recognize up-to-date background application state.When keeping highlighted such as the rest image when some background application, when promptly choice box rested on this rest image always, timing unit 640 can be set each pictorial data of periodically obtaining this background application in 20 seconds always.
As one embodiment of the present of invention, acquiring unit 620 can also comprise identifier acquisition module 621 and image collection module 622.
Identifier acquisition module 621 is used for searching the mapping form according to above-mentioned selection signal, obtains and should select the unique identification of the background application of signal correspondence.
Image collection module 622 is used for obtaining and the current image date of the background application of this unique identification correspondence according to above-mentioned unique identification.Specifically, image collection module 622 can be finished this function by the invoke extensions function, this spread function is compiled in advance, and picture frame acquisition module 622 is given the current image date that different values promptly can realize obtaining the background application corresponding with this sign according to being identified at when calling this spread function to it.
The current image date that preview unit 630 is used for obtaining according to picture frame acquisition module 622 generates preview image and shows described preview image at the preview window.
In the present embodiment, the quantity of the preview window can be decided according to the pairing background application quantity of selection signal that receiving element 610 receives.When selecting a plurality of background application of signal correspondence, such as on the icon of highlighted resting on " just at running game " time, according to just in the difference of running background recreation number, the number of the preview window that shows is also different, and generally speaking the number of number of this preview window and background application is to concern one to one.
As one embodiment of the present of invention, if the corresponding a plurality of background application of above-mentioned selection signal, then preview unit 630 comprises: multiwindow previewing module 631, it is used for showing respectively at a plurality of the preview windows the preview image of these a plurality of background application correspondences.The display mode of these a plurality of the preview windows can just repeat no more at this referring to the description to Fig. 3 and Fig. 4.
The embodiment of the invention is by extracting the current image data frames of background application, and should current image data frame be converted into preview image and show, make the user can clearly grasp the ruuning situation of selected background application, and do not need this background application is switched to the foreground, reduced complex operating steps.The introducing of periodic refreshing function makes background application preview of the present invention can keep higher ageing, and in addition, the embodiment of the invention has also been enriched the display effect of mobile phone interface, has improved user's experience.
Be illustrated in figure 7 as the structural representation of a kind of mobile phone that the embodiment of the invention provides, this mobile phone 700 comprises pre-viewing device 710, and this pre-viewing device 710 can be as arbitrary described a kind of pre-viewing device among Fig. 5 and the corresponding embodiment of Fig. 6.Because the foregoing description has been done this pre-viewing device and has been appeared detailed introduction, just repeats no more at this.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, can instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.