平板电脑和智能ICS手机区分 [英] Distinguish between Tablet and Smart phone on ICS

查看:172
本文介绍了平板电脑和智能ICS手机区分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,在默认情况下(pre ICS),在平板电脑和放大器之间的区别;智能手机,开发人员可以使用SDK版本的Andr​​oid清单(除了屏幕大小和OpenGL过滤器)。 现在对SP和平板电脑上运行ICS,没有一个开发商在什么情况下选择我需要的SP和平板电脑之间的区别?

I understand that by default (pre ICS), to distinguish between a Tablet & Smartphone, a developer can use the sdk version in the Android Manifest (apart from screen size and openGL filters). Now with ICS running on both SP and Tablet, what options does a developer have in case I need to distinguish between SP and Tablet?

我不认为屏幕尺寸是可靠的。

I don't think screen size is reliable.

比方说,因为某些原因,我不能有一个共同的apk的SP和平板电脑。 我也想避免平板电脑和SP一个单独的应用程序

Lets say for certain reasons I cannot have a common apk for SP and Tablet. I would also like to avoid a separate application for Tablets and SP

推荐答案

片剂和电话之间的唯一显著差别是,在一般情况下,屏幕大小和电话能力的presence,加上一个事实,即电话一般具有移动数据而片剂可以是无线只。随着ICS,对两类设备上运行的软件基本相同,所以唯一感兴趣的显着特征是这些点。如果设备有一个屏幕,你的应用程序足够大,并提供所有需要的功能,它的问题,如果它是一个手机或平板电脑?

The only significant differences between tablets and phones are, in general, screen size and the presence of telephony capabilities, plus the fact that phones will generally have mobile data while tablets may be wifi-only. With ICS, the software running on the two classes of device is basically the same, so the only interesting distinguishing features are these points. If a device has a screen big enough for your app and provides all the required capabilities, does it matter if it's a phone or a tablet?

我想说的是屏幕尺寸正是你要筛选上。这不是手机版和平板版本这么多的小屏幕和大屏幕。

I'd say that screen size is exactly what you should be filtering on. It's not 'phone version' and 'tablet version' so much as 'little screen' and 'big screen'.

这篇关于平板电脑和智能ICS手机区分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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