当前位置: 首页 > news >正文

莱芜网站优化杭州购物网站建设

莱芜网站优化,杭州购物网站建设,太原做响应式网站设计,为什么要网站备案目录 一、TCP客户端UI 1、UI展示 2、xml代码 二、TCP客户端数据发送 三、TCP客户端数据接收 一、TCP客户端UI 1、UI展示 2、xml代码 ?xml version1.0 encodingutf-8? RelativeLayout xmlns:androidhttp://schemas.android.…目录 一、TCP客户端UI 1、UI展示 2、xml代码 二、TCP客户端数据发送 三、TCP客户端数据接收 一、TCP客户端UI 1、UI展示 2、xml代码 ?xml version1.0 encodingutf-8? RelativeLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/toolsandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:background#59b1eftools:context.MainActivity4Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:idid/btn_client_sendandroid:text发送android:textSize25spandroid:layout_marginTop20dpandroid:layout_centerHorizontaltrueandroid:onClickbtn_client_send_clicked /TextViewandroid:idid/text_viewandroid:layout_widthmatch_parentandroid:textSize30spandroid:layout_height300dpandroid:layout_belowid/btn_client_sendandroid:layout_marginTop20dpandroid:layout_marginLeft20dpandroid:layout_marginRight20dpandroid:background#ffffff /Buttonandroid:layout_widthwrap_contentandroid:layout_heightwrap_contentandroid:idid/btn_startandroid:text开始android:layout_belowid/text_viewandroid:textSize25spandroid:layout_marginTop20dpandroid:layout_centerHorizontaltrueandroid:onClickbtn_start_clicked /TextViewandroid:idid/text_view2android:layout_widthmatch_parentandroid:textSize30spandroid:text0android:layout_height100dpandroid:layout_belowid/btn_startandroid:layout_marginTop20dpandroid:layout_marginLeft20dpandroid:layout_marginRight20dpandroid:background#ffffff //RelativeLayout 二、TCP客户端数据发送 public void Client_SendMessage(){try {Socket client new Socket(192.168.124.6,8089);OutputStream out client.getOutputStream();out.write(meng.getBytes());} catch (IOException e) {throw new RuntimeException(e);}}public void btn_client_send_clicked(View v){new Thread(new Runnable() {Overridepublic void run() {Client_SendMessage();}}).start();} 三、TCP客户端数据接收 textView1 findViewById(R.id.text_view); textView1.setText(数据接收框); textView2 findViewById(R.id.text_view2); textView2.setText(0); new Thread(new Runnable() {Overridepublic void run() {while (true){try {Socket client new Socket(192.168.124.6,8089);int len;InputStream in client.getInputStream();byte[] data new byte[128];len in.read(data);String str new String(data,0,len);Message msg2 new Message();Bundle b new Bundle();b.putString(msg, str);msg2.setData(b);h2.sendMessage(msg2);} catch (IOException e) {throw new RuntimeException(e);}}}}).start(); h2 new Handler(){Overridepublic void handleMessage(Message msg2) {// TODO Auto-generated method stubsuper.handleMessage(msg2);Bundle b msg2.getData();String string b.getString(msg);textView1.setText(string);}};
http://www.zqtcl.cn/news/960382/

相关文章:

  • led网站建设方案模板做炒作的网站
  • 注册网站免费注册qq邮箱seo服务销售招聘
  • 翻译做网站php做网站好学吗
  • 网站模板 seo响应式网站内容布局
  • 石家庄住房和城乡建设部网站企业自助建站系统怎么建
  • 建设企业网站都需要啥网站开发 自我评价
  • 购物网站主页怎么做网站建设的优势何江
  • 宿州网站建设多少钱广西壮族自治区医保网上服务大厅
  • 宾馆酒店 网站模板wordpress手动获取相关文章
  • 荆州网站开发在线推广网站的方法
  • 可以查企业的网站网站建设的外国文献
  • 什么网站可以做相册视频企业网站开发时间
  • 德州市建设小学网站精品网站建设费用
  • 云主机可以做几个网站wordpress 自动发布
  • python网站开发简单吗小程序开发定制北京公司
  • 做网站什么都不懂 怎么做wordpress10款音乐插件
  • 何使网站的页面结构更为合理建用vs2013做网站案例
  • 帮人做空间网站怎么赚钱静态网站怎么维护
  • 3d网站带后台下载深圳建站公司设计深业集团
  • 上海人才中心网站电脑培训班
  • 桂林网站建设服务电话网页开发基础
  • 企业型网站建设策划网站案例模板
  • 怎么做产品网站wordpress ajax form
  • 智能建站设计开发电子商务网站的主流语言
  • 大型建站公司是干嘛的北京最富裕的三个区
  • 深圳网站建设设计公司苏州营销网站建设公司排名
  • 网站h1标签的应用漯河网站关键词优化
  • 企业做推广哪些网站比较好环球资源网官方网站
  • 没有网站如何做落地页城市门户网站建设
  • 网易梦幻西游手游官方网站下载制作网站谁家做的好