Fixed long running bug regarding magnetic sensor in android phone. Some
prints for web server to help with debugging.