java - Using a rotation vector in earlier Android systems -
hey, application writing need use data given in sensor.type_rotation_vector. bad news program, among others, g1 device, runs android 1.6, i.e. api level 4, , not 9 needed. nevertheless, pretty positive phone have sort of gyroscope, means should possible me exact orientation of phone. so, question is, how do it?
thank in advance.
i don't think g1 has gyroscope - it has basic accelerometers. here's interesting post how program use accelerometers when available , not crash when aren't.
[update] if phone has gyroscope, require android 2.3 (and above) on phone access it.
Comments
Post a Comment