简体   繁体   English

USBDevice没有启动Linux计算机

[英]USBDevice is not picking up linux computer

I'm trying to get an android app to communicate with a linux computer running ubuntu 12.04 lts using a usb cable. 我正在尝试获取一个Android应用程序以使用USB电缆与运行ubuntu 12.04 lts的linux计算机进行通信。 I'm trying to use the usbdeviceconnection class, but the usbdevice is not picking up the computer when i run it through debug mode or run the app normally. 我正在尝试使用usbdeviceconnection类,但是当我通过调试模式运行计算机或正常运行应用程序时,usbdevice无法启动计算机。 Was wondering if i had to configure the linux machine so that the app can pick up as an usb device or if there's another approach to this. 想知道我是否必须配置linux机器,以便该应用程序可以用作USB设备,或者是否有另一种方法可以做到这一点。

I was able to find a way to get this to work through port forwarding. 我能够找到一种方法来通过端口转发使它起作用。 Here's the link if anyone else if looking for a solution to a similar problem to this: http://qtcstation.com/2011/03/connecting-android-to-the-pc-over-usb/comment-page-1/#comment-4139 如果有人正在寻找与此类似的问题的解决方案,则这里是链接: http : //qtcstation.com/2011/03/connecting-android-to-the-pc-over-usb/comment-page-1/ #comment-4139

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM