您的位置:首页 > 移动开发 > Android开发

android developer tiny share-20160707

2016-07-07 14:59 453 查看
今天讲下android的compatibility的专业概念,即android官方对“兼容性”的定义。

由于android是开源的,而制造android手机的厂商又特别的多,360也是android手机的manufacturer。由于厂商众多,就会有差异,而这些手机都运行android系统,就要兼容android系统。

具体的,android兼容性分为device compatibility和app compatibility,前者一般开发者不用关心,只关心后者就可以了。

关于兼容性,官方说明如下:

As you read more about Android development, you'll probably encounter the term "compatibility" in various situations. There are two types of compatibility: device compatibility and app compatibility.

Because Android is an open source project, any hardware manufacturer can build a device that runs the Android operating system. Yet, a device is "Android compatible" only if it can correctly run apps written for the Android execution environment. The exact
details of the Android execution environment are defined by the Android compatibility program and each device must pass the Compatibility Test Suite (CTS) in order to be considered compatible.

As an app developer, you don't need to worry about whether a device is Android compatible, because only devices that are Android compatible include Google Play Store. So you can rest assured that users who install your app from Google Play Store are using an
Android compatible device.

However, you do need to consider whether your app is compatible with each potential device configuration. Because Android runs on a wide range of device configurations, some features are not available on all devices. For example, some devices may not include
a compass sensor. If your app's core functionality requires the use of a compass sensor, then your app is compatible only with devices that include a compass sensor.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  android 兼容性