首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏全栈程序员必看

    Android11 无Root 访问data目录实现、Android11访问data目录、Android11解除data目录限制、Android11 data空白解决

    Api访问目录 使用起来非常简单 先看看怎么生成DocumentFile对象 DocumentFile documentFile = DocumentFile.fromTreeUri(context DocumentFile.fromFile(); DocumentFile.isDocumentUri(); 看名字就明白了,但是我们有的的是一个文件夹uri,当然使用这个方法来生成DocumentFile (DocumentFile documentFile) { this.documentFile = documentFile; } } for (DocumentFile documentFile_inner : documentFile.listFiles()) { file file 可以生成正确的DocumentFile对象了,我们又可以用它来做一些好玩的东西了,比如直接通过path生成DocumentFile对象对某个文件获取大小啊、判断存在状态啊,等等。

    18.3K31编辑于 2022-09-14
  • 来自专栏学习计划

    springboot 整合eWebOffice

    * @return */ @GetMapping("/index") public String index(Model model){ List<DocumentFile * @param wos // */ // public void loadFile(eWebOfficeServer wos,String recordId){ // DocumentFile "); byte[] a_FileBody = wos.WebMsgGetStream("FileBody"); wos.WebMsgClear(); DocumentFile documentFile = documentFileService.getByRecordId(s_RecordID); documentFile.setdFilebody(a_FileBody ); int update = documentFileService.update(documentFile); //测试写入 // testWrite(

    1.1K20发布于 2021-01-29
  • 来自专栏第三方工具

    Java freemarker生成word模板文件(如合同文件)及转pdf文件方法

    java.util.zip.ZipOutputStream; /** * xml文档 转换 Word */ public class XmlToDocx { /** * * @param documentFile param toFilePath 需要导出的文件路径 * @throws Exception */ public static void outDocx(File documentFile word/document.xml".equals(next.toString())) { InputStream in = new FileInputStream(documentFile

    1.4K10编辑于 2024-10-09
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】在 Android Studio 的 Terminal 终端执行 gradlew 报错 ( 无法将“gradlew”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称 )

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.9.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    6.6K10编辑于 2023-03-30
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Android Studio 集成 ARoute 编译报错 ( 兼容 support 库和 androidx 库 | add ‘tools:replace=“android:appCo )

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | | | +--- com.android.support:support-compat:28.0.0 (*) | +--- com.android.support:documentfile 1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    1.9K20编辑于 2023-03-30
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Android Studio 编译报错 ( The minCompileSdk (33) specified in a dependency‘s AAR metadata META-I )

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.9.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    4.7K50编辑于 2023-03-30
  • 来自专栏Android Camera开发

    我是怎么一步步将SystemUI导入到AndroidStudio的

    exclude 'META-INF/androidx.customview_customview.version' exclude 'META-INF/androidx.documentfile_documentfile.version

    2K20发布于 2021-04-30
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Android Studio 编译报错 ( kotlin library {0} was compiled with a newer kotlin compiler and not b )

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    2.6K20编辑于 2023-03-30
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Android Studio 编译报错 ( Module was compiled with an incompatible version of Kotlin. ) 2

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.9.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    5K30编辑于 2023-03-30
  • 来自专栏Android Camera开发

    我是怎么一步步将SystemUI导入到AndroidStudio的

    exclude 'META-INF/androidx.customview_customview.version' exclude 'META-INF/androidx.documentfile_documentfile.version

    1.4K20发布于 2021-04-19
  • 来自专栏Android Camera开发

    我是怎么一步步将SystemUI导入到AndroidStudio的

    exclude 'META-INF/androidx.customview_customview.version' exclude 'META-INF/androidx.documentfile_documentfile.version

    1.4K20发布于 2021-04-19
  • 来自专栏ComPDFKit tutorials

    PDF Java库: 创建PDF阅读器和编辑器

    ' annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' implementation 'androidx.documentfile :documentfile:1.0.1' } 在AndroidManifest.xml中申请读写权限: <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE

    1.4K20编辑于 2023-07-31
  • 来自专栏韩曙亮的移动开发专栏

    【Android Gradle 插件】Gradle 依赖管理 ⑥ ( dependencies 依赖查找路径 | dependencies 依赖冲突 | dependencies 依赖库层级分析 )

    | +--- com.android.support:support-compat:28.0.0 (*) | | | +--- com.android.support:documentfile -- com.android.support:versionedparcelable:{strictly 28.0.0} -> 28.0.0 (c) +--- com.android.support:documentfile

    2.5K40编辑于 2023-03-30
  • 来自专栏韩曙亮的移动开发专栏

    【Android Gradle 插件】Android 依赖管理 ⑤ ( Gradle 依赖优化 | 命令行查看依赖模块 | 依赖冲突问题 | 依赖传递冲突 | 分库冲突 | 依赖分组不同导致冲突 )

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    3.8K30编辑于 2023-03-30
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Android Studio 编译报错 ( Module was compiled with an incompatible version of Kotlin. The binary )

    1.0.0 -> 1.3.0 | | +--- androidx.core:core:1.0.0 -> 1.8.0 (*) | | +--- androidx.documentfile :documentfile:1.0.0 | | | \--- androidx.annotation:annotation:1.0.0 -> 1.3.0 | |

    11.1K41编辑于 2023-03-30
  • 来自专栏振兴的Android修炼手册

    AndroidQ兼容性适配指南

    ACTION_OPEN_DOCUMENT_TREE的intent,拉起DocumentUI让用户主动授权的方式 获取,获得用户主动授权之后,应用就可以临时获得该目录下面的所有文件和目录的读写权限,可以通过DocumentFile = null) { savePersistablePermission(treeUri)//将获取的权限持久化保存 val root = DocumentFile.fromTreeUri Intent.FLAG_GRANT_WRITE_URI_PERMISSION) Log.d(TAG, "已经获得永久访问权限") val root = DocumentFile.fromTreeUri

    8.2K30编辑于 2022-12-27
领券