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

Android touch screen Calibrate with Intent

2011-03-03 16:09 519 查看
screen coordinate(Xs) VS device coordinate(Xd)

screen coordinate is related to screen rotation, which could be change after orietation. But device coordinate is fixed, left up is original point.

Xs
= Xd*A+Yd*B+C

Ys
= Yd*D+Yd*E+F

Calibrate math is aiming to compute out A/B/C/D/E/F value, which saved in /etc/ts/pointercal file.Android has no calibrate math method, which done by tslib.

Porting to gingerbread: tscalibrate.java, tsBootReceiver.java, res/values/strings.xml, AndroidManifest.xml, res/xml/setting.xml, *.png resources in drawable-mdpi/drawable-hdpi.

Intent PRE_BOOT_COMPLETED, this broadcast is sent after the core system has finished booting, before the home app is launched or BOOT_COMPLETED is sent.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: