Android uses-feature causes devices to fail to find your app in the Android Market

Source: Internet
Author: User

In the past two days, we found that our app was on the Android Market, and some mobile phones could not be found because:

This application is only applicable to devices with corresponding features.

The uses-feature of many hardware devices is listed later.

The cause is that our applications require too many permissions, so that devices that do not have the permissions mentioned in the definition cannot find our applications.

After investigation: the uses-feature label is not used in our application. Why does the prompt "this application is only applicable to devices with corresponding functions?

Later, I checked the reason. When we used permission, when we needed some hardware permissions, we actually implicitly used uses-feature.

See the following table:

Category This permission... Implies this feature Requirement
Bluetooth BLUETOOTH android.hardware.bluetooth

(See
Special Handling for Bluetooth feature for details .)

BLUETOOTH_ADMIN android.hardware.bluetooth
Camera CAMERA android.hardware.camera And
android.hardware.camera.autofocus
Location ACCESS_MOCK_LOCATION android.hardware.location
ACCESS_LOCATION_EXTRA_COMMANDS android.hardware.location
INSTALL_LOCATION_PROVIDER android.hardware.location
ACCESS_COARSE_LOCATION android.hardware.location.network And
android.hardware.location
ACCESS_FINE_LOCATION android.hardware.location.gps And
android.hardware.location
Microphone RECORD_AUDIO android.hardware.microphone
Telephony CALL_PHONE android.hardware.telephony
CALL_PRIVILEGED android.hardware.telephony
MODIFY_PHONE_STATE android.hardware.telephony
PROCESS_OUTGOING_CALLS android.hardware.telephony
READ_SMS android.hardware.telephony
RECEIVE_SMS android.hardware.telephony
RECEIVE_MMS android.hardware.telephony
RECEIVE_WAP_PUSH android.hardware.telephony
SEND_SMS android.hardware.telephony
WRITE_APN_SETTINGS android.hardware.telephony
WRITE_SMS android.hardware.telephony
WiFi ACCESS_WIFI_STATE android.hardware.wifi
CHANGE_WIFI_STATE android.hardware.wifi
CHANGE_WIFI_MULTICAST_STATE android.hardware.wifi

 

Then we made another investigation.

Our application has such a feature.

 
 
  1. android.hardware.touchscreen 

Note:

 
 
  1. applications require the android.hardware.touchscreen feature by default 


Can be modified:

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

In this way, we find a solution to the problem, that is


 
 
  1. <uses-feature android:name="string" android:required="false" /> 

In this way, the device is not required to have the hardware device, so that our applications can be adapted by more mobile phones.

This article from "Yu Xuan impression" blog, please be sure to keep this source http://zilla.blog.51cto.com/3095640/799727

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.