Http://www.cnblogs.com/skyseraph/archive/2013/02/04/2892103.html
Today, we see an interesting open-source software called Android-screen-Monitor, which is briefly recorded as follows:
1 Overview
A software that synchronizes the screen of a mobile phone's real machine to a PC (Real-time screen capture, a little small card)
2 Open Source Address
Http://code.google.com/p/android-screen-monitor/
3 Procedure
① Connect your mobile phone to your computer via USB
② Copy the ASM. jar file to your Android-SDK platform-tools, for example, my E: \ Android-SDK \ platform-Tools
③ Run-> CMD and go to the ASM. Jar directory.
④ Input: Java-jar ASM. Jar
The actual operation result is as follows:
4. Source Code Research
Further discussion
5. Extension
To avoid entering commands every time you use them, a simple bat script is written as follows:
?
: Run @color 3f @echo welcome to skyseraph ** @e: :loop @echo. @echo ----------------------------------------------------------- @ Echo 1. Go to the ASM. Jar folder (cd e: \ Android-SDK \ platform-tools) @ Echo 2. Input: Java-jar ASM. Jar @ Echo other, quit @echo by SkySeraph 2013-02-04 @echo ----------------------------------------------------------- @echo off Set/P Var = enter your choice: if %var% equ 1 (cd E:\Android\android-sdk\platform-tools )else if %var% equ 2 (java -jar asm.jar )else (exit) goto :loop |
Update
Today, I accidentally discovered that the devices of eclipse ddms comes with this function, which is very practical ~