安卓ߝ在哪里存储下载的内容,内部存储还是外部存储?
有关在我的应用程序中将下载的内容存储在何处的许多独立但相关的问题。
我有一个从中央服务器下载内容的应用程序。该内容有时是优质内容,或者至少是发布者不希望其自由分发的内容。据我了解,“外部”存储很容易访问,而“内部”存储则受到保护,除非手机已 root。
如果应用程序安装在 SDCARD 上(如我的配置所示),那么“内部”存储也在物理上位于 SDCARD 上吗?因此,如果我的 SDCARD 安装的应用程序下载了 100MB 的内容到内部存储,那么它实际上最终存储在 SDCARD 上,还是最终存储在设备的物理板载存储中?
如果应用程序安装在 SDCARD 上,并且包含下载内容的“内部”存储位于 SDCARD 上,那么它是以开放格式物理存储还是加密的?我似乎记得读到存储在 SDCARD 上的应用程序是加密的。这也适用于“内部”存储吗?
(删除有关将文件存储在单个目录中的问题作为 Context.getDir() 意味着可以在内部存储中创建和维护目录系统)
是否有更好的方法?
A number of separate, but related, questions concerning where to store downloaded content within my application.
I have an application that downloads content from a central server. This content is sometimes premium content, or at least content where the publisher does not want it freely distributed. I understand that the “external” storage is readily accessible whereas the “internal” storage is protected, unless the phone is rooted.
If the application is installed on the SDCARD (as mine is configured to be) then is the “internal” storage also physically on the SDCARD? Thus if my SDCARD installed application downloads, say, 100MB of content to internal storage then is it actually ending up on the SDCARD, or is it ending up in the device’s physical on-board storage?
If the application is installed on the SDCARD, and the “internal” storage with the downloaded content is on the SDCARD then is it physically stored in an open format or is it encrypted? I seem to remember reading that an application stored on an SDCARD is encrypted. Does this also apply to the “internal” storage?
(Deleted question about storing files in a single directory as Context.getDir() implies that a directory system can be created and maintained in the internal storage)
Is there a better approach?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 Motorola Droid 2 上使用 Android 2.2 进行了大量实验并得出以下结论:
我的应用程序是一个下载内容应用程序。这一切对我来说意味着:
Did a bunch of experimentation and came to the following conclusions with Android 2.2 on a Motorola Droid 2:
My app is a download content app. What this all means to me is that: