Test Android app by installing app wirelessly on device.

I wanted to try out installing the app wirelessly on device. I followed some links given below:
1. http://developer.android.com/tools/help/adb.html
2. http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp
3. https://docs.google.com/document/d/1-wMYWpljgHolnVHCsV2VGeMmBcc29Id9rMbHrZoCelE/edit#

All of thes mentioned similar steps however none worked for me. Problem arised when following command was executed.

d:\sdk\platform-tools>adb tcpip 5555
restarting in TCP mode port: 5555


The command seemed to be stuck and did not finish executing. It took 4-6 hours to figure out the correct procedure by trial and error. Here's the correct procedure.
1. Connect your phone to PC.
2. Open command prompt and go to /sdk/platform-tools/ directory.
3. Now type the following command " adb tcpip 5555".
4. Once you see "restarting ..." message, remove device from PC. This will finish execution of above command.

D:\sdkForEclipseDoNotUpdate\sdk\platform-tools>adb tcpip 5555
restarting in TCP mode port: 5555


5. Now simply run the following command where replace "192.168.0.100 " with ip address of your device.

D:\sdkForEclipseDoNotUpdate\sdk\platform-tools>adb connect 192.168.0.100
connected to 192.168.0.100:5555

6. Check the attached devices.

D:\sdkForEclipseDoNotUpdate\sdk\platform-tools>adb devices
List of devices attached
192.168.0.100:5555      device

Comments

Popular posts from this blog

Enhancing LLM Responses with Prompt Stuffing in Spring Boot AI

Automate Library Integration with Cursor's Agent Mode

Using AndroidViewModel for accessing application context