String rootpath = MainApplication.getAppContext().getExternalFilesDir(null).getAbsolutePath();
File mfile = new File(rootpath);
Android11及以上读取文件方式
最新推荐文章于 2025-05-27 09:38:09 发布
本文介绍了如何在Android应用程序中获取主应用的外部存储目录绝对路径,并创建一个新的文件,主要涉及File类和ApplicationContext的使用。
8645

被折叠的 条评论
为什么被折叠?



