2016年12月2日

文件是否存在

摘要: /** * 判断SD卡上的文件是否存在 * * pathName = "/storage/sdcard0/doc/1.txt" * * @param pathName * @return */ public static boolean isFileExist(String pathName) { ... 阅读全文
posted @ 2016-12-02 16:08 随缘101 阅读(124) 评论(0) 推荐(0) 编辑

从网络上下载文件到sd卡上

摘要: String SDPATH = Environment.getExternalStorageDirectory() + "/"; String path = SDPATH + "files/"; /** * 此文件支持下载docx,pdf,xls,jpg, * @param urlStr * @param path * @param file... 阅读全文
posted @ 2016-12-02 02:56 随缘101 阅读(341) 评论(0) 推荐(0) 编辑