-
Day6_one
安卓的基础图像动作,附带matrix,带有旋转、错切、平移等多功能(Action of the the Andrews basis of image, incidental matrix, with rotating the wrong cut, pan, such as multi-functional)
- 2012-10-19 16:08:18下载
- 积分:1
-
运算放大器设计与应用.pdf
运算放大器设计与应用.pdf
- 2020-03-03下载
- 积分:1
-
快手刷粉丝软件
资源描述
快手粉丝 播放量 双击 评论 各种刷 喜欢的朋友下载试试真的很好用的
- 2023-03-18 06:20:04下载
- 积分:1
-
android 个人通讯录示例源码(入门级)
实验是做一个个人通讯录,实现有一个登陆界面,可修改登陆密码,实现手机通讯录的基本功能,包括添加手机联系人,查询手机联系人,删除手机联系人,导入联系人,以及拨打电话、发送短信、发送邮件等功能。以java语言为主体,xml布局,结合Android移动开发平台等实现对安卓手机通讯录的基本操作,做到能够完好的运行。
- 2019-04-18下载
- 积分:1
-
android 百度定位实例
简单定位
- 2015-06-23下载
- 积分:1
-
java聊天程序(私聊+公聊+截图+传送文件)
这是一个用java语言实现的聊天程序,具备私聊,公聊,截图,传送文件等功能,还有界面,注释也挺详细,方便大家参考。
- 2022-05-18 18:41:16下载
- 积分: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
-
扫雷应用程序开发
设计扫雷游戏时,主要编写了7个源文件:MineGame.java, MineArea.java, BlockView.java, LayMine.java, ShowRecord.java, Record.java. MineGame.java:主要负责创建扫雷游戏主窗口; MineArea.java:表示扫雷区域; Block.java:雷区“方块”的封装; BlockView.jav:为Block对象提供视图; LayMines.java: 使用随机算法指定哪些是雷,哪些不是雷; Record.java: 扫雷成功时,用于保护用户的成绩到文件; ShowRecord.java: 当用户查看扫雷最好成绩时,用于提供读取文件数据的界面
- 2022-04-28 08:35:37下载
- 积分:1
-
android 魔幻笔程序
资源描述本程序主要是运行在android上面的魔幻笔程序,里面包含有用HLSL编写的脚本语言,该程序同时包含有使用OpenGL技术进行图片的渲染;如何使用frameBuff来完成FBO操作等
- 2022-09-21 09:25:06下载
- 积分:1
-
java面向对象测试-学生管理系统
资源描述面向对象编程试题
编程实现如下功能:
通过继承学生类(自定义学生类,抽取满足题目要求的学生属性进行定义),编写英语系、计算机系、文学系三个系别的学生类。各系有以下成绩:
? 英语系:演讲、期末考试、期中考试;
? 计算机系:操作能力、英语写作、期中考试、期末考试;
? 文学系:演讲、作品、期末考试、期中考试。
各系总分评测标准如下:
? 英语系:演讲 50%
期末考试 25%
期中考试 25%
? 计算机系:操作能力 40%
英语写作 20%
期末考试 20%
期中考试 20%
? 文学系:演讲 35%
作品 35%
&n
- 2022-08-19 19:21:52下载
- 积分:1