CN103544021B - The screenshotss method and its device of a kind of mobile terminal screen content - Google Patents

The screenshotss method and its device of a kind of mobile terminal screen content Download PDF

Info

Publication number
CN103544021B
CN103544021B CN201310535860.0A CN201310535860A CN103544021B CN 103544021 B CN103544021 B CN 103544021B CN 201310535860 A CN201310535860 A CN 201310535860A CN 103544021 B CN103544021 B CN 103544021B
Authority
CN
China
Prior art keywords
mobile terminal
screenshotss
region
screen
full frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310535860.0A
Other languages
Chinese (zh)
Other versions
CN103544021A (en
Inventor
耿达维
朱萧木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Hammer Technology (beijing) Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hammer Technology (beijing) Ltd By Share Ltd filed Critical Hammer Technology (beijing) Ltd By Share Ltd
Priority to CN201310535860.0A priority Critical patent/CN103544021B/en
Publication of CN103544021A publication Critical patent/CN103544021A/en
Application granted granted Critical
Publication of CN103544021B publication Critical patent/CN103544021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of mobile terminal screen contents interception method.This method includes:By monitoring the DOWN events of mobile terminal specified button, when listen to event occur when, is occurred the moment be recorded as the very first time stab;By monitoring the UP events of mobile terminal specified button, when the event that listens to occurs, the second timestamp is recorded as at the time of generation;The difference that second timestamp is stabbed with the very first time is compared with preset time threshold values, if less than or more than the preset time threshold values, then carries out full frame screenshotss operation to the screen content of mobile terminal or region screenshotss are operated.Present invention also provides a kind of dynamic terminal screen contents interception device.The embodiment of the present application can provide the function of screen content interception for mobile terminal.

Description

The screenshotss method and its device of a kind of mobile terminal screen content
Technical field
The application is related to technical field of information processing, the screenshotss method of more particularly to a kind of mobile terminal screen content and its Corresponding device.
Background technology
With developing rapidly for mobile technology, mobile terminal, which has been not limited solely to meet people, to be communicated with each other, receives and dispatches short Believe these simple primary demands, its function gradually expands to various multimedia application.Such as, recorded using mobile terminal The various operations such as video recording, video playback, acquisition Internet news, reading electronic book, offer amusement game.In the work(to mobile terminal It can carry out during integrated improve, produce a kind of new functional requirement, i.e. the screenshotss function to mobile terminal screen content.Cut Screen technology can make people according to the interest needs of itself, by under the contents interception presented on mobile terminal screen, store To predetermined position.Such as, when mobile terminal user watches some Internet video online, to some picture in the video very It is interested, it is desirable to be intercepted and be saved in locally.Also such as, mobile terminal user searches out on some online shopping site The commodity having intention, but be not intended to buy at once, and wish the relevant information of the commodity being truncated to local preservation.It is this existing Real demand has expedited the emergence of the application of screenshotss technology on mobile terminals.But, screenshotss technology of the prior art is mainly used in non- Mobile terminal, such as, and QQ screenshotss, 263 screenshotss, the Printscreen button full screen screenshotss on computer keyboard, even if in the presence of Some are applied to the screenshotss technology of mobile terminal, its malfunction, technology imperfection.In a word, do not have on mobile terminals A kind of screen content to mobile terminal carries out the better method of screenshotss operation.
The content of the invention
In order to solve the above technical problems, the embodiment of the present application provide a kind of mobile terminal screen content screenshotss method and Its corresponding intrument, so that mobile terminal can carry out full screen and/or part using this method to the screen content of mobile terminal Formula screenshotss are operated, and meet real needs.
The screenshotss method for the mobile terminal screen content that the embodiment of the present application is provided, this method includes:
The DOWN events of mobile terminal specified button are monitored, when the DOWN events for listening to specified button described in mobile terminal During generation, very first time stamp is recorded as at the time of DOWN events are occurred;
The UP events of specified button described in mobile terminal are monitored, when the UP events for listening to specified button described in mobile terminal During generation, the second timestamp is recorded as at the time of UP events are occurred;
The difference that second timestamp is stabbed with the very first time is compared with preset time threshold values, if less than described default Time threshold values, then carry out full frame screenshotss operation to the screen content of mobile terminal or region screenshotss operated;If greater than described pre- If time threshold values, then region screenshotss are carried out to the screen content of mobile terminal or full frame screenshotss are operated, the full frame screenshotss operation Full screen printscreen is obtained for whole intercept operations that carry out to mobile terminal screen content, the region screenshotss are operated for moving The selected scope of dynamic terminal screen content carries out intercept operation and obtains region sectional drawing.
Preferably, the screen content to mobile terminal, which carries out full frame screenshotss operation, includes:
The actual size interface of mobile terminal screen is obtained, the actual size interface is that mobile terminal can be presented most Big physical screen;
Diminution processing is carried out to the actual size interface, the diminution comprising mobile terminal screen content after processing is complete Screen sectional drawing is defined as final full screen printscreen.
It is further preferred that the operating system that the mobile terminal is installed is Android system,
The actual size interface for obtaining mobile terminal screen is specially to call Android system Surface.screenshot functions obtain the bitmap at the actual size interface of mobile terminal screen;
It is described to actual size interface carry out diminution processing, the diminution comprising mobile terminal screen content after processing is complete Screen sectional drawing is specially to call bitmap described in the animatorset function pairs of Android system to carry out as final full screen printscreen Diminution is handled, and the view for loading the bitmap after diminution processing is added into the bitmap presented in current form, the forms for most Whole full screen printscreen.
It is further preferred that the screen content of mobile terminal is carried out full frame screenshotss operation by systemUI apply in the One serviced component is completed.
Preferably, the screen content to mobile terminal, which carries out the operation of region screenshotss, includes:
Receive the selected scope to mobile terminal screen regional area;
Draw the figure layer of the selected scope, the transparency and mobile terminal screen of the figure layer of the selected scope of the drafting The transparency in the region outside the upper selected scope is different;The corresponding screen content of figure layer of the selected scope is defined as Final region sectional drawing.
Preferably, the operating system that the mobile terminal is installed is Android system,
Described receive be specially to the selected scope of mobile terminal screen regional area:Receive to for demarcating selected scope Rectangle frame TOUCH events, call the change of scalegesturedetectoron function check rectangle frames, in rectangle frame not When mobile, call back function smartisanscalelistener functions are called to calculate the selected scope where rectangle frame;
The figure layer for drawing the selected scope is specially that the invalidate functions for calling view draw selected scope Figure layer.
It is further preferred that the screen content of mobile terminal is carried out region screenshotss operation by systemUI apply in the Two serviced components are completed.
Preferably, the difference the second timestamp stabbed with the very first time is compared with preset time threshold values, if less than Or more than the preset time threshold values, then being presented on mobile terminal screen, there is full frame screenshotss function to trigger focus and region Screenshotss function triggers the control strip of focus, is triggered according to region screenshotss function triggering focus or full frame screenshotss function on control strip The selection of focus, performs the step of being operated to the screen content progress region screenshotss of mobile terminal or full frame screenshotss.
It is further preferred that the mobile terminal specified button is an entity key or function key for mobile terminal, or The combination of two entity keys, two function keys or an entity key and One function key.
It is further preferred that the combination for being combined as power key and reset key of described two entity keys.
The embodiment of the present application also provides a kind of screen video recorder of mobile terminal screen content.The device includes:First monitors Unit, the first recording unit, the second monitoring unit, the second recording unit, timestamp comparation unit, full frame screenshotss unit or region Screenshotss unit, wherein:
First monitoring unit, the DOWN events for monitoring mobile terminal specified button;
First recording unit, will during for occurring in the DOWN events for listening to specified button described in mobile terminal DOWN events are recorded as the very first time stamp at the time of generation;
Second monitoring unit, the UP events for monitoring specified button described in mobile terminal;
Second recording unit, during for occurring in the UP events for listening to specified button described in mobile terminal, by UP Event is recorded as the second timestamp at the time of generation;
The timestamp comparation unit, difference and preset time threshold values for the second timestamp to be stabbed with the very first time enter Row compares, and if less than the preset time threshold values, then triggers full frame screenshotss unit or region screenshotss unit;If greater than described Preset time threshold values, then toggle area screenshotss unit or full frame screenshotss unit;
The full frame screenshotss unit, full frame screenshotss operation, described full frame section are carried out for the screen content to mobile terminal Screen operation is used to obtain full screen printscreen to whole intercept operations that carry out of mobile terminal screen content;
The region screenshotss unit, region screenshotss operation is carried out for the screen content to mobile terminal, and the region is cut The selected scope progress intercept operation that screen operation is used for mobile terminal screen content obtains region sectional drawing.
Preferably, the full frame screenshotss unit includes interface acquisition subelement and interface processing subelement, wherein:
The interface obtains subelement, the actual size interface for obtaining mobile terminal screen, actual size circle Face is the greatest physical screen that mobile terminal can be presented;
The interface processing subelement, for carrying out diminution processing to the actual size interface, by including after processing The diminution full screen printscreen of mobile terminal screen content is defined as final full screen printscreen.
Preferably, the region screenshotss unit includes range reception subelement and figure layer draws subelement, wherein:
The range reception subelement, for receiving the selected scope to mobile terminal screen regional area;
The figure layer draws subelement, the figure layer for drawing the selected scope, the figure of the selected scope of the drafting The transparency of layer is different from the transparency in the region outside the selected scope on mobile terminal screen;By the selected scope The corresponding screen content of figure layer is defined as final region sectional drawing.
Preferably, described device also includes control strip display unit, for the difference stabbed in the second timestamp and the very first time When value is less or greater than the preset time threshold values, being presented on mobile terminal screen, there is full frame screenshotss function to trigger focus The control strip of focus is triggered with region screenshotss function, so that region screenshotss unit or full frame screenshotss unit are according to area on control strip Domain screenshotss function triggering focus or full frame screenshotss function trigger the selection of focus, perform and the screen content of mobile terminal screen is entered The step of row region screenshotss or full frame screenshotss are operated.
The embodiment of the present application is by the monitoring of DOWN events and UP events to specified button and to Time To Event Record, determines the time tolerance of specified button, is then carried out according to the relation between the difference and preset time threshold values to moving The operation of full frame screenshotss or the operation of region screenshotss of dynamic terminal screen content.Compared with prior art, the embodiment of the present application is not only The screenshotss operation of screen content can be carried out on mobile terminals and obtains snapshot, and can be according to being set in advance in difference Screenshotss mode(Full screen screenshotss and region-type screenshotss)Between switch, make screenshotss operation can more meet user the need for, Jin Erti High Consumer's Experience.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of one embodiment of the screenshotss method of the mobile terminal screen content of the application;
Fig. 2 is the flow chart of another embodiment of the screenshotss method of the mobile terminal screen content of the application;
Fig. 3 is the structured flowchart of one embodiment of the screen video recorder of the mobile terminal screen content of the application.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, it is real below in conjunction with the application The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to the application protection Scope.
Referring to Fig. 1, one embodiment of the screenshotss method of the mobile terminal screen content provided the figure shows the application Flow.The flow includes:
Step S101:Monitor the DOWN events of mobile terminal specified button;
Mobile terminal has multiple buttons, and different key has different inherent functions(Mobile terminal is preset itself Elementary Function), such as power key, long-press power key is by turning-off mobile terminal.Also such as, HOME keys, pressing HOME keys will be from Other states of mobile terminal are turned back to basic status.The entity of mobile terminal physical physically is actually existed in except this kind of Outside button, mobile terminal especially intelligent mobile terminal is generally also provided with functionality buttons, and functionality buttons belong to virtual key, Do not have the smart mobile phone of physical keyboard such as, when needing to carry out word input, it will be presented empty on mobile terminal screen The button intended on keyboard, the dummy keyboard is virtual key., can be in advance from these in order to realize present invention purpose The object for specifying one or more buttons whether to occur as monitoring corresponding event in button.The button specified can only be one The combination of entity key or a virtual key or two entity keys or two virtual keys, can also be an entity key With the combination of a virtual key.Certainly, according to more key combinations can also be determined the need for actual conditions as here Specified button.However, generally preferable two buttons of the application are combined, such as the combination of power key and HOME keys.Why It is preferred that the combination of two buttons, its reason is:If single button is only selected as specified button, because single button is usual Corresponding function has been pre-defined, New function is set on the basis of a button, function has on the one hand been easily caused and obscures, inconvenience In user operation, on the other hand switched between the difference in functionality of same key implemented in technology it is also complex, Extra cost will be increased;If the button for selecting more than two is combined as specified button, although be more convenient for defining Different from the New function of preset function, but user is needed when being operated while press multiple buttons, extremely inconvenient.
Step S102:When the DOWN events for listening to specified button described in mobile terminal occur, DOWN events are occurred At the time of be recorded as the very first time stamp;
In the terminal, generally information exchange, the user couple of mobile terminal can be carried out using event-driven mechanism Some operation of mobile terminal will trigger an event, and the event triggers the corresponding program in mobile terminal again(Function or function Module)Corresponding operating is performed, the function of setting is completed.The present embodiment start to foregoing specified mobile terminal some(A bit)Press After key is monitored, when listening to specified button generation DOWN events, the time of origin to the DOWN events is recorded. DOWN events and follow-up UP events are associated with to the operation of button in itself, it is generally the case that to some button Operation can have it is a variety of, such as,(In short-term)Press, long-press(Persistently press), compartment is consecutively pressed(It is quick repeatedly to click on) Deng different modes of operation can correspond to different events, in the present embodiment, the generation of DOWN events, generally mean that this Specified button is pressed;The generation of UP events, generally means that the specified button is upspring.
Step S103:Monitor the UP events of specified button described in mobile terminal;
Step S104:When listen to specified button described in mobile terminal UP events occur when, by UP events occur when It is recorded as the second timestamp quarter;
Step S105:The difference that second timestamp is stabbed with the very first time is compared with preset time threshold values, if small In the preset time threshold values, then step S106 is performed;If greater than the preset time threshold values, then step S107 is performed;
, can be to time of the two events by the record of the two class Time To Events to specified button same as before Difference is calculated, and the situation of the time difference can reflect the operation carried out to the specified button.In the present embodiment, set One preset time threshold values, the difference of the threshold values and two timestamps is compared, the time tolerance and preset time valve Relation situation between value is determined for following corresponding different operating:If time tolerance is less than preset time valve Value, then triggering performs full frame screenshotss operation;If time tolerance is more than preset time threshold values, triggering performs region screenshotss behaviour Make.It should be noted that preset time threshold values here can be determined as the case may be, such as 5s, 4s etc..
Step S106:Carry out full frame screenshotss operation to the screen content of mobile terminal, the full frame screenshotss operate for pair Whole intercept operations that carry out of mobile terminal screen content obtain full screen printscreen, terminate flow;
Step S107:Carry out region screenshotss operation to the screen content of mobile terminal, the region screenshotss operate for pair The selected scope of mobile terminal screen content carries out intercept operation and obtains region sectional drawing, terminates flow.
According to the relation between time tolerance and preset time threshold values, if triggering enters step S106, carry out complete Shield intercept operation, carried out by the screen content to mobile terminal after full frame intercept operation, full screen printscreen can be obtained, the sectional drawing It is the whole of mobile terminal screen content, i.e. content in the range of mobile terminal physical display screen, this mode is referred to as full frame Formula is intercepted, and full screen interception can retain the state in current screen to greatest extent, provide the user complete current picture. If triggering enters step S107, region intercept operation is carried out, region interception is carried out by the screen content to mobile terminal After operation, region sectional drawing can be obtained, the sectional drawing is some part in mobile terminal physical display screen, this mode is referred to as Region-type is intercepted, the need for region-type interception can meet user to point of interest.The characteristics of above two mode is had nothing in common with each other:Entirely Although the interception of screen formula can obtain all the elements on physical display screen, it is this operate the picture that is generally truncated to compared with Greatly, on the one hand to for computer system, operational capability can not possibly the strong mobile terminal of Mrs bring pressure, the opposing party Face will take larger memory space when being stored;Although region-type interception disclosure satisfy that user to special interests content Need, reducing the computing pressure and storage pressure, still, the point of interest of user of mobile terminal often has diversity and migration Property, such as, when needing to obtain multiple points of interest on same screen picture, it will be unable to timely and accurately meet the requirement, or Person, by certain time, wants on video pictures where obtaining previous point of interest again after in the region of one point of interest of interception Another point of interest, at this moment because the frame where the picture has been finished, will be unable to be truncated to another point of interest, also not The need for user being met.
Monitoring of the present embodiment by DOWN events and UP events to specified button and the record to Time To Event, The time tolerance of specified button is determined, end panel is then moved according to the relation between the difference and preset time threshold values The operation of full frame screenshotss or the operation of region screenshotss of curtain content.Compared with prior art, the embodiment of the present application can not only moved Screenshotss operation is carried out in dynamic terminal to screen content and obtains snapshot, and different screenshotss modes can be arranged on according to advance (Full screen screenshotss and region screenshotss)Between switch, overcome what only full screen screenshotss or region-type screenshotss were individually present to lack Fall into, both seamless connections are got up so that the need for screenshotss operation more disclosure satisfy that user, so as to be conducive to improving user's body Test.
It should be noted that in the aforementioned embodiment, full screen is intercepted to the mode combined with region-type interception is: When time tolerance is less than preset time threshold values, full frame screenshotss operation is triggered;When time tolerance is more than preset time threshold values When, the operation of toggle area screenshotss, still, the magnitude relationship between this time tolerance and preset time threshold values is with being that triggering is complete Shield the corresponding relation between screenshotss operation or the operation of region screenshotss, however it is not limited to foregoing situation, in actual applications can be with It is determined as the case may be.Such as, can be when time tolerance be less than preset time threshold values, triggering carries out region screenshotss Operation, and when more than preset time threshold values, triggering carries out full frame intercept operation.It should also be noted that, as previously mentioned, for The selection of specified button can be the combination of a button or multiple buttons, if a button and button is Power key, in this case, it is necessary to which the operation that common long-press power key is triggered into shutdown is distinguished with the application:Long-press Power key is to monitor some event, when the monitored incident duration reaches time threshold as defined in system i.e. Trigger power-off operation, and the triggering of the screenshotss of the application be receive the Up events of power key when just go calculating timestamp it is poor Value, can interrupt the continuous of down events this when due to the generation of Up events, it is possible to evade long-press power key triggering pass Machine is operated.
In the aforementioned embodiment, the need for based on reality, previous embodiment can also be further improved to obtain more Good technique effect.Exemplarily provide two kinds of improved procedures below, those skilled in the art the application core content it On, other variant embodiments can also be derived, these embodiments for deforming out are within the protection domain of the application.
One of improved procedure:Processing is zoomed in and out to full screen interception.In the aforementioned embodiment, it is generally the case that pass through The full screen printscreen that full screen intercept operation is obtained is identical with the physical interface size of mobile terminal display screen curtain, and in such case Under, it is easily caused user and cannot be distinguished by the genuine interface of mobile terminal display screen curtain and the interface of interception, so as to makes it possible to Think that full frame intercept operation does not succeed, and repeat the operation, waste process resource.Therefore, referring to Fig. 2, the application is excellent The full frame intercept operation for the screen content that choosing realizes mobile terminal in the following manner, it constitutes another implementation of the application Example, the embodiment is different only in step S106 from previous embodiment, i.e., the S106 steps of above-described embodiment are entered one by the present embodiment Step optimization, other steps S101~S105 and S107 are identical with previous embodiment, so using identical reference numerals:
Step S208:The actual size interface of mobile terminal screen is obtained, the actual size interface is mobile terminal energy The greatest physical screen enough presented;
Step S209:Diminution processing is carried out to the actual size interface, by including in mobile terminal screen after processing The diminution full screen printscreen of appearance is defined as final full screen printscreen.
The genuine interface of mobile terminal display screen curtain can be distinguished with being truncated to full screen printscreen in this way, I.e. genuine interface is maximum, and full frame interception figure is within the maximum genuine interface, and user can substantially distinguish two interfaces accordingly, So as to being appreciated that whether full frame intercept operation operates success, it is to avoid repeat and multi-pass operation.
If what the mobile terminal of user was installed is Android system, said process is when implementing, it is possible to use Some functions in Android system(Or method)Realize in storehouse.Specifically, when triggering carries out full frame intercept operation, android System calls surface.screenshot functions(Functional form is:surface.screenshot(Int width, int height))The bitmap at the actual size interface of mobile terminal screen is obtained, the animatorset of Android system is then called Function(Functional form is:animatorset(Int width, int height))Diminution processing is carried out to the bitmap, will be filled It is final full screen printscreen that the view of bitmap after load diminution processing, which is added to the bitmap presented in current form, the forms,.
The two of improved procedure:Selected by the progress of user's localized region, using selected region as region screenshotss model Enclose.In the aforementioned embodiment, the region for how obtaining region screenshotss is not limited, in actual application, can be taken many The mode of kind is realized, such as, by the possible interest region of mobile terminal automatic identification user, then regard the interest region as region The scope of screenshotss.Generally, it is that most probable covers valuable content in a range of region in middle part of mobile terminal screen Region, the object that mobile terminal automatically can intercept in the region as region., can also be pre- at automatic identification interest region Some conditions are first set, the most probable interest region of user is determined by matching these conditions, condition here can be system Meter analyzes the result of the historical custom formation of user or for particular configuration set in advance.But, no matter move end How end intelligently obtains interest region according to these conditions, in actual application, is likely to occur inaccurate phenomenon. It is desirable for this purpose that mode be that suitable regional extent is determined by user oneself.The application preferably carries out area in the following manner Domain screenshotss operation:
Receive the selected scope to mobile terminal screen regional area;Draw the figure layer of the selected scope, the drafting Selected scope figure layer transparency it is different from the transparency in the region outside the selected scope on mobile terminal screen;Will The corresponding screen content of figure layer of the selected scope is defined as final region sectional drawing.
Pass through and this receive the selected of mobile terminal user's localized region so that the administrative division map being finally truncated to relative to For the interest region of user, it will not go wrong again.In addition, here by selection area and the different transparencies in non-selected region To make a distinction, be conducive to user visually clearly to determine the scope of selection area, also allow for user and enter on this basis The further adjustment of row regional extent.
If what the mobile terminal of user was installed is Android system, said process is when implementing, it is possible to use Some functions in Android system(Or method)Realize above-mentioned functions in storehouse.Specifically, Android system is received to for marking Surely the touch events of the rectangle frame of scope are selected, scalegesturedetectoron function check rectangle frames are then called Change, when rectangle frame is not moved, call call back function smartisanscalelistener functions calculate rectangle frame where Selected scope;Call view invalidate()Function draws the figure layer of selected scope.The function is to be based on Android system Smartisancutscreemshot classes(The Similar integral is in ImageView)By the onDraw for rewriteeing ImageView (Canvas)What method was realized.
Foregoing two kinds of improved procedures, be able to can also both be combined separately as the example example for realizing the present application purpose Realize the embodiment of present invention purpose together.When both are combined, if using android systems System, in order to ensure independent, the reduction system degree of coupling of service logic, the application is preferably for different in SystemUI applications Interception way is realized using different functional modules, such as, using two different service(Android standard group Part), one is used to realize region screenshotss operation, and one is used to realize full frame screenshotss operation.
It should be noted that previous embodiment and the embodiment of respective improved procedure formation are with presetting in timestamp After time threshold values magnitude relationship is determined, full frame intercept operation or region intercept operation are directly triggered.But, in some cases, The user of mobile terminal may be not intended to this corresponding only by the relatively i.e. more direct triggering progress to the specified button time Operation because user excessively may can not accurately hold to the time of the pressing operation of specified button, make a fault, lose When occurring by mistake, aforesaid way will be performed inevitably automatically, if the user desired that this error of correction, then need restarting The process of the application, it is extremely inconvenient.Therefore, the application further preferably using the magnitude relationship of time tolerance and preset time as Triggering triggers the condition of the control strip of focus and region screenshotss function triggering focus with full frame screenshotss function, i.e., poor in timestamp When value is less or greater than preset time threshold values, being presented on mobile terminal screen, there is full frame screenshotss function to trigger focus and area Domain screenshotss function triggers the control strip of focus, the corresponding function triggering focus on control strip is triggered by user, if touched Send out full frame and intercept function focus, then perform full frame intercept operation, if toggle area screenshotss function focus, toggle area interception Operation.This mode both make use of mobile terminal user to the button operation of specified button, also respect fully user itself Selection, is conducive to strengthening Consumer's Experience.Certainly, in actual application, mobile terminal user preferably foregoing may also implement The mode of example, because triggering control strip may bring operational delay on the one hand due to needing the selection of wait user, makes to cut Shield operating efficiency reduction;On the other hand due to needing the operation of progress user's selection, extra step is added, screenshotss are operated Complicate.Mobile terminal user can be according to the foregoing different implementation of own situation.
The above describes the screenshotss method of the mobile terminal screen content of the application in detail, correspondingly, and the application is also There is provided a kind of screen video recorder embodiment of mobile terminal screen content.Referring to Fig. 3, the figure shows the mobile terminal of the application The structured flowchart of screen video recorder.The device includes:First monitoring unit 301, the first recording unit 302, the second monitoring unit 303rd, the second recording unit 304, timestamp comparation unit 305, full frame screenshotss unit 306 or region screenshotss unit 307, wherein:
First monitoring unit 301, the DOWN events for monitoring mobile terminal specified button;
First recording unit 302, will during for occurring in the DOWN events for listening to specified button described in mobile terminal DOWN events are recorded as the very first time stamp at the time of generation;
Second monitoring unit 303, the UP events for monitoring specified button described in mobile terminal;
Second recording unit 304, during for occurring in the UP events for listening to specified button described in mobile terminal, by UP things Part is recorded as the second timestamp at the time of generation;
Timestamp comparation unit 305, difference and preset time threshold values for the second timestamp to be stabbed with the very first time enter Row compares, and if less than the preset time threshold values, then triggers full frame screenshotss unit or region screenshotss unit;If greater than described Preset time threshold values, then toggle area screenshotss unit or full frame screenshotss unit;
Full frame screenshotss unit 306, full frame screenshotss operation, the full frame screenshotss are carried out for the screen content to mobile terminal Operate and obtain full screen printscreen for whole intercept operations that carry out to mobile terminal screen content;
Region screenshotss unit 307, region screenshotss operation, the region screenshotss are carried out for the screen content to mobile terminal Operate and obtain region sectional drawing for the selected scope progress intercept operation to mobile terminal screen content.
The course of work of present apparatus embodiment is:First monitoring unit 301 monitors the DOWN things of mobile terminal specified button Part, when the first monitoring unit 301 occurs in the DOWN events for listening to specified button described in mobile terminal, by the first record Member 302 is recorded as the very first time stamp at the time of DOWN events are occurred;Second monitoring unit 303 is monitored and specified described in mobile terminal The UP events of button, when the second monitoring unit occurs in the UP events for listening to specified button described in mobile terminal, by second Recording unit 304 is recorded as the second timestamp at the time of UP events are occurred;Then, by timestamp comparation unit 305 by second The difference that timestamp is stabbed with the very first time is compared with preset time threshold values, if less than preset time threshold values, is then triggered complete Shield screenshotss unit 306 and full frame screenshotss operation, or the 307 pairs of shiftings of toggle area screenshotss unit are carried out to the screen content of mobile terminal The screen content of dynamic terminal carries out region screenshotss operation;If greater than preset time threshold values, then 306 pairs of toggle area screenshotss unit The selected scope of mobile terminal screen content carries out intercept operation and obtains region sectional drawing, or triggers full frame 307 pairs of screenshotss unit Whole intercept operations that carry out of mobile terminal screen content obtain full screen printscreen.
Present apparatus embodiment is by the monitoring of DOWN events and UP events to specified button and to Time To Event Record, determines the time tolerance of specified button, is then moved according to the relation between the difference and preset time threshold values The operation of full frame screenshotss or the operation of region screenshotss of terminal screen content.Compared with prior art, present apparatus embodiment not only may be used Snapshot is obtained to carry out screen shot operation on mobile terminals, and different screenshotss modes can be arranged on according to advance (Full screen screenshotss and region screenshotss)Between switch so that screenshotss operation can more meet user the need for, improve Consumer's Experience.
Full frame screenshotss unit 306 can have different inside groups based on different implementations in aforementioned means embodiment Into structure.Such as, full frame interception unit 306 can include:Interface obtains subelement 3061 and interface processing subelement 3062, its In:Interface obtains subelement 3061, the actual size interface for obtaining mobile terminal screen, and the actual size interface is shifting The greatest physical screen that dynamic terminal can be presented;Interface processing subelement 3062, for being contracted to the actual size interface Small processing, final full screen printscreen is defined as by the diminution full screen printscreen comprising mobile terminal screen content after processing.Equally Ground, region screenshotss unit 307 can include range reception subelement 3071 and figure layer draws subelement 3072, wherein:Scope connects Subelement 3071 is received, for receiving the selected scope to mobile terminal screen regional area;Figure layer draws subelement 3072, is used for Draw the choosing in the figure layer of the selected scope, the transparency and mobile terminal screen of the figure layer of the selected scope of the drafting Determine the transparency difference in the region outside scope;The corresponding screen content of figure layer of the selected scope is defined as final area Domain sectional drawing.
In addition, said apparatus can also include control strip display unit, for what is stabbed in the second timestamp and the very first time When difference is less or greater than the preset time threshold values, being presented on mobile terminal screen, there is full frame screenshotss function to trigger Jiao Point and region screenshotss function trigger the control strip of focus, so that region screenshotss unit or full frame screenshotss unit are according to on control strip Region screenshotss function triggering focus or full frame screenshotss function trigger the selection of focus, perform the screen content to mobile terminal screen The step of progress region screenshotss or full frame screenshotss are operated.
It should be noted that:For the simplicity of narration, above-described embodiment of this specification and the various modifications of embodiment What implementation was stressed is all identical similar between the difference with other embodiment or mode of texturing, each situation Part mutually referring to.For several improved procedures of device embodiment, because it is substantially similar to method reality Example is applied, so describing fairly simple, the relevent part can refer to the partial explaination of embodiments of method.Device described above The each unit of embodiment can be or may not be physically separate, can both be located at place, or can also It is distributed under multiple network environments.In actual application, part therein can be selected according to the actual needs or complete Portion's unit realizes the purpose of this embodiment scheme, those of ordinary skill in the art without creative efforts, It is appreciated that and implements.
Described above is only the embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of the application principle is not departed from, some improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (12)

1. a kind of screenshotss method of mobile terminal screen content, it is characterised in that this method includes:
The DOWN events of mobile terminal specified button are monitored, when the DOWN events for listening to specified button described in mobile terminal occur When, very first time stamp is recorded as at the time of DOWN events are occurred;
The UP events of specified button described in mobile terminal are monitored, when the UP events for listening to specified button described in mobile terminal occur When, it is recorded as the second timestamp at the time of UP events are occurred;
The difference that second timestamp is stabbed with the very first time is compared with preset time threshold values, if less than the preset time Threshold values, then carry out full frame screenshotss operation to the screen content of mobile terminal or region screenshotss operated;If greater than it is described default when Between threshold values, then region screenshotss are carried out to the screen content of mobile terminal or full frame screenshotss are operated, the full frame screenshotss, which are operated, to be used for Whole intercept operations that carry out to mobile terminal screen content obtain full screen printscreen, and the region screenshotss are operated for mobile whole The selected scope of end screen content carries out intercept operation and obtains region sectional drawing, wherein by user to mobile terminal screen regional area Selected, using selected region as region screenshotss scope;
The screen content to mobile terminal, which carries out full frame screenshotss operation, to be included:
The actual size interface of mobile terminal screen is obtained, the actual size interface is the maximum thing that mobile terminal can be presented Manage screen;
Diminution processing is carried out to the actual size interface, by full frame section of the diminution comprising mobile terminal screen content after processing Figure is defined as final full screen printscreen.
2. according to the method described in claim 1, it is characterised in that the operating system that the mobile terminal is installed is android System,
The actual size interface for obtaining mobile terminal screen is specially to call Android system Surface.screenshot functions obtain the bitmap at the actual size interface of mobile terminal screen;
It is described that diminution processing is carried out to actual size interface, by full frame section of the diminution comprising mobile terminal screen content after processing Figure as final full screen printscreen be specially call the animatorset function pairs of Android system described in bitmap reduced Processing, it is final that the view for loading the bitmap after diminution processing is added to the bitmap presented in current form, the forms Full screen printscreen.
3. method according to claim 2, it is characterised in that full frame screenshotss operation is carried out to the screen content of mobile terminal By systemUI apply in first service component complete.
4. according to the method described in claim 1, it is characterised in that the screen content to mobile terminal carries out region screenshotss Operation includes:
Receive the selected scope to mobile terminal screen regional area;
Draw institute in the figure layer of the selected scope, the transparency and mobile terminal screen of the figure layer of the selected scope of the drafting State the transparency difference in the region outside selected scope;The corresponding screen content of figure layer of the selected scope is defined as finally Region sectional drawing.
5. method according to claim 4, it is characterised in that the operating system that the mobile terminal is installed is android System,
Described receive be specially to the selected scope of mobile terminal screen regional area:Receive to the square for demarcating selected scope The TOUCH events of shape frame, call the change of scalegesturedetectoron function check rectangle frames, are not moved in rectangle frame When, call call back function smartisanscalelistener functions to calculate the selected scope where rectangle frame;
The figure layer for drawing the selected scope is specially the figure for calling view invalidate functions to draw selected scope Layer.
6. method according to claim 5, it is characterised in that region screenshotss operation is carried out to the screen content of mobile terminal By systemUI apply in second service component complete.
7. method as claimed in any of claims 1 to 6, it is characterised in that by the second timestamp and the very first time The difference of stamp is compared with preset time threshold values, if less than or more than the preset time threshold values, then in mobile terminal The control strip that focus and region screenshotss function triggering focus are triggered with full frame screenshotss function is presented on screen, according to control strip Upper region screenshotss function triggering focus or full frame screenshotss function trigger the selection of focus, perform and the screen content of mobile terminal is entered The step of row region screenshotss or full frame screenshotss are operated.
8. method according to claim 7, it is characterised in that the mobile terminal specified button is one of mobile terminal Entity key or function key, or two entity keys, two function keys or an entity key and One function key combination.
9. method according to claim 8, it is characterised in that described two entity keys are combined as power key and reset key Combination.
10. a kind of screen video recorder of mobile terminal screen content, it is characterised in that the device includes:First monitoring unit, first Recording unit, the second monitoring unit, the second recording unit, timestamp comparation unit, full frame screenshotss unit or region screenshotss unit, Wherein:
First monitoring unit, the DOWN events for monitoring mobile terminal specified button;
First recording unit, during for occurring in the DOWN events for listening to specified button described in mobile terminal, by DOWN Event is recorded as the very first time stamp at the time of generation;
Second monitoring unit, the UP events for monitoring specified button described in mobile terminal;
Second recording unit, during for occurring in the UP events for listening to specified button described in mobile terminal, by UP events The second timestamp is recorded as at the time of generation;
The timestamp comparation unit, difference and preset time threshold values for the second timestamp to be stabbed with the very first time are compared Compared with if less than the preset time threshold values, then triggering full frame screenshotss unit or region screenshotss unit;If greater than described default Time threshold values, then toggle area screenshotss unit or full frame screenshotss unit;
The full frame screenshotss unit, full frame screenshotss operation, the full frame screenshotss behaviour are carried out for the screen content to mobile terminal Act on and full screen printscreen is obtained to whole intercept operations that carry out of mobile terminal screen content;
The region screenshotss unit, region screenshotss operation, the region screenshotss behaviour are carried out for the screen content to mobile terminal Act on the selected scope progress intercept operation to mobile terminal screen content and obtain region sectional drawing, wherein by user to mobile whole End screen regional region is selected, using the region selected as region screenshotss scope;The full frame screenshotss unit includes boundary Face obtains subelement and interface processing subelement, wherein:
The interface acquisition subelement, the actual size interface for obtaining mobile terminal screen, the actual size interface is The greatest physical screen that mobile terminal can be presented;
The interface processing subelement, for carrying out diminution processing to the actual size interface, will include movement after processing The diminution full screen printscreen of terminal screen content is defined as final full screen printscreen.
11. device according to claim 10, it is characterised in that the region screenshotss unit includes range reception subelement Subelement is drawn with figure layer, wherein:
The range reception subelement, for receiving the selected scope to mobile terminal screen regional area;
The figure layer drafting subelement, the figure layer for drawing the selected scope, the figure layer of the selected scope of the drafting Transparency is different from the transparency in the region outside the selected scope on mobile terminal screen;By the figure layer of the selected scope Corresponding screen content is defined as final region sectional drawing.
12. the device according to any one in claim 10 to 11, it is characterised in that described device also includes control strip Display unit, during for the difference in the second timestamp and very first time stamp less or greater than the preset time threshold values, The control strip that focus and region screenshotss function triggering focus are triggered with full frame screenshotss function is presented on mobile terminal screen, so as to Region screenshotss unit or full frame screenshotss unit are touched according to region screenshotss function triggering focus or full frame screenshotss function on control strip The selection of focus is sent out, the step of being operated to the screen content progress region screenshotss of mobile terminal screen or full frame screenshotss is performed.
CN201310535860.0A 2013-11-01 2013-11-01 The screenshotss method and its device of a kind of mobile terminal screen content Active CN103544021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310535860.0A CN103544021B (en) 2013-11-01 2013-11-01 The screenshotss method and its device of a kind of mobile terminal screen content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310535860.0A CN103544021B (en) 2013-11-01 2013-11-01 The screenshotss method and its device of a kind of mobile terminal screen content

Publications (2)

Publication Number Publication Date
CN103544021A CN103544021A (en) 2014-01-29
CN103544021B true CN103544021B (en) 2017-10-24

Family

ID=49967502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310535860.0A Active CN103544021B (en) 2013-11-01 2013-11-01 The screenshotss method and its device of a kind of mobile terminal screen content

Country Status (1)

Country Link
CN (1) CN103544021B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007358A (en) * 2014-04-18 2015-10-28 中国科学院深圳先进技术研究院 Mobile terminal based method and apparatus for realizing amplifier function
CN104267931B (en) * 2014-06-16 2018-04-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105607792A (en) * 2014-11-21 2016-05-25 南京酷派软件技术有限公司 Layered screenshot method and device, and terminal
CN104461297A (en) * 2014-12-05 2015-03-25 上海斐讯数据通信技术有限公司 Mobile terminal with screen and screen image capturing method thereof
CN104516644A (en) * 2014-12-09 2015-04-15 广东欧珀移动通信有限公司 Method for free screen capture and terminal
CN106155510B (en) * 2015-04-07 2019-11-19 中兴通讯股份有限公司 Screenshotss method and device
CN105138255A (en) * 2015-06-24 2015-12-09 努比亚技术有限公司 Terminal and image information acquisition method
CN105092011B (en) * 2015-08-13 2017-04-19 深圳市深信信息技术有限公司 Weighing device calibration system and calibration method thereof
CN105260116B (en) * 2015-09-23 2018-08-14 网易(杭州)网络有限公司 A method of real-time interception image in gaming
CN105487680B (en) * 2015-11-24 2019-01-18 小米科技有限责任公司 Method, apparatus and terminal for terminal screenshotss
CN105898170A (en) * 2015-12-21 2016-08-24 乐视移动智能信息技术(北京)有限公司 Screen capturing method and device
CN105653281B (en) 2015-12-29 2019-09-17 青岛海信移动通信技术股份有限公司 A kind of method and apparatus carrying out screenshotss in a mobile device
CN106020644A (en) * 2016-05-13 2016-10-12 青岛海信移动通信技术股份有限公司 Picture capturing method and terminal
CN106341540A (en) * 2016-09-19 2017-01-18 北京小米移动软件有限公司 Image interception method and apparatus thereof
CN106502567A (en) * 2016-10-31 2017-03-15 维沃移动通信有限公司 A kind of screenshot method and mobile terminal
CN107291355A (en) * 2017-06-29 2017-10-24 珠海市魅族科技有限公司 Screenshotss control method and device, terminal device and storage medium
CN107734087A (en) * 2017-09-26 2018-02-23 努比亚技术有限公司 A kind of mobile terminal
CN109271983B (en) * 2018-09-27 2022-04-12 海信视像科技股份有限公司 Display method and display terminal for identifying object in screenshot
US11039196B2 (en) 2018-09-27 2021-06-15 Hisense Visual Technology Co., Ltd. Method and device for displaying a screen shot
CN110312042A (en) * 2019-07-16 2019-10-08 深圳沸石科技股份有限公司 The screenshotss method and MTK function machine of MTK function machine
CN111324270A (en) * 2020-02-24 2020-06-23 北京字节跳动网络技术有限公司 Image processing method, assembly, electronic device and storage medium
CN111381752B (en) * 2020-03-02 2022-03-29 安徽文香科技有限公司 Screen capturing method and device, storage medium and terminal
CN111399735B (en) * 2020-04-16 2022-04-12 Oppo广东移动通信有限公司 Screen capturing method, screen capturing device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779027A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Method and device for realizing screen capture based on instant communication software
CN103037102A (en) * 2012-12-21 2013-04-10 广东欧珀移动通信有限公司 Free screen shot method of touch screen cellphone and cellphone
CN103135914A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Screen capture method and screen capture device based on touch screen
CN103218135A (en) * 2013-04-24 2013-07-24 北京小米科技有限责任公司 Screen shot method and screen shot device on mobile terminal and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779027A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Method and device for realizing screen capture based on instant communication software
CN103135914A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Screen capture method and screen capture device based on touch screen
CN103037102A (en) * 2012-12-21 2013-04-10 广东欧珀移动通信有限公司 Free screen shot method of touch screen cellphone and cellphone
CN103218135A (en) * 2013-04-24 2013-07-24 北京小米科技有限责任公司 Screen shot method and screen shot device on mobile terminal and mobile terminal

Also Published As

Publication number Publication date
CN103544021A (en) 2014-01-29

Similar Documents

Publication Publication Date Title
CN103544021B (en) The screenshotss method and its device of a kind of mobile terminal screen content
CN101739204B (en) Method and device for selecting multiple objects in batches and touch screen terminal
CN104750450A (en) File sharing method in IM (Instant Messaging) and terminal
US20140002396A1 (en) Information processing method, information processing apparatus and electronic device
CN103024156A (en) Method, system and mobile terminal for realizing one-handed mobile terminal operation
CN102521020A (en) Application screen capture method and application screen capture device for mobile terminals
CN103440092A (en) Return key processing method, system and mobile terminal
CN104571877A (en) Display processing method and device for pages
CN101957717A (en) Display mode switching method, system and mobile terminal
CN107533432B (en) Pressure touch method and electronic equipment
CN105446755A (en) Method and device for rapidly loading Activity data for Android system
CN102436339A (en) Display control method and device for modal dialog boxes
US20160216797A1 (en) Method for capturing screen content of mobile terminal and device thereof
CN104407799A (en) Method and system for avoiding incorrect operation of touch screen in video playing process
CN103677989A (en) Device and method for obtaining multiple systems through linux kernel
CN102929425A (en) Method and device for controlling touch keys
CN104375685A (en) Mobile terminal screen edge touch optimizing method and device
CN105224335A (en) A kind of control method of Automatic clearance terminal device, system and terminal device
CN103105994A (en) Mobile terminal and return method of mobile terminal page
CN101551733A (en) Cooperating interface display method, system and mobile communication terminal
CN106325663A (en) Mobile terminal and screen capturing method thereof
CN101620494A (en) Dynamic display method for navigation menu
CN103135934A (en) Touch-screen mobile device and method and device for switching application program quickly
CN101950234B (en) Information display method and system of full-screen input application program
CN103019546B (en) A kind of slideshow method, system and apparatus for demonstrating

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100080, Haidian District, Suzhou Street, No. 55, 3 floor, 01-A041, Beijing

Applicant after: Hammer technology (Beijing) Limited by Share Ltd

Address before: 100080 Zhongguancun Haidian District street, No. 12, office of the layer 19 B1208

Applicant before: Hammer technology (Beijing) Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20190121

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after: BEIJING ZIJIE TIAODONG NETWORK TECHNOLOGY CO., LTD.

Address before: 100080 01-A041, 3rd floor, 55 Suzhou Street, Haidian District, Beijing

Patentee before: Hammer technology (Beijing) Limited by Share Ltd

TR01 Transfer of patent right