简体   繁体   English

移动设备的图像文件存储

[英]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 所以,我认为最后是你的方式

from here, read this 从这里读

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

相关问题 有没有办法只选择 ImageView 和 Textview 的内容并将它们下载为图像文件以保存在设备存储中? - Is there a way to select only the contents of the ImageView and the Textview and download them as an image file to save in the device storage? 将字符串另存为设备内部存储中的图像 - Save string as an image on device internal storage 从Java访问Windows Mobile设备存储卡? - Accessing Windows Mobile device Storage Card from Java? 在设备的本地存储上创建Android保存文件? - Creating an Android save file on the local storage of the device? 如何识别文件在哪个存储设备中 - How to identify in which storage device a file is 无法显示移动存储中的所选图像(Android Studio) - Cannot display the selected image from mobile storage (Android Studio) Android-在不压缩的情况下将位图图像保存在移动存储中 - Android - Save Bitmap Image on Mobile Storage without Compressing 与从移动设备获取的实际图像和屏幕截图进行比较 - Comparsion with the actual image and screenshot taken from the mobile device 更改或删除移动存储中文件txt中的单行 - Change or delete single row in a file txt on the mobile storage 如何获取android设备中存储的pdf文件的信息并显示在屏幕上? - How to get the information of pdf file on storage in android device and display it on to the screen?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM