突然發現我的應用被google play表示為不支持Google Nexus 7。。。憤怒啊!
查原因分析後發現有以下幾種可能:
1. 攝像頭問題,Nexus7只有前置攝像頭,所以如果應用中申請了權限<uses-permission android:name="android.permission.CAMERA"/>的話,為了支持Nexus7需要設置過濾特性<uses-feature android:name="android.hardware.camera" android:required="false" />。
2. 如果設置了類似如下的設置的話
[html]
<compatible-screens>
<screen android:screenSize="normal" android:screenDensity="mdpi"/>
<screen android:screenSize="normal" android:screenDensity="hdpi"/>
<screen android:screenSize="normal" android:screenDensity="xhdpi"/>
<screen android:screenSize="large" android:screenDensity="ldpi"/>
<screen android:screenSize="large" android:screenDensity="mdpi"/>
<screen android:screenSize="large" android:screenDensity="hdpi"/>
<screen android:screenSize="large" android:screenDensity="xhdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="ldpi"/>
<screen android:screenSize="xlarge" android:screenDensity="mdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="hdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="xhdpi"/>
</compatible-screens>
<compatible-screens>
<screen android:screenSize="normal" android:screenDensity="mdpi"/>
<screen android:screenSize="normal" android:screenDensity="hdpi"/>
<screen android:screenSize="normal" android:screenDensity="xhdpi"/>
<screen android:screenSize="large" android:screenDensity="ldpi"/>
<screen android:screenSize="large" android:screenDensity="mdpi"/>
<screen android:screenSize="large" android:screenDensity="hdpi"/>
<screen android:screenSize="large" android:screenDensity="xhdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="ldpi"/>
<screen android:screenSize="xlarge" android:screenDensity="mdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="hdpi"/>
<screen android:screenSize="xlarge" android:screenDensity="xhdpi"/>
</compatible-screens>
因為N7的dpi不是上面所列出的項,所以被過濾掉了,而N7的dpi值應該是213,所以可以設置為固定值即可。