ZFile:Android文件管理类,包括打开不同后缀文件,创建文件目录,获取文件目录大小,复制文件,读取写入文件等。注意:需要添加三个权限 WRITE_EXTERNAL_STORAGE、READ_EXTERNAL_STORAGE、MOUNT_UNMOUNT_FILESYSTEMS

上传者: 42116701 | 上传时间: 2023-05-07 18:25:05 | 文件大小: 151KB | 文件类型: ZIP
ZFile Android文件管理类,包括打开不同后缀文件,创建文件/目录,获取文件/目录大小,复制文件,读取写入文件等。注意:需要添加三个权限 WRITE_EXTERNAL_STORAGE、READ_EXTERNAL_STORAGE、MOUNT_UNMOUNT_FILESYSTEMS。 作者:邹峰立,微博:zrunker,邮箱:,微信公众号:书客创作,个人平台:。 本文选自平台第20篇文章。 。 在实际开发当中,对文件的管理是非常常见的一个功能,这里给出一个关于文件处理的一些常用方法的封装类ZFile,为了开发方便,可以直接引入封装内容到自己的项目当中,那么该如何引用呢? 一、引入资源包 这里提供两种方式引入资源: 1、在build.gradle文件中添加以下代码: 在build.gradle文件中添加以下代码: allprojects { repositories {

文件下载

资源详情

[{"title":"( 51 个子文件 151KB ) ZFile:Android文件管理类,包括打开不同后缀文件,创建文件目录,获取文件目录大小,复制文件,读取写入文件等。注意:需要添加三个权限 WRITE_EXTERNAL_STORAGE、READ_EXTERNAL_STORAGE、MOUNT_UNMOUNT_FILESYSTEMS","children":[{"title":"ZFile-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 923B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"cc","children":[{"title":"ibooker","children":[{"title":"zfile","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"cc","children":[{"title":"ibooker","children":[{"title":"zfile","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 736B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 14.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 68B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 430B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 9.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.png <span style='color:#111;'> 5.97KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 388B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"cc","children":[{"title":"ibooker","children":[{"title":"zfile","children":[{"title":"FileInfoView.java <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"FileInfoAdapter.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"FileLibTestActivity.java <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":"FileInfoData.java <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 992B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 230B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"codeStyles","children":[{"title":"Project.xml <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"gradle.xml <span style='color:#111;'> 680B </span>","children":null,"spread":false},{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 771B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false}],"spread":true},{"title":"zfilelib","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 923B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"cc","children":[{"title":"ibooker","children":[{"title":"zfilelib","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 397B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"cc","children":[{"title":"ibooker","children":[{"title":"zfilelib","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 747B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 71B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"cc","children":[{"title":"ibooker","children":[{"title":"zfilelib","children":[{"title":"FileInfoBean.java <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"FileUtil.java <span style='color:#111;'> 18.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 807B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 28B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 534B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明