简体   繁体   English

如何将文件保存到 Android 10 上的内部存储

[英]How to save file to internal storage on Android 10

Recently I made an application that can save files that have been generated to internal storage.最近我做了一个应用程序,可以将生成的文件保存到内部存储中。 I run on Android 9 does not have a problem, but on Android 10, the file cannot be exported.我在Android 9上运行没有问题,但是在Android 10上,文件无法导出。 is there a solution to overcome this?有没有办法克服这个问题?

Well i don't know which method you are following currently to save files, but i suggest you to take a look at the official documentation updated last week好吧我不知道你目前使用哪种方法来保存文件,但我建议你看看上周更新的官方文档

You can just call new File(YourDir) and it will store on the app specified storage您只需调用new File(YourDir) ,它将存储在应用程序指定的存储空间中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM