简体   繁体   English

Nexus 7平板电脑的Android清单

[英]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.

相关问题 平板电脑上的Android Manifest出了点问题 - Something wrong with Android Manifest for a tablet 平板电脑的Android清单文件属性 - Android Manifest files attributes for Tablet Android Nexus 7平板电脑上的网络类型未知 - Network type unknown on Android Nexus 7 tablet Nexus 7平板电脑上的Android语音识别中的错误代码8 - Error code 8 in android speech recognition on Nexus 7 tablet Nexus 7支持Android应用程序清单程序集 - Nexus 7 Support for Android Application Manifest Assembly Android应用程序在Samsung平板电脑上存在错误,但在Nexus 5上运行良好? - Android Application bugs on Samsung tablet, but works great on Nexus 5? 使用Javascript为Android(Nexus 7 Tablet)获取正确的设备显示宽度 - Getting correct device display width for Android (Nexus 7 Tablet) with Javascript Android Nexus 7平板电脑模拟器无法加载正确的布局文件 - Android Nexus 7 tablet emulator not load correct layout file Android平板电脑nexus 10在小部件“无法容纳在此设备上”出现异常 - Android tablet nexus 10 got exception on widget 'cannot fit on this device' 带有Nexus 7等手机布局的Android 4.0 AVD平板电脑 - Android 4.0 AVD tablet with phone layout like Nexus 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM