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.
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.
相关文章推荐
- TSLib ported to Android for touchscreen calibration
- android技巧01:Preferencescreen中利用intent跳转activity
- 基于Android系统的多点触摸屏(MultiTouchScreen)驱动
- Android touch screen keyboard 移植记录
- 7 Inch Touch Screen Google Android Tablet PC
- TSLib ported to Android for touchscreen calibration. (转) [复制链接]
- Android touch screen keyboard 移植记录
- android中如何设计触摸屏驱动touch screen driver
- Real-Time Strategy Game with Touch Screen
- Monitor Screen Touch Event in Android
- touch-screen with Timer
- android.intent.action.SCREEN_ON与android.intent.action.SCREEN_OFF
- Android forward display screen(pages), by intent.
- Android Activity – From One Screen To Another Screen从一个屏幕切换到另一屏幕,Intent
- android中如何设计触摸屏驱动touch screen driver
- How to Install Kali Linux on Android - Tutorial With Screenshot
- android-Planning for Multiple Touchscreen Sizes,Providing Descendant and Lateral Navigation
- android touch screen keyboard input移植记录
- Using the Android RecognizerIntent with a bluetooth headset
- Permission Denial: not allowed to send broadcast android.intent.action.SCREEN_OFF