- 博客(4)
- 资源 (5)
- 收藏
- 关注
原创 解压zip文件到当前目录
public static boolean unZipFile(String pathName, String toPath) { File desFile = null; try { Log.v("unZipFile", "unzip start"); @SuppressWarnings("resource") ZipFile zf = new ZipFile(pathName);
2017-02-04 16:38:33
2780
原创 隐藏标题栏和底部操作栏,可上下滑动显示
@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus) { View decorView = that.getWindow().getDecorView(); decorView.setSystemUiVis
2017-02-04 16:34:00
696
原创 计算文件的 MD5 值
// 计算文件的 MD5 值 private String getFileMD5(File file) { if (!file.isFile()) { return null; } MessageDigest digest = null; FileInputStream in = null; byte buffer[] = new byte[8192]; int len; t
2017-02-04 16:30:33
338
原创 Java实现文件重命名
/** * 文件重命名 * * @param path * 文件目录 * @param oldname * 原来的文件名 * @param newname * 新文件名 */ public static void renameFile(String oldPathName, String newPathName) { if (!oldPathName.equals(newPathName)) {//
2017-02-04 16:27:12
410
USB通信(USB打印) and全局捕获异常Log信息
2017-02-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人