资源简介
AndroidUSBCommunication
代码片段和文件信息
import java.io.IOException;
import java.io.objectInputStream;
import java.io.objectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
public class USBClient
{
public static void main(String[] args) throws IOException
{
Socket echoSocket = null;
objectOutputStream out = null;
objectInputStream in = null;
String message = ““;
// Create socket connection with host address as localhost and port number with 38300
try
{
echoSocket = new Socket(“localhost“ 38300);
out = new objectOutputStream(echoSocket.getOutputStream());
out.flush();
in = new objectInputStream(echoSocket.getInputStream());
// Communicating with the server
try
{
message = (String) in.readobject();
System.out.println(“server>“ + message);
}
catch (Cl
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-09-07 12:57 Android-USB-Communication-master\
文件 255 2012-09-07 12:57 Android-USB-Communication-master\ReadMe.txt
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBClient\
文件 295 2012-09-07 12:57 Android-USB-Communication-master\USBClient\.classpath
文件 368 2012-09-07 12:57 Android-USB-Communication-master\USBClient\.project
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBClient\.settings\
文件 617 2012-09-07 12:57 Android-USB-Communication-master\USBClient\.settings\org.eclipse.jdt.core.prefs
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBClient\bin\
文件 2441 2012-09-07 12:57 Android-USB-Communication-master\USBClient\bin\USBClient.class
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBClient\src\
文件 1400 2012-09-07 12:57 Android-USB-Communication-master\USBClient\src\USBClient.java
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\
文件 281 2012-09-07 12:57 Android-USB-Communication-master\USBComm\.classpath
文件 810 2012-09-07 12:57 Android-USB-Communication-master\USBComm\.project
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\.settings\
文件 86 2012-09-07 12:57 Android-USB-Communication-master\USBComm\.settings\org.eclipse.core.resources.prefs
文件 134 2012-09-07 12:57 Android-USB-Communication-master\USBComm\.settings\org.eclipse.ltk.core.refactoring.prefs
文件 743 2012-09-07 12:57 Android-USB-Communication-master\USBComm\AndroidManifest.xm
文件 19 2012-09-07 12:57 Android-USB-Communication-master\USBComm\ReadMe.md
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\
文件 743 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\AndroidManifest.xm
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\
目录 0 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\
文件 333 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\BuildConfig.class
文件 322 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\R$attr.class
文件 382 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\R$drawable.class
文件 435 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\R$id.class
文件 376 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\R$layout.class
文件 477 2012-09-07 12:57 Android-USB-Communication-master\USBComm\bin\classes\com\demo\usb\R$string.class
............此处省略28个文件信息
相关资源
- 仿赶集生活android客户端的介绍启动界
- android不错的下拉刷新效果(支持各种
- android 应用启动的时弹出的悬浮带有关
- android 左右侧滑抽屉菜单
- android 点赞+1效果
- android画图
- android 手机上调用插件打开网页
- android viewpager 动态加载数据
- Android登陆弹出界面
- android 线性布局新手入门
- android 移动PathMenu 菜单
- 用于记录女生生理期,以便女生自我
- android 自定义radiogroup实现-listview+rad
- 安卓图表引擎AChartEngine
- android 获取联系人信息
- android 自定义Switch控件 (兼容低版本
- android 模拟qq发送表情功能
- Android webView和js交互的Demo
- andriod滚轮选择生日
- android 友推分享
- android SDK 离线版chm文档(含大量)
- android listview实现复选框(checkboxlist)
- android EditText加减demo
- android 管理
- 书籍《精通android游戏开发》pdf
- android ExpandableTextView
- android Imageloader 显示网络图片 源码
- android 菜单键选择背景颜色
- android 仿html table布局可横向 纵向滚动
- android 图片高斯图片模糊算法
评论
共有 条评论