避免将应用程序安装在平板设备上

发布于 2024-10-04 17:11:04 字数 195 浏览 0 评论 0原文

我正在开发一个支持 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

四叶草在未来唯美盛开 2024-10-11 17:11:04

取决于您真正不想支持的设备类型。你的标准到底是什么?大屏幕?在这种情况下,您可以将

<supports-screens android:largeScreens="false" />

添加到您的 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 add

<supports-screens android:largeScreens="false" />

To 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文