The application is that to be " 201010108108.4 ", the applying date be " on February 5th, 2010 ", invention and created name dividing an application for the patent application of " a kind of method of preview, device and mobile phone " to application number.
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 obtains 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, the method is mainly used in the mobile phone, and the embodiment of the invention is the description of carrying out take mobile phone as main body, and the method comprises the steps:
S101: receive the user for the selection signal of the background application of moving in the mobile phone." background application " of indication refers to just move 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 at the icon of background application specific sign, plays expression such as one
![Figure BDA00002474507100031](https://patentimages.storage.googleapis.com/76/39/48/638a59439e6bd8/BDA00002474507100031.png)
Behind the rest image that the user chooses this background application by 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 recording application at running background, recorded the main information of these background application in this mapping form, such as can with unique ID index value, these background application being made a distinction; Also can distinguish with diverse name; Also can distinguish with the combination of several characteristic values; It 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, by clicking or double-click to represent to choose this background application.
Because arbitrary button or touch event on the mobile phone can operate background application according to certain requirement, such as triggering corresponding event 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 has at mobile phone display screen 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 corresponding a plurality of just in the sign of the game of running background in this selection signal.
S102: according to the current image date of background application corresponding to described selection signal acquisition.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, therefore the background application that ARM can obtain and this selection signal is corresponding, then mobile phone can obtain the current image date of this background application.When in the present embodiment, " current image date " refers to that mobile phone receives user selection signal corresponding 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, the form of the preview image that mobile phone generates according to the current image date that obtains can have multiple, 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 corresponding 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, more to highlight this preview window.
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, so that 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 loaded down with trivial details operating procedure.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, the method comprises the steps:
S201: receive the user for the selection signal of 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 mapping form according to described selection signal, the unique identification of the background application that acquisition and described selection signal are corresponding.Such as can be according to unique index ID in mapping form, or unique name, or the mode of index D+ name, identify unique background application.
S203: obtain current image date with background application corresponding to described unique identification 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 namely 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 the index ID according to this selected background application, the interface shape of spread function is: int App_GetFrameAccordIndexID (int nIndex, IBitmap*pResult) wherein nIndex is the index ID of this background application, pResult is the 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 to be less than duration T.When keeping highlighted such as the 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 to 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 corresponding background application quantity of the selection signal among the step S201.When selecting the corresponding a plurality of background application of signal, such as on the icon of highlighted resting on " just at running game " time, according to just in the difference of running background game number, the number of the preview window that shows is also different, and generally speaking the number of the 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 game that mobile phone can move the backstage are presented in the current screen by the mode of the preview window (dotted line frame) successively.This DISPLAY ORDER can by successively arrange running time or according to first letter symbol sequentially arrange 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 separately showing the preview window, and game the preview window of running background (dotted line frame) is arranged with the order of setting.
For the rest image of the game of directly choosing a specific running background, such as game one, its display mode also can comprise above-mentioned two 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, so that 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 loaded down with trivial details operating procedure.The introducing of periodic refreshing function is so that 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 generally all represents by a rest image, behind the rest image that the user chooses this background application by 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, by clicking or double-click to represent to choose this background application.
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 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 has at mobile phone display screen 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.
The current image date that acquiring unit 520 is used for according to background application corresponding to described selection signal acquisition.
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, therefore the background application that acquiring unit 520 can obtain and this selection signal is corresponding, and then obtain 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 generates 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 corresponding 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, more to highlight this preview window.
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, so that 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 loaded down with trivial details operating procedure.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 embodiment corresponding to itself and Fig. 5 is similar.
Timing unit 640 is used for setting a time interval t, and this time interval t is less than the duration T of above-mentioned selection signal.
Acquiring unit 620 obtains the view data of corresponding background application for the duration T according to above-mentioned selection signal 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 namely 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 mapping form according to above-mentioned selection signal, obtains and should select the unique identification of background application corresponding to 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 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 namely 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 corresponding background application quantity of selection signal that receiving element 610 receives.When selecting the corresponding a plurality of background application of signal, such as on the icon of highlighted resting on " just at running game " time, according to just in the difference of running background game number, the number of the preview window that shows is also different, and generally speaking the number of the 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 the preview image that these a plurality of background application are corresponding at a plurality of the preview windows.The display mode of these a plurality of the preview windows can referring to the description to Fig. 3 and Fig. 4, just repeat 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, so that 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 loaded down with trivial details operating procedure.The introducing of periodic refreshing function is so that 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 such as arbitrary described a kind of pre-viewing device among Fig. 5 and the corresponding embodiment of Fig. 6.Because above-described embodiment 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 above-described embodiment method, can come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process such as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or store-memory body (Random Access Memory, RAM) etc. at random.
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; the protection range that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.