CN102546797B - Screen shooting method for mobile equipment based on browser end/server end structure - Google Patents

Screen shooting method for mobile equipment based on browser end/server end structure Download PDF

Info

Publication number
CN102546797B
CN102546797B CN201110460133.3A CN201110460133A CN102546797B CN 102546797 B CN102546797 B CN 102546797B CN 201110460133 A CN201110460133 A CN 201110460133A CN 102546797 B CN102546797 B CN 102546797B
Authority
CN
China
Prior art keywords
screenshotss
mobile device
server end
browser
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.)
Active
Application number
CN201110460133.3A
Other languages
Chinese (zh)
Other versions
CN102546797A (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 Interactive Encyclopedia Network Technology Co.,Ltd.
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Interactive Online (beijing) Technology 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 Interactive Online (beijing) Technology Co Ltd filed Critical Interactive Online (beijing) Technology Co Ltd
Priority to CN201110460133.3A priority Critical patent/CN102546797B/en
Publication of CN102546797A publication Critical patent/CN102546797A/en
Application granted granted Critical
Publication of CN102546797B publication Critical patent/CN102546797B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a screen shooting method for mobile equipment based on a browser end/server end structure. The screen shooting method comprises the following steps: a browser end responds to an instruction of a user and transmits a screen shooting generation command comprising a mobile application program packet required by shooting the screen to a server end; the server end responds to the screen shooting generation command and transmits data comprising the mobile application program packet required by shooting the screen to the mobile equipment; and the mobile equipment is installed with the mobile application program packet required by shooting the screen to generate a screen shooting image file. The screen shooting method has the advantages of simpleness in operation, high automatic degree, short consumed time and high efficiency.

Description

A kind of mobile device screenshotss method based on browser end/server end structure
Technical field
The present invention relates to Internet technical field, particularly a kind of mobile device screenshotss method based on browser end/server end structure.
Background technology
In prior art for the screenshotss method of mobile device, conventionally need user on mobile device manual compiling code or install screenshotss application programs (APP) just can complete.
For example, utilize existing Android SDK Android SDK (software development kit), user can use DDMS (Dalvik Debug Monitor Server) instrument, first PC is connected with mobile device end by data wire, then mobile device end is carried out screenshotss and generates screenshotss image file at mobile device end, then the snapshot that mobile device end is generated arrives PC as file copy.But above-mentioned every single stepping all needs user manually to write corresponding command code, and need to repeatedly debug, complicated operation is loaded down with trivial details, length consuming time, and efficiency is low.In addition, the method can only complete on the mobile device that JDK (Java Development Kit) and Android SDK have been installed, and application has limitation.
Utilize existing screenshotss application program, also can realize the screenshotss of mobile device end.But, need user first PC to be connected with mobile device end by data wire, then in mobile device end manual installation screenshotss application program, again at mobile device end according to the option of screenshotss application program and point out manual operation step by step to complete screenshotss, the screenshotss image file finally mobile device end being generated manually copies PC to.The shortcoming of this kind of method is that complicated operation is loaded down with trivial details equally, length consuming time, and efficiency is low.
At present, be starved of a kind of screenshotss method that automaticity for mobile device is high, simple and efficient to handle, efficiency is high.
Summary of the invention
The object of this invention is to provide a kind of mobile device screenshotss method based on browser end/server end structure.
Mobile device screenshotss method based on browser end/server end structure provided by the invention comprises the steps:
Browser end response user's instruction sends the screenshotss generation of the mobile applications bag that comprises screenshotss needs and orders to server end;
Described server end responds described screenshotss and generates order comprises data from the mobile applications bag of described screenshotss needs to mobile device transmission;
The mobile applications bag that described in described mobile device installation and operation, screenshotss need generates screenshotss image file.
Preferably, described method further comprises the steps:
Described server end is set up screenshotss catalogue;
The screenshotss image file that described server end generates described mobile device is saved in described screenshotss catalogue;
Described server end provides the download path of the screenshotss image file of described screenshotss application program to described browser end.
Preferably, described method further comprises the steps:
Described server end responds described screenshotss generation order and checks that whether the mobile applications bag of described screenshotss needs is effective; If invalid, feed back to described browser end the invalid information of mobile device application package that described screenshotss need.
Preferably, described mobile device comprises mobile phone, panel computer or mobile phone simulator.
Preferably, described screenshotss generate to order and further comprise screenshotss parameter.
Preferably, described screenshotss parameter comprises screenshotss path, screenshotss number of times and resolution.
Preferably, described screenshotss are the whole screen pictures that obtain described mobile device end.
The present invention has following beneficial effect:
(1) described method can by complexity, repetition, loaded down with trivial details working set together, based on B/S (browser end/server end) structure, generate mobile device sectional drawing fast automaticly, has avoided writing in a large number the time of code and debugging completely;
(2) resolution that described method can self-defined mobile device sectional drawing is to meet different clients' demand;
(3) mobile device sectional drawing of the every generation of described method, all can be stored in server end, and at browser end, the download path of this mobile device sectional drawing is shown, thereby user can be gone to download by http agreement easily;
(4) described method is simple to operate, and automaticity is high, and consuming time short, efficiency is high.
Brief description of the drawings
The flow chart of the mobile device screenshotss method based on browser end/server end structure that Fig. 1 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, summary of the invention of the present invention is further described.
The present embodiment is taking the web engineering of B/S (browser end/server end) structure as example, based on for example J2EE technology, at a for example Python script of server end configuration.
As shown in Figure 1, the mobile device screenshotss method based on browser end/server end structure that the present embodiment provides comprises the steps:
S1: browser end response user's instruction sends the screenshotss generation of the mobile applications bag that comprises screenshotss needs and orders to server end;
S2: described server end responds described screenshotss and generates order to the mobile data that send the mobile device application package that comprises described screenshotss needs;
S3: the mobile device application package that described in described mobile device installation and operation, screenshotss need generates screenshotss image file.
Described method further comprises the steps (not shown):
S4: described server end is set up screenshotss catalogue;
S5: the screenshotss image file that described server end generates described mobile device is saved in described screenshotss catalogue;
S6: described server end provides the download path of the screenshotss image file of described screenshotss application program to described browser end.
Described method further comprises the steps:
Described server end responds described screenshotss generation order and checks that whether the mobile applications bag of described screenshotss needs is effective; If invalid, feed back to described browser end the invalid information of mobile applications bag that described screenshotss need; If effectively,, described server end is carried out described step S2.
Described screenshotss refer to the whole screen picture that obtains described mobile device.Described screenshotss generate order and further comprise screenshotss parameter.Before step S1, user need to obtain the mobile applications bag of screenshotss needs and edit screenshotss parameter.The mobile applications bag that user can select screenshotss to need as required.Particularly, the mobile applications bag that user can directly send local screenshotss needs from browser end is to described server end, also can send the download link of the mobile applications bag that screenshotss need to server end, then download by for example http agreement the mobile applications bag that screenshotss need by described server end.Described screenshotss parameter comprises screenshotss path, screenshotss number of times and resolution.Described screenshotss path is used in reference to the mobile device that will carry out screenshotss of selecting to user; Described screenshotss path is also for making mobile device can identify one or more screens that will carry out screenshotss that user selects.In the present embodiment, a screen picture that obtains described mobile device is defined as screenshotss one time.In described step S3, described mobile device can carry out repeatedly screenshotss.User can set the screenshotss number of times of described step S3 as required.User can set the resolution of screenshotss each time as required.Particularly, user can set the resolution of screenshotss in the mobile applications bag that obtains screenshotss needs.Described mobile device comprises mobile phone, panel computer or mobile phone simulator.In the present embodiment, described mobile device adopts for example Android mobile phone simulator.In the present embodiment, the definition of panel computer is: a kind of small-sized, PC of being convenient for carrying, and using touch-screen as basic input equipment.The touch-screen that described panel computer has allows user to carry out operation instead of traditional keyboard or mouse by touch-control or digital pen.
In the present embodiment, described server end receives the mobile applications bag after described screenshotss generation order, described screenshotss being needed and is saved in local particular file folder, and by an ineffective law, rule, etc. presents of described screenshotss parameter read-in this locality.Particularly, can send list in described particular file folder or by ineffective law, rule, etc. presents described in screenshotss parameter read-in by ajax.
In described step S2, described server end can send to described mobile device by comprising that the mobile applications bag of described screenshotss needs and the data of described screenshotss parameter are disposable, also can by comprise described screenshotss needs mobile applications bag data and comprise that the data substep of described screenshotss parameter send to described mobile device.
In the present embodiment, described server end responds described screenshotss and generates order first comprises data from the mobile applications bag of described screenshotss needs to described mobile device transmission; Described screenshotss application program is installed in the time that described mobile device receives the data of the mobile applications bag that comprises described screenshotss needs and sends the information of the mobile applications bag installation of described screenshotss needs to described server end; In the time that receiving the information of the mobile applications bag installation that described screenshotss need, described server end sends to described mobile device the data that comprise described screenshotss parameter again; The mobile applications bag of the described screenshotss needs in the time that described mobile device receives the data that comprise described screenshotss parameter after utilization installation is opened and is wanted the screen of screenshotss to carry out screenshotss and generate corresponding screenshotss image file.
In the present embodiment, described server end is realized the screenshotss of described mobile device end by calling described Python script.For all kinds of screenshotss application programs of every kind of operating system such as such as android, ios and windows phone7, described server end has the framework with particular category structure, and the image file that screenshotss generate is stored in the respective directories of described framework.In the present embodiment, generate described screenshotss catalogue by the io interface of for example java.
In the present embodiment, the image file that described server end generates screenshotss is stored in the respective directories of described framework according to resolution difference.For example, in Android mobile phone simulator, the image file that is 800*480,480*320 and 320*240 by resolution is placed on respectively successively name and is called under the file of " 800480 ", " 480320 " and " 320240 ".By this step, make screenshotss application program automatically to show the screenshotss with corresponding resolution according to the resolution of mobile device.
In the present embodiment, the screenshotss image file of generation can be kept on the hard disk of described server end, and each screenshotss image file of generation can generate corresponding catalogue according to title and date, and this catalogue can be used as the foundation of index search.Described server end only need to provide the relative path of a screenshotss image file directory on hard disk at described browser end, and user just can download screenshotss image file at described browser end.
Described method can by complexity, repetition, loaded down with trivial details working set together, based on B/S structure, generate mobile device sectional drawing fast automaticly, has avoided writing in a large number the time of code and debugging completely.Described method can self-defined mobile device sectional drawing resolution to meet different clients' demand.Mobile device sectional drawing of the every generation of described method, all can be stored in server end, and at browser end, the download path of this mobile device sectional drawing be shown, thereby user can be gone to download by http agreement easily.Described method is simple to operate, and automaticity is high, and consuming time short, efficiency is high.
Should be appreciated that the above detailed description of technical scheme of the present invention being carried out by preferred embodiment is illustrative and not restrictive.Those of ordinary skill in the art modifies reading the technical scheme that can record each embodiment on the basis of specification of the present invention, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (7)

1. the mobile device screenshotss method based on browser end/server end structure, is characterized in that, the method comprises the steps:
Browser end response user's instruction sends the screenshotss generation of the mobile applications bag that comprises screenshotss needs and orders to server end;
Described server end responds described screenshotss and generates order comprises data from the mobile applications bag of described screenshotss needs to mobile device transmission;
The mobile applications bag that described in described mobile device installation and operation, screenshotss need generates screenshotss image file.
2. the mobile device screenshotss method based on browser end/server end structure according to claim 1, is characterized in that, described method further comprises the steps:
Described server end is set up screenshotss catalogue;
The screenshotss image file that described server end generates described mobile device is saved in described screenshotss catalogue;
Described server end provides the download path of the screenshotss image file of described screenshotss application program to described browser end.
3. the mobile device screenshotss method based on browser end/server end structure according to claim 1, is characterized in that, described method further comprises the steps:
Described server end responds described screenshotss generation order and checks that whether the mobile applications bag of described screenshotss needs is effective; If invalid, feed back to described browser end the invalid information of mobile applications bag that described screenshotss need.
4. the mobile device screenshotss method based on browser end/server end structure according to claim 1, is characterized in that, described mobile device comprises mobile phone, panel computer or mobile phone simulator.
5. the mobile device screenshotss method based on browser end/server end structure according to claim 1, is characterized in that, described screenshotss generate order and further comprise screenshotss parameter.
6. the mobile device screenshotss method based on browser end/server end structure according to claim 5, is characterized in that, described screenshotss parameter comprises screenshotss path, screenshotss number of times and resolution.
7. the mobile device screenshotss method based on browser end/server end structure according to claim 1, is characterized in that, described screenshotss are the whole screen pictures that obtain described mobile device end.
CN201110460133.3A 2011-12-31 2011-12-31 Screen shooting method for mobile equipment based on browser end/server end structure Active CN102546797B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110460133.3A CN102546797B (en) 2011-12-31 2011-12-31 Screen shooting method for mobile equipment based on browser end/server end structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110460133.3A CN102546797B (en) 2011-12-31 2011-12-31 Screen shooting method for mobile equipment based on browser end/server end structure

Publications (2)

Publication Number Publication Date
CN102546797A CN102546797A (en) 2012-07-04
CN102546797B true CN102546797B (en) 2014-08-13

Family

ID=46352743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110460133.3A Active CN102546797B (en) 2011-12-31 2011-12-31 Screen shooting method for mobile equipment based on browser end/server end structure

Country Status (1)

Country Link
CN (1) CN102546797B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365840B (en) * 2012-03-26 2016-08-03 腾讯科技(深圳)有限公司 A kind of screenshot method based on web and device
CN103777855B (en) * 2012-10-23 2018-09-21 腾讯科技(深圳)有限公司 The method and apparatus for intercepting mobile terminal screen
CN103338405A (en) * 2013-06-03 2013-10-02 四川长虹电器股份有限公司 Screen capture application method, equipment and system
CN104079717B (en) * 2014-06-12 2016-08-24 深圳市金立通信设备有限公司 A kind of method at display device interface and server
CN104834753A (en) * 2015-05-28 2015-08-12 百度在线网络技术(北京)有限公司 Webpage screenshot generating method and device
CN105072461B (en) * 2015-07-03 2019-03-08 北京奇虎科技有限公司 A kind of data processing method and device
CN106647441A (en) * 2016-10-23 2017-05-10 杭州老板电器股份有限公司 Fire power control method and device, and terminal
CN116016472B (en) * 2023-02-20 2023-06-09 北京格如灵科技有限公司 Client interaction method, device, computer equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079061A (en) * 2007-04-09 2007-11-28 腾讯科技(深圳)有限公司 Web page screen-cutting system and implementation method
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100930802B1 (en) * 2007-06-29 2009-12-09 엔에이치엔(주) Browser control method and system using images
US8135635B2 (en) * 2008-10-16 2012-03-13 Intuit Inc. System and method for time tracking on a mobile computing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079061A (en) * 2007-04-09 2007-11-28 腾讯科技(深圳)有限公司 Web page screen-cutting system and implementation method
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal

Also Published As

Publication number Publication date
CN102546797A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102546797B (en) Screen shooting method for mobile equipment based on browser end/server end structure
US10705942B1 (en) Simulated testing of API
US11687324B2 (en) Property management method and property management system and machine using the same
US20140082511A1 (en) Method and system for emulating desktop software applications in a mobile communication network
CN104484216A (en) Method and device for generating service interface document and on-line test tool
Ridene et al. A model-driven approach for automating mobile applications testing
JP2011107752A (en) Information-processing device, communication system and program
JP7280388B2 (en) Apparatus and method, equipment and medium for implementing a customized artificial intelligence production line
EP3196783A1 (en) Open collaboration board with multiple integrated services
CN107426588B (en) Method, system and storage device for acquiring television set configuration information
Conway et al. iPhone programming: The big nerd ranch guide
JP2013137687A (en) Generation method of application which does not need compilation
CN113407078A (en) Method and device for editing character icon, storage medium and terminal
Göth Testing techniques for mobile device applications
TWI568285B (en) Service provider system and service provider method
Leszczynski OPC UA App development for Android
Paternò Models for universal usability
WO2016000633A1 (en) Information collecting method and information collecting system using such method
CN112306324A (en) Information processing method, apparatus, device and medium
KR20140115456A (en) A recording media for providing an application developing tool
EP3232384A1 (en) Network service providing method and network service station using method
Peskersoy et al. Extending web applications to mobile platforms: a software engineering view
WO2016112844A1 (en) Property management method and property management system and machine using the same
KR20140094770A (en) A method for providing an application developing tool and an apparatus using it
KR20140115457A (en) A recording media recognized by computer for providing an application developing tool

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
DD01 Delivery of document by public notice

Addressee: Beijing Interactive Encyclopedia network technology Limited by Share Ltd. patent Manager (collect)

Document name: Notification that Application Deemed not to be Proposed

C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 100085 Haidian District on the road to information on the ground floor, building A7F, No. 28, Beijing

Patentee after: BEIJING HUDONG BAIKE NETWORK TECHNOLOGY CO.,LTD.

Address before: 100029, miracle Fortune Plaza, 1 Li an yuan, Anding, Beijing, Chaoyang District

Patentee before: Hudong Online (Beijing) Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100085 Haidian District on the road to information on the ground floor, building A7F, No. 28, Beijing

Patentee after: Beijing Interactive Encyclopedia Network Technology Co.,Ltd.

Address before: 100085 Haidian District on the road to information on the ground floor, building A7F, No. 28, Beijing

Patentee before: BEIJING HUDONG BAIKE NETWORK TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190924

Address after: 100041, room 2, building 3, building 30, Xing Xing street, Shijingshan District, Beijing,

Patentee after: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address before: 100085 Haidian District on the road to information on the ground floor, building A7F, No. 28, Beijing

Patentee before: Beijing Interactive Encyclopedia Network Technology Co.,Ltd.