避免将应用程序安装在平板设备上
我正在开发一个支持 android 2.1 和 2.2 版本的 android 应用程序。我不希望我的应用程序安装在任何 Android 平板电脑设备上。有什么方法可以在 android 中实现这一点,就像我们对应用程序的清单文件进行任何更改一样。非常感谢任何帮助...或者有什么方法可以防止我们的应用程序在我们发布应用程序后不被列入平板设备市场。但应该会在安卓手机市场上市。
I am working on an android application which supports android 2.1 and 2.2 version. And I do not want my app to get installed on any of the android tablet devices. Is there any way to achieve this in android like if we do any changes in manifest file of the app, something like that. Any help greatly appreciated... Or is there any way to prevent our app not to get listed in the market of tablet devices once we release the app. But It should be listed in the market of android mobile phones.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于您真正不想支持的设备类型。你的标准到底是什么?大屏幕?在这种情况下,您可以将添加到您的 AndroidManifest.xml 文件中。但实际上,这取决于您想在这里阻止什么。平板电脑和手机之间只有一线之隔——它们运行相同的操作系统,具有相同的功能,甚至包括拨打电话的功能。考虑一下您到底想要使用什么功能作为标准,然后在清单文件中找到要使用的正确值。这整个答案都是无意义的,我只是将其保留在这里以供 Dianne 的评论,因为那是这里只有理性的声音。底线 - 平板电脑是普通的 Android 设备,它将运行相同的软件。
Depends on what kind of devices you really want to not support. What exactly is your criteria? A large screen? In that case, you could addTo your AndroidManifest.xml file. But really, it depends on what you're trying to block out here. There's a thin line between a tablet and a phone - they're running the same OS and have the same capabilities, down to the ability to make phone calls. Think about what feature exactly it is you want to use as a criteria, then find the proper value to use in the manifest file.This whole answer is nonsense, I'm just keeping it here for Dianne's comment since that's the only voice of reason here. Bottom line - A tablet is a normal Android device, it'll run the same software.