[英]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?有没有办法克服这个问题?
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.