Movatterモバイル変換


[0]ホーム

URL:


CN107197088A - Screenshot method and device based on Android mobile device - Google Patents

Screenshot method and device based on Android mobile device
Download PDF

Info

Publication number
CN107197088A
CN107197088ACN201710342765.7ACN201710342765ACN107197088ACN 107197088 ACN107197088 ACN 107197088ACN 201710342765 ACN201710342765 ACN 201710342765ACN 107197088 ACN107197088 ACN 107197088A
Authority
CN
China
Prior art keywords
sectional drawing
shot operation
mobile device
android
android mobile
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.)
Granted
Application number
CN201710342765.7A
Other languages
Chinese (zh)
Other versions
CN107197088B (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co 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 Netease Hangzhou Network Co LtdfiledCriticalNetease Hangzhou Network Co Ltd
Priority to CN201710342765.7ApriorityCriticalpatent/CN107197088B/en
Publication of CN107197088ApublicationCriticalpatent/CN107197088A/en
Application grantedgrantedCritical
Publication of CN107197088BpublicationCriticalpatent/CN107197088B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The disclosure provides a kind of screenshot method based on Android mobile device, device and computer-readable recording medium.Screenshot method based on Android mobile device includes:The socket interfaces of Android mobile device are called to monitor the instruction of the shot operation based on Android mobile device client;The response instruction obtains the system version of the Android mobile device, and the corresponding shot operation of the system version is performed according to different system versions.The screenshot method based on Android mobile device that the disclosure is provided can improve the efficiency of mobile phone screen sectional drawing.

Description

Screenshot method and device based on Android mobile device
Technical field
This disclosure relates to field of computer technology, in particular to a kind of screenshot method based on Android mobile device,Device and computer-readable recording medium.
Background technology
With the development of information technology, smart mobile phone has turned into the instrument that people's life is commonly used.User is using handDuring machine, generally require to carry out sectional drawing to picture interested in mobile phone screen.
For being largely provided with the smart mobile phone of android system, the primary sectional drawing function that system is provided is usualNeed to realize using the physical button of mobile phone, volume key and power key are pressed simultaneously if desired for user.Although different mobile phone vendorsThe mobile phone sectional drawing shortcut of business has difference, but is generally required for user while pressing two keys, and this sectional drawing mode needs to useFamily bimanualness, and have certain delay.Therefore, it is high or need hand or hands persistently to be grasped for requirement of real-timeThe scene of work, carrying out sectional drawing to screen using the primary physical button of mobile phone just becomes very inconvenient.
Other existing mobile phone sectional drawing modes are also including the use of the sectional drawing function being implanted into application program of mobile phone.With mobile phone QQExemplified by, user, into interface is set, is setting interface to select miscellaneous function, is clicking on sectional drawing function firstly the need of mobile phone QQ is logged inThe switch on right side opens sectional drawing function, and mobile phone is rocked after unlatching can just realize shot operation.But if this mode applicationIn QQ with outer boundary, then usually requiring acquisition Root authority can just use, and greatly reduce the application model of this sectional drawing modeEnclose.
Accordingly, it would be desirable to which a kind of use scope is wide, limits less and can provide the user the mobile device of one-handed performance functionScreenshot method.
It should be noted that information is only used for strengthening the reason of background of this disclosure disclosed in above-mentioned background sectionSolution, therefore can include not constituting the information to prior art known to persons of ordinary skill in the art.
The content of the invention
The purpose of the disclosure is to provide a kind of screenshot method based on Android mobile device, dress applied to smart mobile phonePut and computer-readable recording medium, the base for any mobile phone screen picture of real-time interception in the environment of without Root authorityIn the screenshot method and device of Android mobile device.
According to an aspect of this disclosure there is provided a kind of screenshot method based on Android mobile device, including:
The socket interfaces of Android mobile device are called to monitor the finger of the shot operation based on Android mobile device clientOrder;
The response instruction obtains the system version of the Android mobile device, according to being performed different system versionsThe corresponding shot operation of system version.
In a kind of exemplary embodiment of the disclosure, the system version for obtaining the Android mobile device, according toDifferent system versions, which performs the corresponding shot operation of the system version, to be included:
The system version of the Android mobile device is obtained, judges whether the system version is more than Android5.0;
If so, calling Android SDK interfaces to perform the shot operation;
If it is not, obtaining the parameter of the shot operation, the socket interfaces are called to perform the shot operation.
In a kind of exemplary embodiment of the disclosure, if the system version is less than Android 5.0, perform describedShot operation is instructed by minicap or screencap sectional drawings and realized.
In a kind of exemplary embodiment of the disclosure, the parameter of the shot operation includes following at least one:
Width, height, direction of rotation, the store path of mobile terminal screen.
In a kind of exemplary embodiment of the disclosure, in addition to:
Detect whether the store path has generated sectional drawing picture;
If so, completing shot operation;
If it is not, calling the socket interfaces to perform the shot operation again.
In a kind of exemplary embodiment of the disclosure, methods described also includes:
The shot operation is performed with prefixed time interval.
In a kind of exemplary embodiment of the disclosure, in addition to:The instruction of the shot operation is obtained by suspended window.
According to an aspect of this disclosure there is provided a kind of sectional drawing device based on Android mobile device, including:
Module is monitored in sectional drawing instruction, and the socket interfaces for calling Android mobile device, which are monitored, is based on Android mobile deviceThe instruction of the shot operation of client;
Sectional drawing instructs performing module, and the system version of the Android mobile device is obtained for responding the instruction, according toDifferent system versions performs the corresponding shot operation of the system version.
In a kind of exemplary embodiment of the disclosure, the sectional drawing instruction performing module includes:
Whether version judging unit, the system version for obtaining the Android mobile device judges the system versionMore than Android5.0;
If so, calling Android SDK interfaces to perform the shot operation;
If it is not, obtaining the parameter of the shot operation, the socket interfaces are called to perform the shot operation.
In a kind of exemplary embodiment of the disclosure, the parameter of the shot operation includes following at least one:
Width, height, direction of rotation, the store path of mobile terminal screen.
In a kind of exemplary embodiment of the disclosure, in addition to:
Sectional drawing inspection unit, for detecting whether the store path has generated sectional drawing picture;
If so, completing shot operation;
If it is not, calling the socket interfaces to perform the shot operation again.
In a kind of exemplary embodiment of the disclosure, described device also includes:
Be delayed continuous sectional drawing unit, for performing the shot operation with prefixed time interval.
In a kind of exemplary embodiment of the disclosure, in addition to:
Suspension window unit, the instruction for obtaining the shot operation by suspended window.
According to an aspect of this disclosure there is provided a kind of sectional drawing device based on Android mobile device, including:
Memory;And
The processor of memory belonging to being coupled to, the processor is configured as based on the finger being stored in the memoryOrder, performs the screenshot method as described in above-mentioned any one.
According to an aspect of this disclosure there is provided a kind of computer-readable recording medium, program is stored thereon with, the programThe screenshot method based on Android mobile device as described in above-mentioned any one is realized when being executed by processor.
The screenshot method based on Android mobile device that the disclosure is provided is connect by using socket server program modulesReceive and perform shot operation, and different shot operations are performed according to different Android system versions, user is obtained handMachine special access right can carry out sectional drawing to all pictures of mobile phone screen so that the use scope of this screenshot method is compared with prior artIt is more extensive.In addition, by responding touch control operation of the user to suspended window, providing the user sectional drawing service immediately continuous with delaySectional drawing is serviced, and overcoming existing mobile phone screen screenshot method can not the singlehanded defect completed.By providing the continuous sectional drawing work(that is delayedCan, user is used the continuous sectional drawing of automatic time delay in the scene of manual sectional drawing needing both hands ongoing operation to be not easy to, dropThe cumbersome degree of low user's operation, improves mobile phone operation efficiency.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, notThe disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosureExample, and be used to together with specification to explain the principle of the disclosure.It should be evident that drawings in the following description are only the disclosureSome embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basisThese accompanying drawings obtain other accompanying drawings.
Fig. 1 schematically shows the flow of the screenshot method based on Android mobile device in one exemplary embodiment of the disclosureFigure.
Fig. 2 is schematically shown in one exemplary embodiment of the disclosure in the screenshot method based on Android mobile device immediatelyThe flow chart of sectional drawing.
Fig. 3 schematically shows in one exemplary embodiment of the disclosure and is delayed in the screenshot method based on Android mobile deviceThe flow chart of continuous sectional drawing.
Fig. 4 schematically shows a kind of sectional drawing device based on Android mobile device in one exemplary embodiment of the disclosureBlock diagram.
Fig. 5 schematically shows another sectional drawing device based on Android mobile device in one exemplary embodiment of the disclosureBlock diagram.
Embodiment
Example embodiment is described more fully with referring now to accompanying drawing.However, example embodiment can be with a variety of shapesFormula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will moreFully and completely, and by the design of example embodiment those skilled in the art is comprehensively conveyed to.Described feature, knotStructure or characteristic can be combined in one or more embodiments in any suitable manner.There is provided permitted in the following descriptionMany details are so as to provide fully understanding for embodiment of this disclosure.It will be appreciated, however, by one skilled in the art that canOmit one or more in the specific detail to put into practice the technical scheme of the disclosure, or can be using other sectional drawingsMethod, constituent element, device, step etc..In other cases, it is not shown in detail or describes known solution a presumptuous guest usurps the role of the host to avoidAnd each side of the disclosure is thickened.
In addition, accompanying drawing is only the schematic illustrations of the disclosure, identical reference represents same or similar portion in figurePoint, thus repetition thereof will be omitted.Some block diagrams shown in accompanying drawing are functional entitys, not necessarily necessary and thingThe entity managed or be logically independent is corresponding.These functional entitys can be realized using software form, or one or moreThese functional entitys are realized in hardware module or integrated circuit, or in heterogeneous networks and/or processor device and/or microcontrollerThese functional entitys are realized in device.
Disclosure example embodiment is described in detail below in conjunction with the accompanying drawings.
Fig. 1 schematically shows a kind of screenshot method based on Android mobile device in one exemplary embodiment of the disclosureFlow chart.With reference to Fig. 1, the screenshot method 100 based on Android mobile device can include:
Step S102, calls the socket interfaces of Android mobile device to monitor the sectional drawing based on Android mobile device clientThe instruction of operation.
Step S104, responds the system version that the instruction obtains the Android mobile device, according to different system versionsThe corresponding shot operation of this execution system version.
The screenshot method based on Android mobile device that the disclosure is provided is by using socket servers (SocketServer) program module receives and performs shot operation, and according to the different shot operations of different Android system version execution,User is obtained mobile phone special access right can carry out sectional drawing to all pictures of mobile phone screen so that this screenshot method makesIt is more extensive compared with prior art with scope.In addition, by responding touch control operation of the user to suspended window, providing the user and cutting immediatelyFigure service and the continuous sectional drawing service that is delayed, overcoming existing mobile phone screen screenshot method can not the singlehanded defect completed.By carryingFor the continuous sectional drawing function of being delayed, make user need both hands ongoing operation to be not easy to can to use in the scene of manual sectional drawing it is automaticBe delayed continuous sectional drawing, reduces the cumbersome degree of user's operation, improves mobile phone operation efficiency.
Each step to the screenshot method 100 based on Android mobile device is described in detail below.
Step S102, calls the socket interfaces of Android mobile device to monitor the sectional drawing based on Android mobile device clientThe instruction of operation.
For example, when the operating system of smart mobile phone is android system, ADB (Android can be passed through firstDebug Bridge, Android debugging bridge) enter to the socket servers two of the program of the compiled execution this method of mobile phone pushCode processed, makes the program in running background.The program can receive and perform other app and is transmitted across by Socket ServerThe shell instructions come.
In this step, socket interfaces can be built in the 3 based on Android mobile device as program moduleIn the client of square application program, the client of the third party application can be obtained for example, by suspended window or application program etc.The instruction of the shot operation is taken, suspended window or application icon etc. are obtained to the instruction of shot operation as socket interfacesEntrance.
Step S104, responds the system version that the instruction obtains the Android mobile device, according to different system versionsThe corresponding shot operation of this execution system version.
In a kind of exemplary embodiment of the disclosure, the system version for obtaining the Android mobile device, according toDifferent system versions, which performs the corresponding shot operation of the system version, to be included:
The system version of the Android mobile device is obtained, judges whether the system version is more than Android5.0.IfIt is to call Android SDK interfaces to perform the shot operation;If it is not, obtaining the parameter of the shot operation, call describedSocket interfaces perform the shot operation.
Specifically, for more than Android5.0 system version, the original that directly can be provided using Android SDKRaw interface carries out sectional drawing., can be corresponding SDK editions according to different system version for below Android5.0 system versionThis, calls corresponding Android local interfaces to obtain the parameter of shot operation.It is then possible to be sent to socket serversSectional drawing instruction comprising above-mentioned parameter, shot operation is performed by socket programs.
In a kind of exemplary embodiment of the disclosure, the parameter of the shot operation includes following at least one:It is mobileHold width, height, direction of rotation, the store path of screen.
In a kind of exemplary embodiment of the disclosure, in addition to detect whether the store path has generated sectional drawing figurePiece.If so, completing shot operation;If it is not, calling the socket interfaces to perform the shot operation again.
Judge that the method whether picture generates can be for example locating file name, those skilled in the art can be according to actual feelingsCondition is freely set.
If it is determined that not generating sectional drawing picture, screencap sectional drawings can be sent to socket servers and instructed, this sectionThe parameter of figure instruction includes above-mentioned store path.
In a kind of exemplary embodiment of the disclosure, methods described also includes performing the sectional drawing with prefixed time intervalOperation.Specifically, i.e., this screenshot method can not only provide sectional drawing function immediately, can also provide delay continuous sectional drawing function.
In certain embodiments, if third party application listens to touch control operation of the user to suspended window, Ke YixianShow the sectional drawing service option including sectional drawing immediately, the continuous sectional drawing function of delay.It is noted that in the disclosure one showIn the other embodiment of example property embodiment, sectional drawing service option can also include other sectional drawing functions, and the disclosure does not make spy to thisIt is different to limit.By obtaining selection result of the user to the sectional drawing service option, the shot operation of response can be performed.
Obtaining user can be obtained to the selection result of the sectional drawing service option by obtaining the touch control operation of user.WithFamily can be within above-mentioned suspended window to the touch control operation of sectional drawing service option, can also be in newly-generated message box, abilityIf field technique personnel can freely be set according to actual conditions.
In a kind of exemplary embodiment of the disclosure, the operation for the continuous sectional drawing that is delayed includes:
The delay time and sectional drawing for obtaining user's setting start message, the continuous sectional drawing of trigger;
The delay time is set to timer parameter;
Timer is triggered, sending a minicap sectional drawing to socket servers every preset time instructs, and sends pre- altogetherIf value time.
If it is determined that user triggers the continuous sectional drawing option of delay in sectional drawing function choosing-item, it can start to receive user'sThe continuous sectional drawing that is delayed starts message and delay time t, and after the continuous sectional drawing message of delay is received, obtains Android movement and setWhether standby system version, decision-making system version is more than Android5.0.If so, calling Android SDK interfaces to perform sectional drawingOperation;If it is not, obtaining the parameter of shot operation, socket interfaces are called to perform shot operation.Call socket interfaces to perform to cutGraphic operation includes judging whether cell phone system supports minicap sectional drawings., can be with if cell phone system supports minicap sectional drawingsAndroid api timer interface is called, delay time is set to t and timer is triggered.
Trigger timer after, can every preset time (such as 200ms) to socket servers send a minicapSectional drawing is instructed, and it is secondary to continuously transmit default value (such as 10), generation default value sectional drawing picture, completes the continuous sectional drawing of delay.
The delay time t that above-mentioned preset time can be set for user, or the sectional drawing interval time that system is set.If the latter, then the delay time t that user is set is the default value in total sectional drawing duration, above-mentioned sectional drawing number of timesFor delay time t and the ratio of above-mentioned preset time.
In other exemplary embodiments of the disclosure, completing the process of the continuous sectional drawing of delay can also comprise determining whetherSectional drawing picture is generated.If it is determined that having generated sectional drawing picture, then sectional drawing is completed, end operation.Judge whether picture generatesMethod can be for example locating file name, those skilled in the art can freely set according to actual conditions.If it is determined that not havingSectional drawing picture is generated, sectional drawing failed message can be returned to user.
The above method 100 is described in detail below by specific embodiment.
Fig. 2 is the flow chart of shot operation immediately in a kind of exemplary embodiment of the disclosure.With reference to Fig. 2, cut immediatelyGraphic operation can include:
Step S201, judges whether system version is more than the versions of Android 5.0.In other exemplary embodiments of the disclosureIn, the sectional drawing message immediately of user after user triggers the function of sectional drawing immediately on suspended window, can be received, if receivedTo after sectional drawing message immediately, system version is judged.
Step S202, if system version is the versions of Android 5.0 or its above version, the primary sectional drawing of calling systemInterface carries out sectional drawing to screen.Now, without performing step S203 and step S204.
Step S203, if system version is Android versions below 5.0, obtain the width of screen, height andDirection of rotation.
Step S204, minicap instructions are sent to socket servers, and the parameter of minicap instructions includes the width of screenStore path after degree, height, direction of rotation and the generation of sectional drawing picture.
In addition, in some other exemplary embodiment of the disclosure, shot operation also includes immediately:
Step S205, the result returned according to socket servers, judges whether store path generates picture.
Step S206, has such as generated picture, has terminated this sectional drawing;
Step S207, does not such as generate picture, and screencap instructions, screencap instructions are sent to socket serversParameter include sectional drawing picture generate after store path.
In certain embodiments, in addition to secondary-confirmation link, i.e., shot operation can also include immediately:
Step S208, judges whether store path generates picture.
Step S209, picture is not generated such as, is sent sectional drawing failure error information, is terminated this sectional drawing.
Step S206, has such as generated picture, has terminated this sectional drawing.
First, socket servers are started by ADB, the reception and execution instructed for equipment shell.
Specifically, being connected Android phone with computer by USB, the system into mobile phone is set, in developer's optionIn open USB debugging.ADB push instructions are performed, compiled socket server binary programs mobile phone are pushed to, soInstructed afterwards by ADBshell chmod and the access limit of this program is set to 755, then this program is started by ADBshellMake it in mobile phone running background, for receiving and performing the shell instructions that other programs are sent in mobile phone.Hereafter, it is possible to disconnectedOpen the connection of mobile phone and computer.
The sectional drawing application program for implementing this screenshot method can be one and provide general Android phone sectional drawing functionAndroid application software, is interacted by suspended window with user.User can trigger sectional drawing service choosing by clicking on suspended window, and by clicking on the triggering of the button of sectional drawing immediately in sectional drawing service option sectional drawing function immediately.
System version is obtained by the Build.VERSION.SDK_INT attributes for calling android system to provide, can be sentencedThe system version for the android system of breaking.If the value of the attribute is more than or equal to 21, the system version belonging to it isThe versions of Android more than 5.0, otherwise judge that the system version is less than Android 5.0.
If system version is the versions of Android more than 5.0, suspended window can be hidden first, then is connect by systemMouth obtains the example A of MediaProjectionManager classes;Then, MediaProjection classes are obtained by this exampleExample B;If the content D of forth screen is obtained by example B again;Finally, ImageReader example C is created, passes through realityContent D is converted into picture and preserved by example C, and store path is S.Hereafter suspended window can be shown.
If system version is Android versions below 5.0, the instruction of minicap sectional drawings can be sent and arrive socketServer.Specifically, suspended window can be hidden, then start a new thread in the application, start one in new threadIndividual socket clients C, incoming socket service ends IP address and port numbers.Minicap sectional drawings are sent to socket serversDepositing after instruction, width of its parameter comprising mobile phone screen and height, the direction of rotation of mobile phone screen and the generation of sectional drawing pictureStore up path S.
Socket servers are received and performed after dependent instruction, can return to implementing result to application program.ReceivingAfter the implementing result that socket servers are returned, socket clients can be closed, exit this thread, show suspended window.
Next, can whether there is according to store path S, calling system interface check picture file, exist, representSectional drawing success, terminates this shot operation.Sectional drawing failure is represented if picture is not present, application program can be serviced to socketDevice sends screencap instructions.
Wherein, minicap is the sectional drawing instrument that stf makes, and screencap is that the primary sectional drawing shell of Android system refers toOrder.Due to minicap sectional drawing efficiency highs, but compatibility is poorer than screencap, therefore the system version in Android below 5.0It is preferential in this to use minicap sectional drawings, if minicap sectional drawings fail, then perform screencap instruction sectional drawings.
Specifically, suspended window can be hidden first, then start a new thread in the application, opened in new threadMove a socket clients C, incoming socket service ends IP address and port numbers.Sent to socket serversScreencap sectional drawings are instructed, and its parameter includes the store path S after the generation of sectional drawing picture.
Socket servers receive and perform dependent instruction, can return to implementing result to application program.Receiving socketAfter the result that server is returned, socket clients can be closed, exit this thread, show suspended window.
At this point it is possible to judge whether sectional drawing succeeds again.I.e. according to store path S, calling system interface check picture textPart whether there is, and exists and then represents sectional drawing success, terminates this sectional drawing.Sectional drawing failure is represented if picture is not present, then is sentSectional drawing error messages, for example, notify that user's sectional drawing is unsuccessful by display the prompt box, please retry.
Fig. 3 is the flow chart of continuous shot operation of being delayed in a kind of exemplary embodiment of the disclosure.With reference to Fig. 3, prolongShi Lianxu shot operations can include:
Step S301, the delay time and sectional drawing for obtaining user's setting starts message, the continuous sectional drawing of trigger.
Step S302, timer parameter is set to by delay time.
Step S303- step S304, trigger timer, are sent once to socket servers every the first preset timeMinicap is instructed, and preset value is sent altogether.
In a kind of exemplary embodiment of the disclosure, step S302 also includes:
Whether step S3021, decision-making system version is more than Android5.0.
Step S3022, if so, the primary sectional drawing interface of calling system carries out sectional drawing.
Step S3023, if it is not, judging whether system supports minicap to instruct.
Step S306, such as system do not support minicap to instruct, and return to sectional drawing failure information, terminate this sectional drawing.
In certain embodiments, also include after step S304:
Step S305, judges whether store path generates picture.
Step S306, picture is not generated such as, is sent sectional drawing failure error information, is terminated this sectional drawing.
Step S307, has such as generated picture, has terminated this sectional drawing.
The method that socket programs are set to mobile terminal is identical with previous embodiment, and the present embodiment is repeated no more in this.
User can trigger sectional drawing service option by clicking on suspended window, and be prolonged by clicking on the triggering of sectional drawing service optionShi Lianxu sectional drawing functions.
If the continuous sectional drawing function of user's Time delay, when can obtain the delay sectional drawing that user is set by suspended windowBetween t.For example, user can click on delay input frame in suspended window, input needs the time being delayed, and unit is millisecond.UsingThe delay sectional drawing time t that program can then be set user is saved in global variable.
Connected next, obtaining user by clicking on the continuous sectional drawing message of delay that button is triggered in suspended window, triggerContinuous sectional drawing.
Global variable N can be set to be equal to transmission minicap sectional drawings after 1, calling system interface sleep, t time first to refer toMake socket servers.
Specifically, suspended window can be hidden first, then start a new thread in the application, opened in new threadMove a socket clients C, incoming socket service ends IP address and port numbers.Minicap is sent to socket serversSectional drawing is instructed, after width of its parameter comprising mobile phone screen and height, the direction of rotation of mobile phone screen and the generation of sectional drawing pictureStore path S.
Socket servers are received and performed after dependent instruction, can return to implementing result to application program.ReceivingAfter the result that socket servers are returned, judge whether N is more than or equal to 10.
If N is more than or equal to 10, socket clients can be closed, exit thread, show suspended window.
If N is less than 10, variable N value is added 1, system interface Sleep is recalled, retransmited after the t timesSocket servers are arrived in the instruction of minicap sectional drawings.
Finally, it whether there is sectional drawing picture on picture store path by checking, it can be determined that whether sectional drawing succeeds.IfActually generate sectional drawing picture and then represent sectional drawing success, terminate this sectional drawing.Can be by display if sectional drawing picture is not presentThe modes such as prompting frame notify that the continuous sectional drawing of user's delay is unsuccessful, please retry.
Corresponding to above method embodiment, the disclosure also provides a kind of sectional drawing device based on Android mobile device, can be withFor performing above method embodiment.
Fig. 4 is a kind of square frame of sectional drawing device based on Android mobile device in one exemplary embodiment of the disclosureFigure.With reference to Fig. 4, the sectional drawing device 400 based on Android mobile device can include:
Module 402 is monitored in sectional drawing instruction, and the socket interfaces for calling Android mobile device are monitored based on Android movementThe instruction of the shot operation of device clients;
Sectional drawing instructs performing module 404, and the system version of the Android mobile device, root are obtained for responding the instructionThe corresponding shot operation of the system version is performed according to different system versions.
In a kind of exemplary embodiment of the disclosure, the sectional drawing task execution module includes:
Version judging unit 4042, the system version for obtaining the Android mobile device judges the system versionWhether Android5.0 is more than;
If so, calling Android SDK interfaces to perform the shot operation;
If it is not, obtaining the parameter of the shot operation, the socket interfaces are called to perform the shot operation.
In a kind of exemplary embodiment of the disclosure, the parameter of the shot operation includes following at least one:
Width, height, direction of rotation and/or the store path of mobile terminal screen.
In a kind of exemplary embodiment of the disclosure, in addition to:
Sectional drawing inspection unit 4044, for detecting whether the store path has generated sectional drawing picture;
If so, completing shot operation;
If it is not, calling the socket interfaces to perform the shot operation again.
In a kind of exemplary embodiment of the disclosure, described device also includes:
Be delayed continuous sectional drawing unit 4046, for performing the shot operation with prefixed time interval.
In a kind of exemplary embodiment of the disclosure, module 402 is monitored in sectional drawing instruction also to be included:
Suspension window unit 4022, the instruction for obtaining the shot operation by suspended window.
According to an aspect of this disclosure there is provided a kind of sectional drawing device based on Android mobile device, including:
Memory;And
The processor of memory belonging to being coupled to, the processor is configured as based on the finger being stored in the memoryOrder, performs the screenshot method as described in above-mentioned any one.
The concrete mode of the computing device operation of device in the embodiment should be set relevant based on Android movementDetailed description is performed in the embodiment of standby screenshot method, explanation will be not set forth in detail herein.
Fig. 5 is the block diagram of the device 500 according to exemplary embodiment.Device 500 can be smart mobile phone, flat board electricityThe mobile terminals such as brain.
Reference picture 5, device 500 can include following one or more assemblies:Processing assembly 502, memory 504, power supplyComponent 506, multimedia groupware 508, audio-frequency assembly 510, sensor cluster 514 and communication component 516.
The integrated operation of the usual control device 500 of processing assembly 502, such as with display, call, data communication, phaseOperation that machine is operated and record operation is associated etc..Processing assembly 502 can include one or more processors 518 to performInstruction, to complete all or part of step of above-mentioned screenshot method.In addition, processing assembly 502 can include it is one or moreModule, is easy to the interaction between processing assembly 502 and other assemblies.For example, processing assembly 502 can include multi-media module,To facilitate the interaction between multimedia groupware 508 and processing assembly 502.
Memory 504 is configured as storing various types of data supporting the operation in device 500.These data are shownExample includes the instruction of any application program or method for operating on device 500.Memory 504 can be by any kind ofVolatibility or non-volatile memory device or combinations thereof realization, such as static RAM (SRAM), electrically erasableExcept programmable read only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory(PROM), read-only storage (ROM), magnetic memory, flash memory, disk or CD.Also it is stored with memory 504 oneOr multiple modules, one or more modules are configured to be performed by the one or more processors 518, any of the above-described to completeAll or part of step in shown method.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management systemSystem, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 500.
Multimedia groupware 508 is included in the screen of one output interface of offer between described device 500 and user.OneIn a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screenCurtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensingsDevice is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding actionBorder, but also detection touches or slide related duration and pressure with described.
Audio-frequency assembly 510 is configured as output and/or input audio signal.For example, audio-frequency assembly 510 includes a MikeWind (MIC), when device 500 be in operator scheme, when such as call model, logging mode and speech recognition mode, microphone by withIt is set to reception external audio signal.The audio signal received can be further stored in memory 504 or via communication setPart 516 is sent.In certain embodiments, audio-frequency assembly 510 also includes a loudspeaker, for exports audio signal.
Sensor cluster 514 includes one or more sensors, and the state for providing various aspects for device 500 is commentedEstimate.For example, sensor cluster 514 can detect opening/closed mode of device 500, the relative positioning of component, sensor groupPart 514 can be with the position change of 500 1 components of detection means 500 or device and the temperature change of device 500.At someIn embodiment, the sensor cluster 514 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementationIn example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, the communication component 516 also includes near-field communication (NFC) module, to promote junction service.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC moduleArt, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuits (ASIC), numeralNumber processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In a kind of exemplary embodiment of the disclosure, a kind of computer-readable recording medium is additionally provided, is stored thereonThere is program, the sectional drawing side based on Android mobile device as described in above-mentioned any one is realized when the program is executed by processorMethod.The computer-readable recording medium for example can be to include the provisional and non-transitory computer-readable storage medium of instructionMatter.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed hereinIts embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes orPerson's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosureOr conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit will by rightAsk and point out.

Claims (14)

CN201710342765.7A2017-05-162017-05-16Screenshot method and device based on android mobile deviceActiveCN107197088B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710342765.7ACN107197088B (en)2017-05-162017-05-16Screenshot method and device based on android mobile device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710342765.7ACN107197088B (en)2017-05-162017-05-16Screenshot method and device based on android mobile device

Publications (2)

Publication NumberPublication Date
CN107197088Atrue CN107197088A (en)2017-09-22
CN107197088B CN107197088B (en)2020-09-25

Family

ID=59872690

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710342765.7AActiveCN107197088B (en)2017-05-162017-05-16Screenshot method and device based on android mobile device

Country Status (1)

CountryLink
CN (1)CN107197088B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111461955A (en)*2020-03-312020-07-28上海德易车信息科技有限公司Method and device for automatically increasing digital blind watermark in screenshot, electronic equipment and storage medium
CN112799758A (en)*2021-01-202021-05-14努比亚技术有限公司 A screenshot method, device and computer-readable storage medium
CN114579246A (en)*2022-05-052022-06-03北京麟卓信息科技有限公司Screen capturing method for android application in multi-window mode in android compatible environment
CN116612755A (en)*2023-05-242023-08-18阿波罗智联(北京)科技有限公司Voice interaction method, device and equipment of vehicle-mounted terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2013046027A1 (en)*2011-09-272013-04-04Z124Repositioning applications in a stack
CN103049190A (en)*2012-12-122013-04-17北京奇虎科技有限公司Mobile communication terminal and method controlling device operation
CN105183654A (en)*2015-09-182015-12-23厦门美图移动科技有限公司Android automatic testing screen recording mechanism and system disengaged from PC
CN105279006A (en)*2014-07-092016-01-27腾讯科技(深圳)有限公司Android system based screen capture method and terminal
CN105404455A (en)*2015-12-162016-03-16北京奇虎科技有限公司Method and apparatus for performing screen capture on mobile terminal by utilizing terminal
CN106406914A (en)*2016-11-112017-02-15武汉斗鱼网络科技有限公司Method and device for obtaining Android system window data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2013046027A1 (en)*2011-09-272013-04-04Z124Repositioning applications in a stack
CN103049190A (en)*2012-12-122013-04-17北京奇虎科技有限公司Mobile communication terminal and method controlling device operation
CN105279006A (en)*2014-07-092016-01-27腾讯科技(深圳)有限公司Android system based screen capture method and terminal
CN105183654A (en)*2015-09-182015-12-23厦门美图移动科技有限公司Android automatic testing screen recording mechanism and system disengaged from PC
CN105404455A (en)*2015-12-162016-03-16北京奇虎科技有限公司Method and apparatus for performing screen capture on mobile terminal by utilizing terminal
CN106406914A (en)*2016-11-112017-02-15武汉斗鱼网络科技有限公司Method and device for obtaining Android system window data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111461955A (en)*2020-03-312020-07-28上海德易车信息科技有限公司Method and device for automatically increasing digital blind watermark in screenshot, electronic equipment and storage medium
CN112799758A (en)*2021-01-202021-05-14努比亚技术有限公司 A screenshot method, device and computer-readable storage medium
CN114579246A (en)*2022-05-052022-06-03北京麟卓信息科技有限公司Screen capturing method for android application in multi-window mode in android compatible environment
CN116612755A (en)*2023-05-242023-08-18阿波罗智联(北京)科技有限公司Voice interaction method, device and equipment of vehicle-mounted terminal and storage medium

Also Published As

Publication numberPublication date
CN107197088B (en)2020-09-25

Similar Documents

PublicationPublication DateTitle
CN104579934B (en)A kind of information processing method and client
US11204681B2 (en)Program orchestration method and electronic device
CN102780653B (en)Quick method, client and the system communicated in instant messaging
CN108566332B (en)Instant messaging information processing method, device and storage medium
CN110233742B (en)Group establishing method, system, terminal and server
CN108538291A (en)Sound control method, terminal device, cloud server and system
WO2015106510A1 (en)Screen splitting method and device for applications, intelligent terminal and storage medium
CN110610699B (en)Voice signal processing method, device, terminal, server and storage medium
CN105703932B (en)Log recording method for uploading, log recording method of reseptance, terminal and server
CN107391768B (en)Webpage data processing method, device and equipment and computer readable storage medium
CN111063353B (en) Client-side processing method and user terminal for allowing custom voice interaction content
CN104038560A (en)Remote assistance method between mobile terminals, client side, electronic device and system
CN107197088A (en)Screenshot method and device based on Android mobile device
CN105072246A (en)Information synchronization method, device and terminal
CN105847325B (en)The adjustment method and device of applications client
CN106790895A (en)A kind of fault handling method and device
CN105096230A (en)Flight notification method and device and flight setting method and device
CN109814801A (en)application login method, device, terminal and storage medium
CN107509051A (en)Long-range control method, device, terminal and computer-readable recording medium
CN108205455B (en)Application function implementation method and device and terminal
CN107562500A (en)Debugging apparatus, method and apparatus
CN110502440A (en)Debug acquisition methods, device, electronic equipment and the storage medium of location information
CN111026651A (en)Test method, test device, storage medium and electronic equipment
CN103500106A (en)Method and device for starting application programs in mobile communication terminal
CN107066374B (en) A data processing method and mobile terminal

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp