- 博客(26)
- 资源 (7)
- 收藏
- 关注
转载 matlab画对数坐标图
plot(x,y) x 轴和y 轴均为线性刻度 loglog(x,y) x 轴和y 轴均为对数刻度semilogx(x,y) semilogx(…) is the same as PLOT(…), except a logarithmic (base 10) scale is used for the X-axis. x 轴为对数刻度,y 轴为线性刻度semilogy(x,y) se
2015-11-27 19:46:21
10097
转载 android获得屏幕高度和宽度
android获取屏幕的高度和宽度用到WindowManager这个类,两种方法: 1、WindowManager wm = (WindowManager) getContext() .getSystemService(Context.WINDOW_SERVICE); int width = wm.
2015-10-12 19:45:09
382
转载 SQLite 支持的数据类型
Sqlite3支持的数据类型 :NULL、INTEGER、REAL、TEXT、BLOB 但实际上,sqlite3也接受如下的数据类型: smallint 16 位元的整数。 interger 32 位元的整数。 decimal(p,s) p 精确值和 s 大小的十进位整数,精确值p是指全部有几个数(digits)大小值,s是指小数点後有几位数。如果没有特别指定,则
2015-09-11 21:01:08
1294
原创 java String的几个函数
String.trim( ) :去掉首尾空格 str.replace(” “, “”):去掉所有空格,包括首尾、中间。replaceAll(” “,”“) :去掉所有空格 如: String str = ” hell o “; String str2 = str.replaceAll(” “, “”);
2015-09-09 18:12:32
365
转载 监听EditText的变化
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://liangruijun.blog.51cto.com/3061169/729505使用EditText的addTextChangedListener(TextWatcher watcher)方法对EditText实现监听,TextWatcher是一个接口类,所以必须
2015-09-08 20:50:04
360
转载 MySQL中显示乱码的问题
用Java向MySQL中插入数据,数字英文都没问题,中文是乱码。看了好多乱七八糟的方法,最后用的这个方法解决:将数据库表中多的字段的类型设置成blob或者是tinyblob。将数据库的表设置为utf8,连接数据库的时候:String url = "jdbc:mysql://127.0.0.1:3306/studatabase?useUnicode=true&characterEncod
2015-09-07 19:18:33
418
转载 报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library
报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 解决方法: Project -> Properties -> libraries, 先remove掉J
2015-08-25 12:06:43
445
翻译 安卓蓝牙API(3)
查找设备: 以下部分描述如何查找已经配对的设备或者发现附近的允许被发现的新设备。 一、列出已经配对的设备 使用getBondedDevices()方法,它将返回一些列已经配对好的蓝牙设备BluetoothDevices. 比如:Set<BluetoothDevice>pairedDevices = mBluetoothAdapter.getBondedDevices(); if(pa
2015-03-08 20:05:53
467
转载 The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)
The connection to adb is down, and a severe error has occured(Android模拟器端口被占用)
2015-02-25 23:13:09
311
转载 在Android资源文件夹中添加一个新的图片资源
刚刚看了一下一个帧布局的简单Android示例,纠结了半天不知道如何将图片加到resource中的drawable中去。 比如在一个TestDemo的Res/drawable文件夹中,新添加一张图片资源要如何添加。 我直接将图片复制到bin\res\drawable-hdpi或者bin\res\drawable-mdpi中去,然后在eclipse中刷新图片仍然不显示。
2015-02-20 13:11:33
687
原创 安卓蓝牙学习1
作为一个小白,为做项目自学安卓才10天,要做出一个安卓app,手机蓝牙从stm32上的蓝牙读出数据,并画波形图真是不容易啊。加油,干干干!! 学习来源: http://www.apkbus.com/forum.php?mod=viewthread&tid=140138一、如何利用android平台提供的蓝牙API去实现蓝牙设备之间的通信? 蓝牙设备之间的通信主要包括了四个步骤: 1.设置蓝牙
2015-02-19 14:24:29
838
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人