-
基于Android的UDP通信demo
制作了一个基于安卓的UDP通信demo,作为初学者学习安卓以及UDP通信相关知识提供帮助
- 2022-10-07 00:20:03下载
- 积分:1
-
学校管理系统
学校管理系统也在协助机构在办学学术礼节性的 java 开发中生成程序它产生学生出勤列表,报告形式
- 2023-06-05 02:05:05下载
- 积分:1
-
SpnOverride
private HashMap Source Code for Andriod.
- 2013-12-13 14:51:23下载
- 积分:1
-
非抢占式SJF
此 java 代码实现非抢占式SJF。最短作业优先 (SJF)另一个名字是短流程下的算法更好的名字有可能第一个最短的下一步 CPU 爆假设我们知道的所有准备就绪进程的下一个 CPU 突发长度cpu 突发长度的过程将继续执行,如果给定处理器和不被抢占的时间长度SJF 估计基于最近 cpu 阵阵的长度下爆裂的长度用默认值开始预期突发长度为一个新的过程假设该时间间隔是编号的 1,为第一个 cpu 破灭,第二个 cpu 爆裂等 2。默认长度是第一个 cpu 突发时间的预期长度 e (1)不同于其他的调度算法,该算法假定有关 process 突发长度的信息存储之间的时期,当它是准备好了。符合效率的需要,只有极少量的信息存储和执行只是一个简单的计算我们可以重量以前的预期 (代表所有先前爆发) 和最近爆任何两个的重量,如添加达 1,为最新的 cpu 爆裂的实际时间说 0.5 和 0.5,或此前的预期为 0.9 0.1
- 2022-03-23 10:49:22下载
- 积分:1
-
MyGatt
BLE开发所需要的知识,通过官方demo,我们会发现很多service,点击service后,每个service下面是Characteristic,每个service和Characteristic都对应一个唯一的UUID。所以,在做BLE时候,首先你应该找出你的蓝牙外围设备uuid,不然会很头疼,这个UUID也可能是硬件给你的,也可以你自己试出来,当然自己试出来是个很烦的过程。自己试的方法就是根据demo,加上一份读写的协议,然后,排着点击,显示出来的蓝牙列表进行测试,看是否和协议对应。另外,BluetoothLeService类不用做太多的更改。(BLE develops the knowledge we need. Through official demo, we will find many service. After clicking service, every service is Characteristic, each service and Characteristic correspond to a unique UUID. So, when making BLE, first you should find out your Bluetooth peripheral device UUID, otherwise it will be very headache. This UUID may also be hardware for you, or you can try it out yourself, of course, trying out it yourself is a very boring process. The way to do it is to add a read and write protocol based on demo,then test the Bluetooth list displayed by clicking on it to see if it corresponds to the protocol. In addition, the BluetoothLeService class does not have to make too many changes.)
- 2018-02-07 11:55:52下载
- 积分:1
-
图书管理系统
图书馆管理系统java代码,包括创建数据库的SQL语句
- 2022-07-11 12:50:21下载
- 积分:1
-
网络获取图片(缓存)
package com.hsx.imageloader.adapter;import android.content.Context;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import android.widget.ImageView;import android.widget.TextView;import com.hsx.imageloader.listener.AnimateFirstDisplayListener;import com.nostra13.universalimageloader.core.DisplayImageOptions;import com.nostra13.universalimageloader.core.ImageLoader;import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;import com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer;import com.hsx.imageloader.R;public class ItemAdapter extends BaseAdapter {DisplayImageOptions options;private ImageLoadingListener animateFirstListener = new AnimateFirstDisplayListener();String[] imageUrls;Context context;public ItemAdapter(String[] imageUrls, Context context) {super();this.imageUrls = imageUrls;this.context = context;options = new DisplayImageOptions.Builder().showStubImage(R.drawable.ic_launcher)//设置图片在下载期间显示的图片.showImageForEmptyUri(R.drawable.ic_launcher)//设置图片Uri为空或是错误的时候显示的图片.showImageOnFail(R.drawable.ic_launcher)//设置图片加载/解码过程中错误时候显示的图片.cacheInMemory(true)//是否緩存都內存中.cacheOnDisc(true)//是否緩存到sd卡上.displayer(new RoundedBitmapDisplayer(20)).build();}private class ViewHolder {public TextView text;public ImageView image;}@Overridepublic int getCount() {return imageUrls.length;}@Overridepublic Object getItem(int position) {return position;}@Overridepublic long getItemId(int position) {return position;}@Overridepublic View getView(final int position, View convertView, ViewGroup parent) {final ViewHolder holder;if (convertView == null) {LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);convertView = inflater.inflate(R.layout.item_list_image, parent, false);holder = new ViewHolder();holder.text = (TextView) convertView.findViewById(R.id.text);holder.image = (ImageView) convertView.findViewById(R.id.image);convertView.setTag(holder);} else {holder = (ViewHolder) convertView.getTag();}holder.text.setText("Item " (position 1));// ImageLoaderImageLoader imageLoader = ImageLoader.getInstance();imageLoader.displayImage(imageUrls[position], holder.image, options, animateFirstListener);return convertView;}}
- 2015-03-05下载
- 积分:1
-
微博社会化 sdk 实例源码下载demo
微博社会化 sdk 实例源码下载demo
- 2015-04-15下载
- 积分:1
-
droptea
说明: 仿qq聊天界面,阻尼效果,拖动超出屏幕后自动弹回。(Imitate QQ chat interface, damp effect, drag out of the screen automatically rebound.)
- 2020-06-21 15:40:02下载
- 积分:1
-
Android 经典蓝牙(Classic Bluetooth)和低功耗蓝牙(BLE)
从蓝牙4.0开始包含两个蓝牙芯片模块:传统/经典蓝牙模块(Classic Bluetooth,简称BT)和低功耗蓝牙(Bluetooth Low Energy,简称BLE) 经典蓝牙是在之前的蓝牙1.0,1.2,2.0 EDR,2.1 EDR,3.0 EDR等基础上发展和完善起来的, 而低功耗蓝牙是Nokia的Wibree标准上发展起来的,是完全不同两个标准。1.经典蓝牙模块(BT)泛指蓝牙4.0以下的模块,一般用于数据量比较大的传输,如:语音、音乐、较高数据量传输等。经典蓝牙模块可再细分为:传统蓝牙模块和高速蓝牙模块。传统蓝牙模块在2004年推出,主要代表是支持蓝牙2.1协议的模块,在智能手机爆发的时期得到广泛支持。高速蓝牙模块在2009年推出,速率提高到约24Mbps,是传统蓝牙模块的八倍。 传统蓝牙有3个功率级别,Class1,Class2,Class3,分别支持100m,10m,1m的传输距离2.低功耗蓝牙模块(BLE)泛指蓝牙4.0或更高的模块,蓝牙低功耗技术是低成本、短距离、可互操作的鲁棒性无线技术,工作在免许可的2.4GHz ISM射频频段。因为BLE技术采用非常快速的连接方式,因此平时可以处于“非连接”状态(节省能源),此时链路两端相互间只是知晓对方,只有在必要时才开启链路,然后在尽可能短的时间内关闭链路(每次最多传输20字节)。低功耗蓝牙无功率级别,一般发送功率在7dBm,一般在空旷距离,达到20m应该是没有问题
- 2020-12-07下载
- 积分:1