如何限制为平板电脑应用在Android中? [英] How to restrict app for tablet in Android?

查看:120
本文介绍了如何限制为平板电脑应用在Android中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的应用程序只运行的移动设备没有在

i want to my app run only mobile device not in the

10平板电脑和7寸

。但我的应用程序运行在两个药片大小。请帮助我

. but my app is run on both tablet size .please help me out

推荐答案

是为@OceanLife说,你应该用的兼容的屏幕或的支持的屏幕

Yes as @OceanLife says you Should Go with compatible-screens or supports-screens.

但我想在这里补充一下。

but I would like to add Something here.

如果您使用的是

<supports-screens android:largeScreens="false" android:normalScreens="true" 
                  android:smallScreens="true" android:xlargeScreens="false" /> 

然后记什么官方兼容的屏幕文档说:

如果您希望您的应用程序仅适用于大型可及
  XLARGE屏幕设备,该元素可以让你
  声明你的应用程序不支持小型和普通屏
  大小。 外部服务(如谷歌播放),将过滤
   申请相应。您也可以使用
   元素申报制度是否应该调整你的应用程序
   针对不同的屏幕尺寸。

if you want your application to be available only for large and xlarge screen devices, the element allows you to declare that your application does not support small and normal screen sizes. External services (such as Google Play) will filter your application accordingly. You can also use the element to declare whether the system should resize your application for different screen sizes.

因此​​,它会影响你以后会上传您的APK文件Play商店中。直到你不会得到这个功能受到影响。

So it will effect after you will upload your apk file to PlayStore. untill you will not get this feature affected.

也看到在谷歌的过滤器播放文件的更多信息有关如何谷歌游戏采用这种和其他清单元素应用过滤器。

Also see the Filters on Google Play document for more information about how Google Play filters applications using this and other manifest elements.

希望这将有助于。

这篇关于如何限制为平板电脑应用在Android中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆