从APK出版排除片 [英] Exclude Tablets from APK publishing

查看:139
本文介绍了从APK出版排除片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要限制我的Andr​​oid应用程序,只(有短信功能或SIM卡或设备)

电话安装可用性

我知道我可以限制设备通过屏幕大小 。但是,这不会为我工作,因为你知道我们现在有手机,有更大更好的屏幕分辨率比一些药片。

我的应用程序的功能是围绕发送SMS(文本)消息。如果设备没有SIM卡,我不希望我的应用程序,以获取安装的设备上,因为用户的评论是这样的应用程序不会在我的平板电脑工作。

我也知道,它可能无法过滤掉不具有活动的SIM卡的设备。那我可能会一个人用手机,是在WiFi和没有SIM卡。没关系。如果我可以针对手机和平板电脑排除在外,我很高兴。

解决方案
  

如果我能够针对手机和平板电脑排除在外,我很高兴。

不论该设备支持的电话已经没有什么与它是否是一个手机或平板。

如果您需要电话,添加<使用特征的android:NAME =android.hardware.telephony/> 你的清单。这是通过持有 SEND_SMS 许可暗示,所以如果你有 SEND_SMS ,你就已经被限制在与电话设备能力。

I need to limit the installation availability of my android app to only Phones (or devices that have SMS capability or SIM Card)

I know I can limit the devices by screen size. But that won't work for me, because as you know we now have phones that have bigger and better resolution screens than some tablets.

The functionality of my app revolves around sending SMS (Text) messages. If the device does not have a SIM Card, I don't want my app to get installed on that device because user reviews be like "the app does not work on my tablet".

I'm also aware that it's probably not possible to filter out devices that do not have an "Active" SIM card. That I might get a person with a phone that is on WiFI and not SIM card. That's okay. If I can target phones and exclude tablets, i'm happy.

解决方案

If I can target phones and exclude tablets, i'm happy.

Whether or not a device supports telephony has little to do with whether it is a "phone" or a "tablet".

If you need telephony, add <uses-feature android:name="android.hardware.telephony" /> to your manifest. This is implied by holding the SEND_SMS permission, so if you have SEND_SMS, you will already be restricted to devices with telephony capability.

这篇关于从APK出版排除片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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