支持LG G3,仅限手机

时间:2014-10-16 15:16:18

标签: android eclipse lg

我有一个Android应用程序,只能在手机上使用。目前,我已使用Google文档中的示例,我在清单中设置了兼容屏幕元素。最近,一位用户抱怨该游戏商店称该应用程序与他们的手机不兼容,并且他们有LG G3。在调查之后,我意识到问题很可能是因为手机的屏幕分辨率与我定义的屏幕不兼容。我遇到了这篇文章Android app on Google Play Store is not compatible with LG G3 (Density 538, Size 2560x1440)?,其中显示了必须定义的附加屏幕元素。我的问题是,任何人都可以确认使用这个额外的屏幕元素,screenSize设置为normal而screenDensity设置为640会有效吗?

<screen android:screenDensity="640" android:screenSize="normal" />

我希望允许使用此手机的用户使用该应用,但我希望此时仅限手机限制该应用。

谢谢!!!

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

<!-- Only permit app to be used on handsets, prevent tablets -->
<compatible-screens>
    <!-- all small size screens -->
    <screen android:screenDensity="ldpi" android:screenSize="small" />
    <screen android:screenDensity="mdpi" android:screenSize="small" />
    <screen android:screenDensity="hdpi" android:screenSize="small" />
    <screen android:screenDensity="xhdpi" android:screenSize="small" />
    <screen android:screenDensity="480" android:screenSize="small" />
    <!-- all normal size screens -->
    <screen android:screenDensity="ldpi" android:screenSize="normal" />
    <screen android:screenDensity="mdpi" android:screenSize="normal" />
    <screen android:screenDensity="hdpi" android:screenSize="normal" />
    <screen android:screenDensity="xhdpi" android:screenSize="normal" />
    <!-- Nexus 5 : 445ppi -->
    <screen android:screenDensity="480" android:screenSize="normal" />
    <!-- LG G3 QHD Resolution -->
    <screen android:screenDensity="640" android:screenSize="small" />
    <screen android:screenDensity="640" android:screenSize="normal" />
</compatible-screens>

1 个答案:

答案 0 :(得分:0)

据我记忆,我可以在PlayStore发布帐户中分别为每个设备申请我的应用程序。这样会更准确但不易维护。

另一种方法:尝试查找共享您要定位的设备的功能。相应地设置<uses feature>-Tag。我会立刻想到“电话”的功能。所有功能和用法:http://developer.android.com/guide/topics/manifest/uses-feature-element.html

有关所有过滤器的一般信息:http://developer.android.com/google/play/filters.html