Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uses-feature overruling uses-permission?

My app does read SMS and react on incoming calls, but I still want tablet users to be able to download it from Android Market because it does a whole lot more than that.

So, if my app requests permissions for reading the phone's state and SMS, but I do tell the Android Market that my app doesn't use telephony APIs, what would the Android Market do then?

<uses-permission
    android:name="android.permission.READ_PHONE_STATE" />
<uses-permission
    android:name="android.permission.RECEIVE_SMS" />

<uses-feature
    android:required="false"
    android:name="android.hardware.telephony" />

Filtered for WIFI-only tablets or not filtered, that is the question.

Any experiences?

Have a great day Tom

like image 803
TomTasche Avatar asked Apr 11 '11 15:04

TomTasche


People also ask

What uses feature?

Google Play uses the <uses-feature> elements declared in your app manifest to filter your app from devices that do not meet its hardware and software feature requirements.

What is the difference between permission and uses permission?

What is difference between permission and uses-permission in Android? permission is normally used when making a custom permission e.g. when making an app that other apps can tie in to, limiting access is a must. uses-permission is used when your app actually needs a permission it doesn't have normally.

What is the correct permission to use the camera?

Camera Permission - Your application must request permission to use a device camera. Note: If you are using the camera by invoking an existing camera app, your application does not need to request this permission. For a list of camera features, see the manifest Features Reference.


1 Answers

Given your manifest elements above, the Market should allow the app to be visible for WiFi-only tablets as well as phones. The Ruboto IRB application ran into this shortly after the XOOM became available. Here is a blog post I wrote up after helping them fix matters.

like image 69
CommonsWare Avatar answered Sep 29 '22 22:09

CommonsWare