title: Get current SensorEvent value
body: <p>I am using <code>Sensor.TYPE_STEP_COUNTER</code>. As far as I know, the android <code>SensorEvent</code> maintains a value since reboot. I can use the following codes to get the <code>value</code> once the <code>onSensorChanged</code> method is called.</p>
  
  <p>Like:    </p>
  
  <pre><code>public void onSensorChanged(SensorEvent event) {
      System.out.println(event.values[0] );
  }
  </code></pre>
  
  <p>However, how can I get the current value without using such a method? I try to use :</p>
  
  <pre><code>SensorEvent event = new SensorEvent();
  float value = event.value[0]; 
  </code></pre>
  
  <p>This won't work. Is there a similar way to get the current Sensor value?</p>