[英]Android – Where to store downloaded content, internal versus external storage?
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? 如果应用程序安装在SDCARD上(因为我的配置是),那么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? 因此,如果我的SDCARD安装的应用程序下载了100MB的内容到内部存储,那么它实际上是在SDCARD上结束了,还是最终在设备的物理板载存储中?
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? 如果应用程序安装在SDCARD上,并且带有下载内容的“内部”存储器位于SDCARD上,那么它是以开放格式物理存储还是加密? I seem to remember reading that an application stored on an SDCARD is encrypted. 我似乎记得读过存储在SDCARD上的应用程序是加密的。 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) (删除有关将文件存储在单个目录中的问题,如Context.getDir()意味着可以在内部存储中创建和维护目录系统)
Is there a better approach? 有更好的方法吗?
Did a bunch of experimentation and came to the following conclusions with Android 2.2 on a Motorola Droid 2: 做了一堆实验,并在摩托罗拉Droid 2上使用Android 2.2得出以下结论:
My app is a download content app. 我的应用是一个下载内容应用。 What this all means to me is that: 这一切对我来说意味着:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.