Android 存储文件的位置

发布于 2025-01-06 12:04:37 字数 99 浏览 1 评论 0原文

我应该在哪里存储我的应用程序的文件?我的应用程序是一款面向高级用户的家庭自动化应用程序,需要他们将图像(平面图、自定义仪表板等)和 xml 配置文件上传到手机。我应该把它们存放在哪里?

Where should I store files for my app? My app is a home automation app for advanced users that will require them to upload images (floor plans, custom dashboards, etc) and xml configuration files to the phone. Where should I store them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

狼亦尘 2025-01-13 12:04:37

这取决于您想要文件的可移植性。您希望用户在其他地方使用它们(SDCard)吗?您想备份它们(服务器)吗?用户是否应该真正关心他们在哪里(设备)?这实际上取决于您想要如何使用您的文件(或者用户可能想要如何使用您的文件)。

此外,另一件事要考虑的是文件大小。如果它们很大,那么 SDCard 是显而易见的选择。

That depends on how portable you want the files. Do you want the user to user them elsewhere (SDCard)? Do you want to back them up (Server)? Should the user never really care where they are (Device)? This really depends on how you want to use your files (or how the user may want to use your files).

Further, another thing to take into consideration it the file size. If they are huge, then the SDCard is the obvious choice.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文