- 博客(4)
- 收藏
- 关注
原创 Android12 操作根目录文件报错open failed: EPERM (Operation not permitted)
【代码】Android12 操作根目录文件报错open failed: EPERM (Operation not permitted)
2024-01-26 10:03:47 345 1
原创 Android file转Uri
使用ContentResolver提供的方法:如果您的应用程序需要在Android 4.3(API级别18)及更低版本上使用File对象,则可以使用ContentResolver的openFileDescriptor()方法将File对象转换为FileDescriptor对象,然后使用FileDescriptor转换为Uri对象的方法。这种方法适用于Android 4.4(API级别19)及更高版本。
2023-09-19 19:32:19 780
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人