一、现象

   用Nexus 7在Google Play中搜索,无法搜索到“有道云笔记”,但可以搜索到“有道词典HD”等。

   用Google Play网页版搜索,会发现显示“Nexus 7”不兼容“有道云笔记”

二、问题判断和处理方案

   1.搜索不到,是因为兼容性问题引起

   在设备中的Google Play,会直接过滤和设备不兼容的应用,因此使用Nexus 7会搜索不到。

   当然,和账户区域也有关系,但此处非此种原因。

   2.原因的引起,是因为摄像头特性的支持声明

    看下“有道云笔记”所需要的设备特性:

          android.hardware.camera

          android.hardware.camera.autofocus

          android.hardware.microphone

          android.hardware.screen.portrait

          android.hardware.touchscreen

          android.hardware.wifi

     看下“有道词典HD”所需要的设备特性:

          android.hardware.screen.landscape

          android.hardware.touchscreen

          android.hardware.wifi

      多出来的“android.hardware.camera”和”android.hardware.camera.autofocus“因为用到了相机。

      多出来的“android.hardware.microphone”因为支持录音笔记。

   3.此设备特性需求列表,不影响安装,使用中如果无摄像头,需要额外处理。

      Nexus 7有前置摄像头,但针对此设备特性会认为是false。

   4.如果需要解决此问题,需要在   <manifest …>中增加如下内容。

      如果未添加此行,android系统会默认认为对摄像头的设备特性需求为true,从而在google play中会过滤掉不支持此设备特性的应用。

   <manifest …>

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

        …

   </manifest>


三、影响范围

    应该较小,没有相机的Android Pad和Android Phone都较少,且国内市场应该基本都没有做过滤。

(完)

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

9,213次阅读 | penddy on 2012-8-15 14:32 | File Under 生活 | No Comments -