Label:Today monkey's simple environment configuration, ready to start monkey, but in the Command Control window input Unable to enter the ADB shell, prompted the error "Unknown host service"find the data found that because the computer's 5037 port is occupied by a program (ADB in ANDROID_SDK requires 5037 ports), then we need to turn off this program. Start.....
You can use ADB install hello.apk to install an APK but cannot start it. To start it, use the ADB shell am method.
Start activity:
ADB shell am start-N package name/package name + class name (-N class name,-A action,-d date,-M mime-type,-C category, -E ).
For example, ADB shell am start-N androidexport.com/androidexpo
According to the company's needs yesterday came a cupboard, the boss let me give him also press a procedure up, connected several adb, found that ADB connection is not, after using the U-disk on the, but do not connect adb debugging Ah, breakpoints are not playing, for debugging programs greatly increased the difficulty, so in the almighty Baidu Help Finally foun
First, start the activity:$ adb shell$ am Start-n {package name}/{package name}. {activity name} like: Start a campaign called mainactivity.# AM Start-n com.example.test/com.example.test.mainactivitySecond, start the service:$ adb shell$ am startservice-n {package name}/{package name}.{ Service Name} For example: Star
Label:at this point, you need to identify the computer's 5037 port by which Application method used by the program: (Requires 5037 port is idle when using ADB)1. Open the command line and enter the command: Netstat-ano |findstr "5037"2, check to see the corresponding process PID is 7952Ctrl+alt+delete, open Task Manager to see which process is taking up 79523 , end the process4 , if a process is found, multiple closures cannot be turned off, you can t
/dev/input/event0 0 0 0
Debugging considerations
When debugging applications that use USB peripherals and host features, you are likely to connect your USB hardware to your Android device, this will prevent you from establishing an adb connection to the Android device through USB. You can still access adb through the network. Connect to adb through network:
Co
SoftwareForwarding Portcopy or copy files from simulator/deviceadb command ListStart shell commandconnect to the database by running sqllite3 from the remote shell sideui/Software test program MonkeyOther shell commandsEnable Logcat loggingusing the Logcat commandfiltering log Outputcontrol log Output formatView available Log buffersView stdout and stderrlogcat Command ListStop adb serviceOverviewAndroid Debugging system is a face to customer
PortImport or copy files from Simulators/devicesAdb command listStart shell commandsConnect to the database by running sqllite3 on a remote shell ClientUI/Software Test Procedure MonkeyOther shell commandsEnable logcat logsUse the logcat commandFilter log outputControl log output formatView available log BuffersView stdout and stderrLogcat command listStop adb ServiceSummaryThe Android debugging system is a customer
port has a device mounted or removed, and of course includes monitoring the startup and shutdown of the emulator instance.So it maintains a series of "connected devices" information, and each connected device is given one of the following statuses: Offline,bootloader,recovery or online (there will be more support for other states later).The ADB server can indeed be called a powerful multi-route, and its purpose is to coordinate the exchange of data (
Label:
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other information.
The ADB se
to sense (monitor) whether the USB port has a device mounted or removed, and of course includes monitoring the startup and shutdown of the emulator instance.So it maintains a series of "connected devices" information, and each connected device is given one of the following statuses: Offline,bootloader,recovery or online (there will be more support for other states later).The ADB server can indeed be called a powerful multi-route, and its purpose is t
1 common command-line tools in the Android SDKThere are many command-line tools in the 2 starting and shutting down the ADB service (ADB start-server and ADB kill-server)After testing by the author, the ADB service is possible (th
After testing by the author, the ADB service is possible (this service can be found in the Windows process, which is used for the emulator or a real-time service connected via a USB cable), after the simulator has been running for a while. The ADB
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other information.
The ADB server is processe
Detailed explanation of adb's principle and its total restart, and detailed explanation of adb's principle restart
1. adb (Android Debug Bridge) indicates the android debugging Bridge.
It is a command line tool in the android system that can communicate with android devices or simulators.
ADB is a C/S architecture application, which consists of three parts:
1) adb
Tags: android test automation adb
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other i
: settings --> Wireless Network --> wlan settings --> advanced options --> ip address such as 192.168.2.11
3. Run ping 192.168.2.11 in the command of the local machine. If the ping is successful, the connection can be established.
4. Run adb connect 192.168.2.11.
If the connection is successful, you can continue the subsequent operations. If the connection fails, as shown in:
Unadble to connect to 192.168.2.11: 5555
It may be due to a p
and mobile phones). The output format is [serialNumber] [state].Adb get-state to view the current status of the simulator/facility.Note:Serial number [serialNumber] -- a string created by adb, which uses its own control port Uniquely identifies a simulator/device instance. Example of a serial number: emulator-5554----------- Send command to device series -----------Adb
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.