title: Android: Getting data simultaneously from Accelerometer and Gyroscope
body: <p>I'm having some issues getting data from the accelerometer and gyroscope simultaneously. I need to use these sensors to get acceleration and orientation in order to calculate relative position for a project I'm working on. When both sensors are used at the same time it leads to some very weird data output, in which the data only changes once every second. When only the accelerometer is run the data is not much better because it is only changing roughly 10 times a second on its fastest setting. This data is printed out to a file with a time stamp for each sensor reading. </p>
  
  <p>I'm having trouble finding tutorials on the internet, particularly using more than one sensor together at the same time. Do I need to put each sensor on a different thread? I don't have much experience using threads, how could I do this.</p>