Playstore 中 10 英寸平板电脑的应用列表,但 7 英寸平板电脑未显示 [英] Application listing for 10 inch tablets in playstore but not displayed for 7 inch tablets

查看:30
本文介绍了Playstore 中 10 英寸平板电脑的应用列表,但 7 英寸平板电脑未显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照其他帖子的建议检查了使用权限、使用功能和支持屏幕.我已经在 Playstore 中上传了一个应用程序作为更新,其中包含以下清单文件.以前的版本运行良好.该项目之前在 Eclipse 中,现在已移至 android studio.我遇到了清单合并,因为已使用了许多库,因此不必要地添加了许多权限,因此我单独删除了每个.也检查了使用权限和使用功能.与以前版本相比,清单中的更改用星号表示

I have checked the uses-permission,uses-feature and support screens as suggested by other posts. I have uploaded an application in playstore as an update with the following manifest file. The previous version worked fine. The project was in eclipse earlier and is moved to android studio now.I encountered manifest merging as many libraries have been used and hence lot of permissions were added unnecessarily,hence I removed each individually. Checked the uses-permission and uses-feature too. The changes in manifest from previous version are indicated by stars

我的应用程序必须仅支持平板电脑.

My application has to be supported only for tablets.

这是主清单文件.

<?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="com.xx.yy"
        android:versionCode="13"
        android:versionName="1.8.1">

        <uses-sdk
            android:minSdkVersion="14"
            android:targetSdkVersion="19" />

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

        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.CAMERA" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

        <uses-feature android:name="android.hardware.camera" />
        *<uses-feature
        *    android:name="android.hardware.location.gps"
        *    android:required="false" />

*<uses-feature
        *    android:name="android.hardware.location.network"
        *    android:required="false" />

        <uses-permission android:name="android.permission.GET_ACCOUNTS" />
        <uses-permission android:name="android.permission.WAKE_LOCK" />

        <permission
            android:name="com.xx.yy.permission.C2D_MESSAGE"
            android:protectionLevel="signature" />

        <uses-permission android:name="com.xx.yy.permission.C2D_MESSAGE" />
        <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
        <uses-permission android:name="android.permission.GET_TASKS" />
        <uses-permission android:name="android.permission.REORDER_TASKS" />
        *<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
     *   <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>*

        *<uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" tools:node="remove"/>
       * <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" tools:node="remove"/>
       * <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" tools:node="remove"/>
      *  <uses-permission android:name="android.permission.VIBRATE"  tools:node="remove"/>
       * <uses-permission android:name="android.permission.FLASHLIGHT"  tools:node="remove"/>
      *  <uses-permission android:name="android.permission.READ_CONTACTS"  tools:node="remove"/>
    </manifest>

在旧版本上运行转储标记后的 AAPT 属性.

AAPT properties after running dump badging on the previous version.

package: name='om.xx.yyy' versionCode='8' versionName='1.7' platformBuildVersionName='5.0.1-1624448'
sdkVersion:'11'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.GET_ACCOUNTS'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='com.hp.wallartsolutions2.permission.C2D_MESSAGE'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.REORDER_TASKS'

application-icon-120:'res/drawable-mdpi-v4/icon.png'
application-icon-160:'res/drawable-mdpi-v4/icon.png'
application-icon-240:'res/drawable-hdpi-v4/icon.png'
application-icon-320:'res/drawable-xhdpi-v4/icon.png'
application-icon-480:'res/drawable-xxhdpi-v4/icon.png'
application: label='xyz' icon='res/drawable-mdpi-v4/hp_icon.png'
launchable-activity: name='com.xx.yyy.ui.SplashScreenActivity'  label='' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature: name='android.hardware.screen.landscape'
  uses-implied-feature: name='android.hardware.screen.landscape' reason='one or more activities have specified a landscape orientation'
  uses-feature: name='android.hardware.touchscreen'
  uses-implied-feature: name='android.hardware.touchscreen' reason='default feature for all apps'
main
other-activities
other-receivers
other-services
supports-screens: 'large' 'xlarge'
supports-any-density: 'true'
requires-smallest-width:'600'
locales: '--_--' 'ca' 'da' 'fa' 'ja' 'nb' 'id' 'be' 'de' 'he' 'af' 'bg' 'th' 'zh' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'nl' 'pl' 'sl' 'tl' 'am' 'in' 'ko' 'ro' 'ar' 'fr' 'hr' 'sr' 'tr' 'cs' 'es' 'ms' 'it' 'lt' 'pt' 'eu' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'fr-CA' 'lo-LA' 'en-GB' 'et-EE' 'ka-GE' 'km-KH' 'zh-HK' 'hy-AM' 'zh-CN' 'en-IN' 'mn-MN' 'pt-BR' 'es-ES' 'es-US' 'pt-PT' 'zh-TW' 'ms-MY'
densities: '120' '160' '240' '320' '480'
native-code: 'armeabi' 'armeabi-v7a'

我尝试在当前版本的 apk 上运行 aapt 转储标记以查找 apk 属性.这就是结果.

I tried running the aapt dump badging on the current version of the apk to find the apk properties. This is the result.

package: name='com.xx.yyy' versionCode='13' versionName='1.8.1' platformBuildVersionName='4.4W.2-1537038'
sdkVersion:'14'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.GET_ACCOUNTS'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='com.xx.yyy.permission.C2D_MESSAGE'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.REORDER_TASKS'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
application-label:'xyz'
application-icon-120:'res/drawable-mdpi-v4/icon.png'
application-icon-160:'res/drawable-mdpi-v4/icon.png'
application-icon-240:'res/drawable-hdpi-v4/icon.png'
application-icon-320:'res/drawable-xhdpi-v4/icon.png'
application-icon-480:'res/drawable-xxhdpi-v4/icon.png'
application: label='xyz' icon='res/drawable-mdpi-v4/icon.png'
launchable-activity: name='com.xx.yy.zz.SplashScreenActivity'  label='' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.camera'
  uses-feature-not-required: name='android.hardware.camera.autofocus'
  uses-feature-not-required: name='android.hardware.camera.flash'
  uses-feature-not-required: name='android.hardware.camera.front'
  uses-feature-not-required: name='android.hardware.location.gps'
  uses-feature: name='android.hardware.screen.landscape'
  uses-feature: name='android.hardware.touchscreen'
  uses-feature-not-required: name='android.hardware.wifi'
  uses-feature: name='android.hardware.location'
  uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
  uses-feature: name='android.hardware.location.network'
  uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission'
main
other-activities
other-receivers
other-services
supports-screens: 'large' 'xlarge'
supports-any-density: 'true'
requires-smallest-width:'600'
locales: '--_--' 'ca' 'da' 'fa' 'ja' 'pa' 'ta' 'nb' 'id' 'be' 'de' 'he' 'te' 'af' 'bg' 'th' 'zh' 'fi' 'hi' 'vi' 'sk' 'uk' 'el' 'ml' 'nl' 'pl' 'sl' 'tl' 'am' 'bn' 'in' 'kn' 'ko' 'ro' 'ar' 'fr' 'hr' 'mr' 'sr' 'tr' 'cs' 'es' 'ms' 'it' 'lt' 'pt' 'eu' 'gu' 'hu' 'ru' 'zu' 'lv' 'sv' 'iw' 'sw' 'fr-CA' 'lo-LA' 'en-GB' 'et-EE' 'ka-GE' 'km-KH' 'zh-HK' 'hy-AM' 'zh-CN' 'en-IN' 'mn-MN' 'pt-BR' 'es-ES' 'es-US' 'pt-PT' 'zh-TW' 'ms-MY'
densities: '120' '160' '240' '320' '480'
native-code: 'armeabi' 'armeabi-v7a'

我是否遗漏了一些东西以使该应用程序对 7 英寸设备也可见?我的应用程序必须仅支持平板电脑.该应用程序未列出任何 7 英寸设备.aapt dump badging 命令显示对大型和超大型设备的支持.

Is there something I am missing so that the application is visible for 7 inch devices too? My application has to be supported only for tablets. The application is not listed for any 7 inch devices. The aapt dump badging command displays support for large and x-large devices.

由于 zing 库而发生清单合并,以下是库中的权限

Manifest merging happens due to zing library following are the permissions in the library

<manifest
    package="com.google.zxing.client.android"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:installLocation="auto"
    android:versionCode="94"
    android:versionName="4.5.1">

    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
    <uses-permission android:name="android.permission.FLASHLIGHT"/>
    <uses-permission android:name="android.permission.READ_CONTACTS"/>
    <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="19"/>

    <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
    <uses-feature
        android:name="android.hardware.camera"
        android:required="false"/>
    <uses-feature
        android:name="android.hardware.camera.front"
        android:required="false"/>
    <!-- TODO replace above two with next line after Android 4.2 -->
    <!-- <uses-feature android:name="android.hardware.camera.any"/> -->
    <uses-feature
        android:name="android.hardware.camera.autofocus"
        android:required="false"/>
    <uses-feature
        android:name="android.hardware.camera.flash"
        android:required="false"/>
    <uses-feature android:name="android.hardware.screen.landscape"/>
    <uses-feature
        android:name="android.hardware.wifi"
        android:required="false"/>
    <!-- This excludes Google TV, which is unfortunately included by virtue of not requiring a camera -->
    <uses-feature android:name="android.hardware.touchscreen"/>
    <!-- TODO make this not required again after android.hardware.camera.any is available -->

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true"/>

</manifest>

更新 1:我将使用功能 android.hardware.location.gps 更改为 false,它不会直接出现在 playstore 搜索中.但是当从浏览器搜索并按下安装时,会导航到 Playstore 并成功安装.我正在使用 HP Slate 7 安装 http://www.gsmarena.com/hp_slate_7-5317.php

更新 2:我已将使用功能 android.hardware.location.network 更改为 false 并上传了 beta 版本.等待它现在处于活动状态

推荐答案

通过添加解决.

*<uses-feature
            android:name="android.hardware.location"
            android:required="false" />*
 <uses-feature
            android:name="android.hardware.location.gps"
            android:required="false" />

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

HP slate 7 没有位置支持.需要斜体的位置块才能使应用程序在 HP slate 7 中可见

The HP slate 7 did not have the location support. The location block in italic is required to make the application visible in HP slate 7

这篇关于Playstore 中 10 英寸平板电脑的应用列表,但 7 英寸平板电脑未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆