title: Collect synchronize data from different sensor in Android
body: <p>I  doing an app that collect data from the different sensor that are in a smart-phone. My doubts are : how I can collect different data? My goal is create an Matrix of array. There are the data capture from the signal in every row in the same time.
  If I use "timestamp " in the code above, it could be ok? I am not sure, because the definition of timestamp is "the time on which the event occur", but the problem is that the event can occur only in one sensor. Sincerely I am a bit confused about it. </p>
  
  <pre><code>mSensorManager = (SensorManager) this
                  .getSystemService(Context.SENSOR_SERVICE);
  mSensorListener = new SensorEventListener() {
      @Override
      public void onAccuracyChanged(Sensor arg0, int arg1) {
      }`enter code here`
  
      @Override
      public void onSensorChanged(SensorEvent event) {
          Sensor sensor = event.sensor;
          if (sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
              //TODO: get values
          }else if (sensor.getType() == Sensor.TYPE_ORIENTATION) {
              //TODO: get values
          }
      }
  }
  </code></pre>