安卓:只支持智能手机 [英] Android: Supporting smart phone only

查看:113
本文介绍了安卓:只支持智能手机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序已出现在谷歌的发挥。 我希望把它与智能手机兼容only.For,我已经做了这样的...

My application is live on google play. I want to make it compatible with smart phone only.For that I have done like this...

 <uses-sdk
    android:minSdkVersion="4"/>
 <supports-screens
    android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:xlargeScreens="false" />

和我的问题是,市场不会过滤片(MDPI平板电脑像三星TAB1)。一件事是,一些手机像WVGA800 *(480×800)(MDPI),WVGA800 **(480×800)(LDPI)的大屏幕和一些平板电脑还配备在这个range.So我想,让手机没有平板那么应该是什么解决办法???

And my problem is market does not filter for tablet (mdpi tablet like Samsung tab1).one thing is that some phone like WVGA800* (480x800)(mdpi),WVGA800** (480x800)(ldpi) in large screen and some tablet also comes in this range.So i want to allow phones not tablet then what should be the solution???

我发现从这里一些帮助<一href="http://developer.android.com/guide/topics/manifest/supports-screens-element.html">http://developer.android.com/guide/topics/manifest/supports-screens-element.html

 <uses-sdk
    android:minSdkVersion="4"
    android:targetSdkVersion="16" />
 <supports-screens
    android:largeScreens="true"
    android:largestWidthLimitDp="320"
    android:normalScreens="true"
    android:smallScreens="true"
    android:xlargeScreens="false" />

这是市场将它的工作?..我有这样的解决方案,询问是否有人有this.My问题的经验是我无法上传application.please新版本帮我测试..

Will it work on market??..I am asking with this kind of solution if anybody is having experience of this.My problem is i can not test by uploading new version of application.please help me..

替代解决方案就可以了。

Alternative solution will do.

在此先感谢。

推荐答案

你有没有加入可兼容屏标签到您的Andr​​oidManifest.xml?这就是谷歌播放使用基于屏幕尺寸的过滤设备。

Have you added 'compatiable-screens' tag to your AndroidManifest.xml? It's what Google Play uses to filtering devices based on screen sizes.

<compatible-screens>
    <!-- small size screens -->
    <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />
    <!-- all normal size screens -->
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />      
    <!-- large screens -->
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />
</compatible-screens>

由于不包括Android:屏幕尺寸=XLARGE,您的应用程序将不会显示为10.1平板电脑Android:屏幕尺寸=大,是一个有点棘手这可能是设备达7,所以Galaxy Tab的7 就属于这一类,但我不知道,如果新的Galaxy S3或Galaxy Nexus的有4.75画面分为大屏幕类别。

By not including android:screenSize="xlarge", your apps will not show up for 10.1" tablets. android:screenSize="large" is a little bit tricky. It could be devices up to 7" so Galaxy Tab 7" falls into this category. But I am not sure if the newer Galaxy S3, or Galaxy Nexus with 4.75" screen falls into 'large' screen category.

尝试添加上面的代码到你的Andr​​oidManifest.xml中,如果谷歌播放包括在支持的设备列表7平板电脑,你可以随时删除它们。

Try adding the above snippet to your AndroidManifest.xml, and if Google Play includes 7" tablets in the supported devices list, you can always remove them.

这篇关于安卓:只支持智能手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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