Transfer from http://blog.csdn.net/lfyx1357/article/details/74181331. Install Android App1) Launch Android emulator2) adb install (APK on the PC Path/) *.apk (upload the apk file to the Data/app directory with the emulator's own operating system)3) Browse open APK app in Android emulator interface2. Remove
In Ubuntu do Android development, use ADB devices debug when the error appears in the face:The problem happened before, and suddenly I forgot, mark. On the internet to find a bit, is basically some of the more troublesome way, but in my memory this problem should be able to solve the problem soon. And then I thought about the unusual hint.$ adb Devices 5037 * * D
Top-n 1
Query the memory usage of each process:ADB Shell Procrank
Kill a process:ADB shell kill [PID]
To view a list of processes:ADB Shell PS
To view the status of a specified process:adb shell Ps-x [PID]
To view background services information:ADB Shell Service List
To view current memory consumption:ADB Shell Cat/proc/meminfo
To view the IO memory partition:ADB Shell Cat/proc/iomem
To re-mount the system partition as a read-write partition:ADB remount
Copy files from local
Common commands
Devices # Viewing connected devices
Start-server # start ADB server
Kill-server # stop ADB server
Logcat # Viewing logs
Install # installs an APK
Uninstall # Uninstall an APK
Shell # Enter Terminal
Other commands
Help # View the helpful information
Version # View versions
Devices # Viewing connected devices
Forward # port forwarding
Open Terminal:Touch . Bash_profileOpen-e. Bash_profileThis will pop up a ". Bash_profile" text file, can be directly edited and saved, very convenient.To update the configuration:Command:Verify that the ADB is configured successfully:Terminal input:adbOrADB versionDo not prompt "command not found", but a long list of help instructions or version number, that proves that the ADB has been configured.Main refe
Activate the ADB network connection on the Android boardThe use of ADB is too big, no doubt, through the serial port, U disk, view log information, install APK is too troublesome, network adb useful, but a lot of boards do not directly open such services. Just a moment to remember today:One, re-mount the system partiti
Many developers may encounter a problem, that is, each time they use the ADB command, they need to CD to the directory where Android-SDK/platform-tools is located for execution. Otherwise, they will prompt that ADB is not an internal command, how can this problem be solved?
In fact, the system prompts that ADB is not
Reprint Address: http://jingyan.baidu.com/article/17bd8e52f514d985ab2bb800.html
For Android developers, the first thing to do is to configure the environment variables. People who have studied Java know that Java is required to configure environment variables, so does Android development also require us to configure environment variables? Of course, the environment variables of
Introduction to Android Wireless debugging application through ADB Wireless
It is inconvenient to use data lines to debug applications. This blog introduces how to use the ADB Wireless tool to debug applications wirelessly when mobile phones and computers are on the same network.ADB Wireless can enable the mobile phone to replace USB connections wirelessly, And
ADB is all called Android Debug Bridge, commonly used to view the Android Application log tools, often want to enable Abd, always in the command Manager to specify the path to the Adb.exe,For example, if my file is stored in the ADB folder on the D drive, I will first specify the path as D:\ADBGiven that each use is to
There are a lot of tutorials on using WiFi to connect Android devices to debug apps, but you need to use Bluetooth to communicate in your project. So it involves using Bluetooth to call ADB.1. Pairing your computer's Bluetooth with your phone (Control Panel, devices and printers, adding devices)2. Set on the phone (set à many other wireless connections à network share à bluetooth shared network)3. PC-side,
Screenrecord Sdcard/record.mp4ECHO Analog Input text information (if the keyboard is first set to the English keyboard)ADB input text HelloWorldECHO Analog Physical key operationADB input KeyEvent Keycode_volume_downECHO Analog Click ActionADB input TAP 500 500ECHO Analog Slide operationADB input swipe 200 500 400 500ECHO Analog long-press operation (x1 y1 x2 y2 mm)ADB input swipe 200 200 200 200 1000ECHO
Directory (?) [-]
ADB command
Simulator Console
Strictmode
ADB commandWe are learning about the use of SQLite, introduced some of the use of the ADB command, see Pro Android Learning Note (v): Learn about content Provider (above).Abd –e Shell-E is the surface connection simulator emulator,-d is th
Resources:Http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdkHttp://serverfault.com/questions/442792/ubuntu-12-04-apt-get-install-ia32-libs-unmet-dependencieshttp://my.oschina.net/uoy/blog/129108I am running the adb and AAPT tips under the Android SDK directory on 64-bit Debian: bash:./aapt:no such file or directoryThis is because the file
Debugging with adb wireless for Android
Today, there is a problem with the usb interface on the computer, so I thought that I could connect to the mobile phone through wifi, and then DEBUG eclipse and check logcat.
I searched the internet and found this solution.
Now I want to share it with my android friends.
Prerequisites: You must have installed the
Typically, after you have installed and configured the environment variables for the Android SDK, you will not see your device immediately after you successfully enter the ADB devices on the command line (Terminal). This eliminates the problem of the device itself, the most common is in the user directory of the. Android folder has no Adb_usb.ini files in it. Thi
power button event to turn the device on or off.26Unlock screenThis command sends the event, unlocks the lockscreen on the device. It can be combine with the power button command above to turn on and unlock the device.82Print all installed PackagesADB shell PM List packages-fLoggingTo show the log stream on your command line.ADB logcatFilter by TagNameADB logcat---s TEST MYAPPFilter by priorityTo show logs of a specific priority warning and above." *:P riority " "*:w"Here is the priority level
The android terminal adbd service needs to enable port 5555 to establish an ADB connection. If port 5555 is not enabled, you cannot use network debugging to check whether network debugging is available: # netstat
If port 5555 is enabled, the connection can be performed:> ADB connect 192.168.x.x if netstat shows that port 5555 is not enabled, set the adbd paramet
In Android, in addition to starting a program from the interface, you can also start the program from the command line, using the command line tool AM.
Enter am -- help in the work area of the ADB Tool
Bytes ------------------------------------------------------------------------------------------------------------------
Bash-3.2 # Am -- HelpUsage: am [subcommand] [Options]
Start an activity: am start [-D]
1. Locate the local path of the Android SDK, adb command under Platform-tool, credited as xxxx My path is (/applications/eclipse/android-sdk-mac_x86/platform-tools)2. Open Terminal inputTouch. Bash_profile Open-e. bash_profile Point Enter3. Add a pathThe. Bash_profile opens and we add the path here,If there is already content in the open document, we just add it
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.