Migration Guide

Migration Guide

This document contains a few helpful tips when migrating to new Android releases.

Migrating to Android Gingerbread 2.3


In Gingerbread, we added the concept of input device configuration files (also referred to as input device calibration files in this release).

Make sure to provide an input device configuration file for all touch screens. In particular, it is worth spending time providing a calibration reference for touch size information.

Migrating to Android Honeycomb 3.0


In Honeycomb, we revised the key character map file format and started making greater use of input device configuration files. We also added support for full PC-style keyboards and introduced a new "Generic" key map, which replaced the older emulator-specific "qwerty" key map (which was never intended to be used as a general-purpose key map.)

Make sure to update all of your key character map files to use the new syntax.

If your peripherals relied on the old "qwerty" key map, then you may need to provide new device-specific key maps to emulate the old behavior. You should create a new key map for each device identified either by USB product id / vendor id or by device name.

It is especially important to provide key character map files for all special function input devices. These files should simple contain a line to set the keyboard type to SPECIAL_FUNCTION.

A good way to ensure that all built-in input devices are appropriately configured is to run Dumpsys and look for devices that are inappropriately using Generic.kcm.

Migrating to Android Honeycomb 3.2


In Honeycomb 3.2, we added support for joysticks and extended the key layout file format to enable joystick axis mapping.

Migrating to Android Ice Cream Sandwich 4.0


In Ice Cream Sandwich 4.0, we changed the device driver requirements for touch screens to follow the standard Linux multitouch input protocol and added support for protocol "B". We also support digitizer tablets and stylus-based touch devices.

You will probably need to update your input device driver to implement the Linux multitouch input protocol correctly according to the standard.

You will also need to update your input device configuration files because some properties have been changed to be simpler and more systematic.

Refer to Touch Devices for more details about driver requirements.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值