Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, 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 are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Be illustrated in figure 1 as the method flow sketch map 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 in mobile phone, moves 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 is generally all represented through a rest image; For distinguish background application with other not in the application of running background; Can on the icon of background application, add specific sign; Play expression
behind the rest image that the user chooses this background application through the button or the touch-screen of mobile phone such as one; 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, write down the main information of these background application in this mapping form in the application of running background; Such as using unique ID index value, these background application are made a distinction; 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 high bright state; Also can be after choice box is moved to this rest image, to represent to choose this background application through 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 said selection signal.After mobile phone is received the selection signal among the step S101; Because this selection signal can point to a certain background application in the above-mentioned mapping form; Therefore the background application that ARM can obtain and this selection signal is corresponding, mobile phone can obtain the current image date of this background application then.In the present embodiment, " current image date " be meant when mobile phone receives user selection signal corresponding background application institute should be on the foreground images displayed data.
S103: generate preview image and in the preview window, show said preview image according to said 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 defined by mobile phone in advance; 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, with outstanding more this preview window that shows.
The embodiment of the invention is through 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 sketch map 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 said selection signal, the unique identification of the background application that acquisition and said selection signal are corresponding.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 the current image date with the corresponding background application of said unique identification according to said unique identification.
In concrete the realization; Can realize this step through calling a spread function; This spread function is to compile in advance, when calling this spread function, gives current image date that different value promptly can realize obtain with this unique identification corresponding background application to it according to unique identification.Index ID such as according to this selected background application obtains current image date; 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 possibly be the signal that continues, and it can continue a period of time T, and this moment, mobile phone can periodically whenever come the invoke extensions function to obtain view data at a distance from a time interval t; Thereby keep the ageing of background application preview; Let 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.Keep high when bright 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 high bright state of this rest image need be greater than 20 seconds certainly.
S204: generate preview image and in the preview window, show said preview image according to said 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; When resting on the icon of " just at running game " such as height is bright; 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 situation:
Be illustrated in figure 3 as the display mode sketch map 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), mobile phone can be presented at 3 recreation that the backstage is being moved in the current screen through 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 sketch map of another kind of the preview window of the embodiment of the invention; When the user chooses " just at running game " icon; Mobile phone entering one is used for showing the screen of 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 situation, has just repeated no more at this.
The embodiment of the invention is through 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 through a rest image; Behind the rest image that the user chooses this background application through 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 high bright state; Also can be after choice box is moved to this rest image, to represent to choose this background application through 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 said 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 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 said preview image at the preview window according to said 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 defined by mobile phone in advance; 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, and 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, with outstanding more this preview window that shows.
The embodiment of the invention is through 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 it is similar with the effect of receiving element 510 among the corresponding embodiment of Fig. 5.
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, whenever obtains the view data of corresponding background application at a distance from a time interval t.Thereby can guarantee the ageing of background application preview, let the user can recognize up-to-date background application state.Keep high when bright 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 corresponding background application of signal.
Image collection module 622 is used for obtaining and the current image date of the background application that this unique identification is corresponding according to above-mentioned unique identification.Specifically; Image collection module 622 can be accomplished this function by the invoke extensions function; This spread function is to compile 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 said 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; When resting on the icon of " just at running game " such as height is bright; 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 the preview image that these a plurality of background application are corresponding respectively at a plurality of the preview windows.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 through 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 like 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 accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like 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; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely specific embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.