摘要: 如果是 “字符串数组” 转 “字符串”,只能通过循环,没有其它方法 String[] str = {"abc", "bcd", "def"};StringBuffer sb = new StringBuffer();for(int i = 0; i < str.length; i++){ sb. append(str[i]);}String s = sb.toString();如果是 “字符数组” 转 “字符串” 可以通过下边的方法 char[] data={'a','b','c' 阅读全文
posted @ 2014-01-11 16:21 爱编程hao123 阅读(886) 评论(0) 推荐(0) 编辑
摘要: 一般是so文件加载出了问题添加SerialPort_h.sh内容#!/bin/shjavah -o SerialPort.h -jni -classpath ../src com.example.dlwx.SerialPort再重新生成试试 阅读全文
posted @ 2014-01-11 15:36 爱编程hao123 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 在 values文件夹下添加baudrates.xml文件 阅读全文
posted @ 2014-01-11 11:10 爱编程hao123 阅读(237) 评论(0) 推荐(0) 编辑