Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 views
in Technique[技术] by (71.8m points)

android - Nexus 7 compatibility issue

I have created an Application compatible only for Android Tabs. The Manifest.xml declaration for the App is :

  <supports-screens android:smallScreens="false"
              android:normalScreens="false"
              android:largeScreens="true"
              android:xlargeScreens="true"
              android:requiresSmallestWidthDp="600" />   

<uses-permission android:name="in.wptrafficanalyzer.locationingooglemapv2.permission.MAPS_RECEIVE" />
<uses-permission android:name="com.tab.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

I am able to download the App from the Google Play Store, but when I try to download from Google Nexus 7 Tab, I am getting the following error :

This App is incompatible with your Nexus 7 / The Item is not compatible with your device

Please help me on what changes required on the manifest declaration to make App compatible with Nexus 7

Note : I am also using the following Tag in the Manifest.xml file

 <uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Per the Permissions that Imply Feature Requirements page, android.permission.CALL_PHONE implies android.hardware.telephony, which of course the Nexus 7 does not have. Make sure that telephony is not considered required by adding the following line to your Manifest:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...