Android touch screen Calibrate with Intent

    技术2022-05-19  28

    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.


    最新回复(0)