1

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.

4

1 回答 1

5

如果我可以定位手机并排除平板电脑,我很高兴。

设备是否支持电话与它是“电话”还是“平板电脑”无关。

如果您需要电话,请添加<uses-feature android:name="android.hardware.telephony" />到您的清单中。这是通过持有SEND_SMS权限来暗示的,​​所以如果你有SEND_SMS,你将被限制在具有电话功能的设备上。

于 2013-07-20T16:40:50.777 回答