USB connection and debugging at the same time

I need a network connection on my Android device to test applications. My laptop’s WiFi adapter is broken, so after 2 hours I established a connection via USB. But! Eclipse does not see the device when I run "Wired Tether" on it to get a connection, and I cannot debug my applications.

Does anyone know how to solve this problem? Use a USB modem to simultaneously connect to the Internet and debug applications?

+10
android debugging eclipse usb
May 31 '12 at 10:28
source share
8 answers

I don’t know how to use USB debugging and binding at the same time. Here are some workarounds:

  • Get a USB wireless adapter for your computer (see http://www.amazon.com/gp/bestsellers/electronics/13983791/ref=pd_zg_hrsr_e_2_4_last ). I do not know if buying one of them for you in India.
  • Send your apk to your phone wirelessly to install the application (see Developing on an Android device via a wireless network ), and then look at the logarithm directly on the phone for debugging (aLogcat seems to be popular and allows you to send log files, for example, email so that you can open them on your computer to view them on the big screen).

I know that these decisions are associated with costs, efforts or inconveniences, but I hope you will work for you.

EDIT:

As noted in the answers from @shkschneider and @CodeShane, it is possible to exchange via Bluetooth via Bluetooth. The CodeShane answer mentions PdaNet (which apparently also allows you to connect and debug USB at the same time) and includes the link. Another solution is OpenGarden . These solutions provide access to the Internet for a computer via telephone. If the opposite is required (and this is not entirely clear from the question), the reverse binding seems to be the answer (see Reply from @NickL).

+9
Oct 28
source share

In short: you cannot . Android simply does not support it (this is more due to the USB standard and fraud than the AOSP error).




So, to solve the problem, you should:

  • Get an online form from another source

    Perhaps you can have an Ethernet connection?

  • Connect the Internet from the phone to your netbook in another way

    You cannot use a wireless cable because your Wi-Fi adapter is broken, but maybe you can bind it using bluetooth?

  • Debugging your phone differently

    Maybe you can use an android app like aLogCat or the like?




But in hand, sorry, you can’t bind usb from phone to netbook while debugging usb from netbook. Your success will depend on your ability to find an alternative solution.

+3
Oct 30 '12 at 16:11
source share

You can use bluetooth tethering to connect to the Internet and debug via USB.

+1
Nov 01 '12 at 10:28
source share

I would like to indicate that I am using PDANet for a USB-tied Internet to dial this answer, while I am also debugging an Android application on the same phone through Eclipse Juno. Not sure which side fixed it, but it's awesome!

As to why Eclipse does not see your device, standard troubleshooting tips apply. Be sure to enable USB debugging and unknown sources / third-party applications, try restarting, check usb drivers, update drivers / eclipse ..

+1
Nov 02
source share

Yes it is possible. There, the hack is available at the links below.

Source : HowToGeek , Stack Overflow

0
Nov 01
source share

If I understand your question correctly, do you want to bind your phone to a computer via USB and use the (Internet) connection of your PC + still get logcat output?

Then yes, it is certainly possible. Testing - this is when your computer uses the Internet of your phone, on the contrary - is called a reverse connection. Your device must be implemented, then you can use this application to reverse link.

When you connect your phone to the computer via USB, you click 'connect' in the application. He then installs an application on your phone that handles the modem's reverse connection. It works, sometimes I have to click "check DNS" while it connects to make it work .. but it works! USB debugging also works in the usual way.

0
Nov 02
source share

In fact, you can connect adb to your phone via TCP. You may need an embedded phone for this, although

0
Nov 02 '12 at 15:38
source share

you can use

  • Wi-Fi connection - for connecting to the Internet
  • Connect USB to adb.
0
Jun 03 '15 at 14:30
source share



All Articles