Is it possible to show the adb logcat
for a tcpip
device in Android Studio? I am writing a application that utilizes the USB port and I cannot use it for adb usb
.
Currently, I am using the following instruction to view the logcat in Command Prompt, but it would be nice if this was integrated into AS: http://developer.android.com/tools/help/adb.html#wireless
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device. The adb command facilitates a variety of device actions, such as installing and debugging apps, and it provides access to a Unix shell that you can use to run a variety of commands on a device.
To use ADB with your Android device, you must enable a feature called “USB Debugging.” Open your phone's app drawer, tap the Settings icon, and select “About Phone”. Scroll all the way down and tap the “Build Number” item seven times. You should get a message saying you are now a developer.
After some testing Android Studio already supports this. You just need perform the following ADB commands, and now you can see the logcat and even wirelessly load your application. No USB cable needed!
From: http://developer.android.com/tools/help/adb.html#wireless
$ adb tcpip 5555 restarting in TCP mode port: 5555
Settings -> About tablet -> Status -> IP address. Remember the IP address, of the form #.#.#.#.
Settings -> Wi-Fi -> -> IP address
$ adb connect #.#.#.# connected to #.#.#.#:5555
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With