Android 上的应用程序到 SD 功能
我收到越来越多关于能够使用 App to SD 功能的请求,该功能必须是 Android 2.2 的一部分,但我确实没有这方面的经验。我也不知道在哪里可以找到有关如何使我的应用程序与此功能兼容的任何文档。人们告诉我我的应用程序无法移动到 SD 卡。
我的想法还告诉我,对于没有任何类型的许可证保护的付费应用程序来说,这确实是一个坏主意。
有没有人有这方面的经验,知道任何文档,或者有任何关于什么会阻止应用程序与此功能兼容的提示?
注意:我不在我的应用程序上使用复制保护。
I'm getting more and more requests about being able to use an App to SD feature that must be part of Android 2.2, but I really have no experience with it. I also don't know where to find any documentation regarding how to make my apps compatible with this feature. People have told me my apps cannot be moved to the SD card.
My mind is also telling me that this is a really bad idea for paid apps that don't have license protection of any kind.
Has anyone had any experience with this, know of any documentation, or have any tips regarding what would stop an app from being compatible with this feature?
Note: I do not use copy protection on my apps.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
android:installLocation
清单属性允许将您的应用安装到 SD 卡。可以将其设置为preferExternal
或auto
,具体取决于您是否希望建议将其安装在 SD 卡上,或者只是允许它。默认情况下,出于向后兼容性原因,应用程序无法安装到 SD 卡,因此如果您希望用户能够使用此功能,则必须选择加入此功能。来自文档:
因此,您不必太担心许可证保护;该功能内置加密功能。您通常也不应该担心许可证保护,因为任何形式的复制保护或 DRM 对诚实用户的危害往往比对盗版用户的危害更大。只要有人能够使用你的应用,就有人能够盗版;创建一个牢不可破的 DRM 方案几乎是不可能的。如果您的应用程序已经在内部存储中,则它可能已经是盗版的。然而,大多数用户都是诚实的,并且会从市场购买应用程序,因此您不会从阻止盗版中真正获得太多收益(大多数下载盗版应用程序的人是那些无法访问市场中付费应用程序的人;这是在许多国家仍然不可用)。
无论如何,结果是,这应该与您的应用程序一样安全,并且只是允许用户在存储应用程序的位置方面具有更大的灵活性。默认情况下不会启用它,以防出现导致应用程序意外崩溃的错误,但启用它应该是完全安全的。
You can allow your app to be installed to the SD card using the
android:installLocation
manifest attribute. This can be set topreferExternal
orauto
, depending on whether you would like to recommend that it be installed on the SD card, or simply allow it. By default, applications cannot be installed to the SD card for backwards-compatibility reasons, so you must opt-in to this feature if you want your users to be able to use it.From the documentation:
Thus, you shouldn't worry about license protection too much; there is encryption built into the feature. You also generally shouldn't worry about license protection because any form of copy protection or DRM tends to be more harmful to honest users than to pirates. As long as someone is able to use your app, someone will be able to pirate it; it is well nigh impossible to create an unbreakable DRM scheme. If your app is already in internal storage, it's likely already pirated. Most users are honest, however, and will buy the app from the Market, so you won't really gain much from stopping piracy (most people who download pirated apps are those who don't have access to paid apps in the Market; it's still not available in many countries).
Anyhow, the upshot is that this should be about as secure as your app already is, and just allows users more flexibility in where to store their app. It's not enabled by default in case of bugs that cause applications that aren't expecting it to break, but it should be perfectly safe to enable.
给你。
并且< a href="http://developer.android.com/guide/topics/manifest/manifest-element.html#install" rel="nofollow noreferrer">记录在此处。
Here you go.
And documented here.