Debug Android Without Wire
March 05, 2017
Working hard and working smart sometimes can be two different things.
Dorgan
One of the major problems of Android Developers is using a cable while debugging while debugging an android application. That means if you are an android developer and you are developing an android application, and if you are willing to run it in your own android device, you will have to connect the mobile with the pc ( on which you are coding )using a data cable each time. And if you want to see the logcats or if you want to debug, you will have to keep the cable connected whole the time you are coding. It is quite painfull to use or debug the mobile while it is connected to a cable. And also all the pc usb ports don't provide enough current to charge the phone. If your mobile charge is almost finished, you can't charge the mobile as it is connected to pc. There are so so many disadvantages of keeping a mobile connected to pc using a wire. And we, the developers always like to lead a hassle free life.So, to get rid of this problem sometimes some developers use some plugins so that they don't have to be attached with that wire.
But the ultimate solution is to use some commands...
Before using this commands you need to connect both your devices ( Your android device on which the application will be installed and the pc on where the editor is installed. ) on the same network.
Open up any command prompt and go to ( you can use the cd command ) the Android SDK location (on Windows you can find it inside your user folder if you install it on the default location e.g: C:\Users\YOUR-USERNAME\AppData\Local\Android\sdk\platform-tools). You probably want to add this path to your $PATH variable.
ipconfig
This command shows you details about your current network. You can get your ip and other important information using this command..
adb tcpip 5555
Before this command you need to connect your android device with the pc using a cable for once. So connect the android device with your pc using a wire and then enter the command. You will see a output like following.
adb connect [deviceIp]
This command will connect both the devices over wifi. You have to put the local ip of the device after "adb connect" in the command .Then the device will be connected to the pc over wifi. You can now remove the the wire and debug over wifi. You can now also check the connected devices using the following command.
adb devices
Alternatively you can also use some adb wifi plugins with android studio :
Tags : ADB, ADB wifi, Android Debug Bridge, Debug, Debug Bridge
Keywords : ADB, ADB Wifi, Anroid Debug Bridge, Debug, Debugging