Showing posts with label sensor. Show all posts
Showing posts with label sensor. Show all posts

Sunday, April 22, 2012

how to calibrate the orientation sensor in android?


im writing an app in google android 2.1 that needs to know which direction (n/w/s/e) the device (htc hero) is facing. the sensor and its listener is working great, but the values i get from the sensor are totally crappy. e.g. it tells me i'd be facing north when the device is facing sw or so...