代码改变世界

随笔档案-2015年02月

Android中将输入流转换成String

2015-02-26 14:38 by 一切尽在掌握, 904 阅读, 收藏,
摘要: public String parseStringFromEntity(InputStream input) throws IllegalStateException, IOException { String result = null; BufferedReader reader = ne... 阅读全文

Android中通过get请求获取InputStream

2015-02-26 14:34 by 一切尽在掌握, 1768 阅读, 收藏,
摘要: public InputStream getStream(String url) throws IllegalStateException, IOException { HttpResponse response = null; int timeoutConnection = 10000; ... 阅读全文

使用到的工具类

2015-02-13 19:13 by 一切尽在掌握, 122 阅读, 收藏,
摘要: 1、生成MD5 public static String get32MD5(String s) { char hexDigits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'... 阅读全文