[英]Image file storage for mobile device
For my android app I am creating I have images that need to be downloaded. 对于我的Android应用,我正在创建我需要下载的图像。 I am after a storage solution that is cheap/free with fast downloads. 我正在寻找一种便宜/免费且快速下载的存储解决方案。
I was looking into google cloud storage but I can't seem to get that to work, I add the libs to the project using the plugin but it still complains that its missing other libraries. 我一直在研究Google云存储,但似乎无法正常工作,我使用插件将库添加到项目中,但它仍然抱怨缺少其他库。
Alternatively I was looking into using the APK expansion files but from what I read it downloads the files automatically while downloading the APK which I do not want. 另外,我正在研究使用APK扩展文件,但是从我阅读的内容中,我会自动下载文件,而下载我不想要的APK。
Ideally it would be great if I could use Google Drive or Dropbox to sync files with the device but it seems when using either one a login is required by the user. 理想情况下,如果我可以使用Google云端硬盘或Dropbox与设备同步文件,那将是很好的选择,但似乎无论使用哪种方式,用户都需要登录。 I don't want the user to have knowledge of what is being used in the background. 我不希望用户了解后台使用的内容。
Any help / suggestions are very much appreciated. 任何帮助/建议都非常感谢。
Android provides several options for you to save persistent application data. Android提供了多个选项来保存持久性应用程序数据。 The solution you choose depends on your specific needs, such as whether the data should be private to your application or accessible to other applications (and the user) and how much space your data requires. 您选择的解决方案取决于您的特定需求,例如数据是应为应用程序专用还是应由其他应用程序(和用户)访问以及数据需要多少空间。
Your data storage options are the following: 您的数据存储选项如下:
Shared Preferences Store private primitive data in key-value pairs. 共享首选项将私有原始数据存储在键值对中。
Internal Storage Store private data on the device memory. 内部存储将私有数据存储在设备内存中。
External Storage Store public data on the shared external storage. 外部存储将公共数据存储在共享的外部存储中。
SQLite Databases Store structured data in a private database. SQLite数据库将结构化数据存储在专用数据库中。
Network Connection Store data on the web with your own network server. 网络连接 使用您自己的网络服务器 将 数据存储在Web上。
So, I think the last is your way 所以,我认为最后是你的方式
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.