Android的USB到Java(PC) [英] Android USB to Java (PC)

查看:429
本文介绍了Android的USB到Java(PC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里寻找一个简单的方向指针。我想尝试从提交给Java程序的机器人通信。发送/接收over USB接口的数据。帮助包括API参考(如图书馆我应该考虑为Android的Java和标准的Java)或链接TUTS如果你知道任何或简单的想法。提前致谢!我contonue搜索。

I am looking for a simple direction pointer here. I am wanting to try communicating from an android tabled to a java program. send/receiving data over USB interface. Help would include API references (like libraries i should look into for both android java and standard java) or links to tuts if you know any or simple ideas. Thanks in advance! I contonue searching.

的**编辑*的 *
我还是输了。我不知道从哪里开始,所以我将重申我的问题,希望更多的答案。我期待通过USB到Android平板电脑连接到我的计算机和能够发送/接收字符串数据到一个自定义Java应用程序。我必须使用USB作为的情况将不允许蓝牙或WiFi。一个例子是一个Java(PC)应用程序发送一个x,y坐标到Android平板电脑和平板电脑绘制坐标和用户触摸屏幕和Android平板电脑发送一个x,y坐标的Java应用程序的PC。所以PC java应用程序是不是一个问题,只要在Android的Java应用程序,我可以用一个Arduino做到这一点。

**EDIT** I am still lost. I don't know where to begin so I will restate my question in hopes for more answers. I am looking to connect an android tablet to my computer through usb and be able to send/receive string data to a custom java application. I have to use usb as the situation will not permit Bluetooth or wifi. An example would be a java(PC) application that sends an x,y coordinate to an android tablet, and the tablet draws that coordinate and a user touches the screen and the android tablet sends an x,y coordinate to the java application to the pc. I can do this with an arduino so the PC java application is not an issue, just the android java app.

推荐答案

一个良好的开端将是的 USB主机和配件在Android开发人员指南指南。

A good place to start would be the "USB Host and Accessory" guide in the Android developer guides.

这篇关于Android的USB到Java(PC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆