[英]android manifest for Nexus 7 tablet
I have application apk file and I want it to be available in Google Play for Nexus 7 tablet. 我有应用程序apk文件,希望在Nexus 7平板电脑的Google Play中可以使用。 Unfortunatelly, after uploading Google says this apk is not compatible with Nexus 7. I saw other developers solving this problem by "softening" camera permission in manifest. 不幸的是,上载Google后,该APK表示与Nexus 7不兼容。我看到其他开发人员通过“软化”清单中的摄像头许可来解决此问题。 For me this does not work. 对我来说这是行不通的。 My manifest looks as follows. 我的清单如下所示。 Any hints are appreciated. 任何提示表示赞赏。 Thanks 谢谢
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx.yyy.zzz"
android:versionCode="12"
android:versionName="1.2.2"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.SET_WALLPAPER"/>
<uses-feature android:name="android.hardware.camera"
android:required="false"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:icon="@drawable/zenfolio_icon"
android:label="@string/app_name"
android:name=".ZenfolioApplication"
android:theme="@style/ZenfolioAppTheme"
android:debuggable="false"></application></manifest>
尝试添加以下内容:
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
Try declaring relevant sub-features (flash, autofocus) with required="false"
as well. 尝试使用required="false"
声明相关的子功能(闪光灯,自动对焦)。 BTW, is this the whole manifest? 顺便说一句,这是整个清单吗?
http://developer.android.com/guide/topics/manifest/uses-feature-element.html http://developer.android.com/guide/topics/manifest/uses-feature-element.html
Try to set this in your manifest : 尝试在清单中设置:
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
EDIT2: keep this, and remove the <uses-feature android:name="android.hardware.camera"/>
completely from your Manifest
. EDIT2:保留此内容,然后从Manifest
完全删除<uses-feature android:name="android.hardware.camera"/>
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.