gpt4 book ai didi

android - USBDevice 无法识别 Linux 计算机

转载 作者:太空宇宙 更新时间:2023-11-04 03:46:20 27 4
gpt4 key购买 nike

我正在尝试让 Android 应用程序使用 USB 电缆与运行 ubuntu 12.04 lts 的 Linux 计算机进行通信。我正在尝试使用 usbdeviceconnection 类,但是当我通过 Debug模式运行它或正常运行应用程序时,usbdevice 没有拿起计算机。想知道我是否必须配置 Linux 机器,以便该应用程序可以作为 USB 设备使用,或者是否有其他方法可以实现这一点。

最佳答案

我找到了一种通过端口转发来实现此功能的方法。如果其他人正在寻找与此类似问题的解决方案,请点击以下链接:http://qtcstation.com/2011/03/connecting-android-to-the-pc-over-usb/comment-page-1/#comment-4139

关于android - USBDevice 无法识别 Linux 计算机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28052375/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com