开发者

application requires feature(s) not available on your device

开发者 https://www.devze.com 2023-03-31 14:17 出处:网络
I have an Android application on Android Market, but some users are complaining about an error sho开发者_Go百科wn when the installation starts, just after the download:

I have an Android application on Android Market, but some users are complaining about an error sho开发者_Go百科wn when the installation starts, just after the download:

application requires feature(s) not available on your device

One of them sent me a video of this error showing up, and I could see that this error is not caused by the application, but probably in the verification of permission/features process.

As far as I know, this error is just happening on Motorola Droid/Milestone devices running Eclair, it doesn't happen with Froyo. Unfortunately, I don't have access to any device like this one in order to run logcat and check what's going on.

Here are my permission/features on AndroidManifest.xml:

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.location" />
<uses-feature android:name="android.hardware.telephony" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_GPS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


I finally found out what's happening by getting a Droid device and running logcat:

E/PackageManager( 1280): Package com.mycompany.myapp requires unavailable feature android.hardware.telephony; failing!

Motorola Droid devices running Eclair are not able to install applications that declare

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

in their manifest. It's very strange, though, because the Android Market should hide it from these devices. This is probably a bug caused by the changes made to the Eclair by Motorola, since it doesn't happen with other devices running Eclair, neither with the same Droid running Froyo.


According to the docs:

Android Market attempts to discover an application's implied feature requirements by examining other elements declared in the manifest file, specifically, <uses-permission> elements.

Given that, have you tried removing the uses-feature tags? Since those are implied by the uses-permissions tags, and you aren't using the "android:required" attribute.


The device say " this feature is not available in this device " when I'm installing an app downloaded from play store and i have to give it permission

0

精彩评论

暂无评论...
验证码 换一张
取 消