会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海之涯 - 不变的追求伴随着停不下的脚步!
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
27
下一页
2015年7月15日
String类型 16进制编码解码
摘要: 1 private static String hexString="0123456789ABCDEF"; 2 3 public static String strEncode10_16(String str10) { 4 byte[] bytes=str10.getBytes(...
阅读全文
posted @ 2015-07-15 14:35 海之涯2008
阅读(691)
评论(0)
推荐(0)
2015年6月17日
系统编译时的条件选择
摘要: 这个函数的实现就简单多了。合法的编译类型定义在数组VARIANT_CHOICES中,并且它只有三个值user、userdebug和eng。其中,user表示发布版本,userdebug表示带调试信息的发布版本,而eng表标工程机版本。在源码中编译APK时,使用-o=user/-o=eng 时各有不同...
阅读全文
posted @ 2015-06-17 14:39 海之涯2008
阅读(159)
评论(0)
推荐(0)
16进制字符串的相关转换
摘要: public static byte uniteBytes(byte src0, byte src1) { byte _b0 = Byte.decode("0x" + new String(new byte[] { src0 })) .byteValue(); _b0 = (byte) (...
阅读全文
posted @ 2015-06-17 14:28 海之涯2008
阅读(185)
评论(0)
推荐(0)
HashMap遍历
摘要: Map map = new HashMap(); Iterator iter = map.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); Object key...
阅读全文
posted @ 2015-06-17 14:25 海之涯2008
阅读(153)
评论(0)
推荐(0)
JSON数据解析
摘要: final String testJson = " {\"aa\":\"06900bec8f3e93b7\","+ "\"bb\":\"33\",\"cc\":\"300\",\"dd\":2,\"ee\":3} "; JSONObject obj = new JSONObject(testJson
阅读全文
posted @ 2015-06-17 14:19 海之涯2008
阅读(130)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
27
下一页
公告