通用工具类
xuyangsdkb
这个作者很懒,什么都没留下…
展开
-
通用工具类-异步加载图片&缓存提取
public class AsyncImageLoader { //SoftReference是软引用,是为了更好的为了系统回收变量 private HashMap> imageCache; public AsyncImageLoader() { imageCache = new HashMap>(); } public Draw原创 2012-07-21 20:53:01 · 285 阅读 · 0 评论 -
通用工具-Time时间转换类
public class TimeUtil { public static String converTime(long timestamp){ long currentSeconds = System.currentTimeMillis()/1000; long timeGap = currentSeconds-timestamp;//与现在时间相差秒数 String原创 2012-07-21 20:49:26 · 381 阅读 · 0 评论 -
Andorid工具类-图片处理工具类
public class ImageUtil { public static InputStream getRequest(String path) throws Exception { URL url = new URL(path); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); con原创 2012-07-21 20:58:51 · 313 阅读 · 0 评论 -
通用工具类-Base64Encoder加密
public class Base64Encoder { private static final char last2byte = (char) Integer .parseInt("00000011", 2); private static final char last4byte = (char) Integer .parseInt("00001111", 2); priv转载 2012-07-21 20:59:34 · 472 阅读 · 0 评论