-
基于多属性的加密算法
加密技术是一种众所周知的技术,它可以在因特网和因特网上提供多媒体内容传输的安全性
- 2022-02-04 09:06:58下载
- 积分:1
-
listView
android的LiseView,可以添加和删除list。(Android LiseView of, can add and delete list.
)
- 2012-04-22 08:40:50下载
- 积分:1
-
android-quiz-template-master
android app code for quiz app. android app code for quiz app.
- 2018-01-18 01:57:10下载
- 积分:1
-
调试发现的
应用背景那个好的代码应用背景:(最少50个字,好的背景说明会得到你更多的钱)关键技术好的代码如果是你第一次提交源代码,请先提交代码。
- 2023-03-24 03:00:04下载
- 积分:1
-
关于Ajax的聊天室
基于Ajax的聊天室,通过学习这些代码,熟悉聊天室的开发流程,掌握编写并配置字符编码过滤器的方法,掌握实时显示在线人员列表的方法,掌握实时显示聊天信息的方法,掌握退出聊天室的两种方法。
- 2022-03-24 20:20:45下载
- 积分:1
-
男人的游戏
用Java语言基础和JavaSE写的一个小游戏,窗口是用swing写的;用四个方向键控制主体躲避子弹,坚持时间越长就越厉害;
- 2022-06-27 09:41:45下载
- 积分:1
-
GifViewDemo
自定义播放gif格式的图片功能,该项目实现了Android自定义播放gif格式的图片,可以通过点击点击屏幕控制动画播放,希望能够帮到学习android开发的朋友。(Custom playback functions in GIF format pictures, the project realized Android custom play GIF format images, can through the click click the screen to control the animation playback, I hope to be able to help friends to learn Android development.)
- 2016-06-17 10:33:14下载
- 积分:1
-
nfccard
安卓NFC读写非接触IC卡是一款基于非接触IC卡的NFC应用,支持符合ISO7816—3、ISO15693和Felica等国际标准卡片的读取,能够读取的电子标签包括公交卡、银行卡、图书馆射频标贴等。NFCard可以用来读取电子钱包(主要是公交卡)中未加密的余额、交易记录、标识等信息。该软件使用了模块化设计,方便扩充支持其他特殊类型的卡片协议和指令。(Android NFC read write non-contact IC card is a NFC application based on Contactless IC card, support in line with the international standard ISO7816- 3, iso15693 and felica etc. card read, to read electronic tag includes bus card, bank card, library RF stickers and so on. NFCard can be used to read the electronic wallet (mainly public transport card) in the balance of the encryption, transaction records, identification and other information. The software uses a modular design to facilitate the expansion of support for other special types of card protocols and instructions.)
- 2016-07-05 20:12:46下载
- 积分:1
-
android ui源码
android ui源码
- 2015-06-14下载
- 积分: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