-
json应用jar包
利用json处理相关数据的所有相关jar包,比较完整。
利用json处理相关数据的所有相关jar包,比较完整。
利用json处理相关数据的所有相关jar包,比较完整。
利用json处理相关数据的所有相关jar包,比较完整。
- 2022-12-07 19:45:03下载
- 积分:1
-
Java源码人事档案管理
资源描述
免费欢迎共享,欢迎下载,你的下载就是对我最大的支持,Java源码,SSH框架,线程技术各种成熟学习
。免费欢迎共享,欢迎下载,你的下载就是对我最大的支持,Java源码,SSH框架,线程技术各种成熟学习
- 2023-05-18 19:55:03下载
- 积分:1
-
our_disk网盘开发包
个人 原创,our_disk网盘,包含上传、下载、删除等功能,支持多种文件类型,界面风格清新友好。体积小巧,使用方便。
- 2022-03-09 17:28:26下载
- 积分:1
-
cmpp源码接口实现
使用java技术,比较全面的写出CMPP协议短信接口的实现,内容比较详细,对初学者的帮助很大,对各种类和方法封装的比较完善,希望对初学者有用。
- 2022-02-15 03:46:05下载
- 积分:1
-
好看的加载按钮界面
好看的加载按钮界面
- 2016-05-31下载
- 积分:1
-
LDA主题模型
retriever先是对中文内容进行抽取与分词,LDA部分代码再根据LDA主题模型对中文网页进行主题提取,最后讲中文文本显示为几个主题的分布。
- 2022-01-28 08:31:23下载
- 积分:1
-
MyApplication
说明: Activity通知Fragment采用观察者模式,fragment之间通讯另建Function接口(Activity notifies fragment to adopt observer mode, and a function interface is established for communication between fragments)
- 2020-10-13 10:51:34下载
- 积分:1
-
NFC
说明: 基于非接触IC卡的NFC应用,支持符合ISO7816—3、ISO15693和Felica等国际标准卡片的读取,能够读取的电子标签包括公交卡、银行卡、图书馆射频标贴等。(The NFC application based on non-contact IC card supports the reading of international standards such as ISO7816-3, ISO15693, and Felica. The electronic tags that can be read include bus cards, bank cards, and radio frequency tags for libraries.)
- 2020-05-05 23:02:05下载
- 积分:1
-
Android-MMS
实现Android 彩信发送,实现Android 自定义彩信发送(To Android MMS sent to achieve Android custom MMS sent)
- 2013-04-12 15:45:29下载
- 积分:1
-
Android tcp通讯学习用
核心代码:package com.Test;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.util.Log;import android.app.Activity;import android.view.Menu;import android.widget.Button;import android.view.View;import android.view.View.OnClickListener;import java.io.BufferedInputStream;import java.io.InputStream;import java.io.OutputStream;import java.io.IOException;import java.io.UnsupportedEncodingException;import java.io.InputStreamReader;import java.io.BufferedReader;import java.io.PrintWriter;import java.io.Reader;import java.net.Socket;import java.net.ServerSocket;import java.net.UnknownHostException;import android.view.TextureView;import android.widget.EditText;import java.lang.String;import java.lang.Thread;public class MainActivity extends Activity implements OnClickListener{ private Button m_btn; private Button m_sendbtn; private ServerSocket mySerSocket; private Socket clientSocket; private EditText m_edit; private String line; boolean conn = true; private Socket accSocket; private static final String Host = "10.0.2.2"; private static final int Port = 12000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); m_btn = (Button)findViewById(R.id.button1); m_sendbtn = (Button)findViewById(R.id.button2); m_edit = (EditText)findViewById(R.id.editText1); //m_btn.setOnClickListener(this); m_btn.setOnClickListener(new ReceiverListener()); m_sendbtn.setOnClickListener(this); //Socket clientSocket = new Socket(Host, Port); } class ReceiverListener implements OnClickListener { private ReceiveThread mReceiveThread = null; private boolean stop = true; private Handler mHandler = null; public void onClick(View v) { try { if(clientSocket == null) { clientSocket = new Socket(Host, Port); } // InputStream myInputStream = clientSocket.getInputStream();// // //BufferedReader in = new BufferedReader(new InputStreamReader(myInputStream));//// byte [] buffer = new byte[myInputStream.available()]; //int temp = 0; //String strMsg = in.readLine(); // myInputStream.read(buffer);// // // String strMsg = new String(buffer);// // m_edit.setText(strMsg);// while ((temp = myInputStream.read(buffer)) != -1)// {// m_edit.setText(new String(buffer, 0, temp));//// } mReceiveThread = new ReceiveThread(clientSocket); stop = false; mReceiveThread.start(); } catch (IOException e) { e.printStackTrace(); } //消息处理 mHandler = new Handler() { public void handleMessage(Message msg) { m_edit.setText((msg.obj).toString()); } }; } private class ReceiveThread extends Thread { private InputStream inStream = null; private byte[] buf; private String str = null; ReceiveThread(Socket s) { try { this.inStream = s.getInputStream(); } catch(IOException e) { e.printStackTrace(); } } public void run() { while(!stop) { this.buf = new byte[512]; try { this.inStream.read(this.buf); } catch(IOException e) { e.printStackTrace(); } try { this.str = new String(this.buf, "GB2312").trim(); } catch(UnsupportedEncodingException e) { e.printStackTrace(); } Message msg = new Message(); msg.obj = this.str; mHandler.sendMessage(msg); } } } } public void onClick(View v) {// if (v.getId() == R.id.button1)// {// new Thread()// {// public void run()// {// try // {// if(clientSocket == null)// {// clientSocket = new Socket(Host, Port);// } // InputStream myInputStream = clientSocket.getInputStream();// // BufferedReader in = new BufferedReader(new InputStreamReader(myInputStream));//// byte [] buffer = new byte[1024 * 4];//// int temp = 0;// // String strMsg = in.readLine();// // //myInputStream.read(buffer);// // //String strMsg = new String(buffer);// // m_edit.setText(strMsg);////// while ((temp = myInputStream.read(buffer)) != -1)//// {//// m_edit.setText(new String(buffer, 0, temp));//////// }// // }// catch (IOException e)// {// e.printStackTrace();// }// }// }.start();// // } if(v.getId() == R.id.button2) { new Thread() { public void run() { try { if(clientSocket == null) { clientSocket = new Socket(Host, Port); } //inputStream clientInputStream = clientSocket. String msg = "RESET-SHOW"; //InputStream clientInputStream = clientSocket.getInputStream(); //BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); //BufferedReader br = new BufferedReader(); //line = br.readLine(); OutputStream clientOutputStream = clientSocket.getOutputStream(); byte buffer[]=msg.getBytes(); clientOutputStream.write(buffer); clientOutputStream.flush(); //int temp = 0; // PrintWriter out = new PrintWriter(clientOutputStream);// // out.println("Serer Message: " msg); } catch(IOException e) { e.printStackTrace(); } } }.start(); } }private Reader InputStreamReader() { // TODO Auto-generated method stub return null; }// private Handler handler = new Handler()// {// public void handleMessage(Message msg)// {// super.handleMessage(msg);// //处理UI// m_edit.setText("Finish");// Log.i("PDA", "Finish");// // }// }; @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; }}
- 2014-08-18下载
- 积分:1