title: Minimum threshold for car accident
body: <p>I am using accelerometer to detect the car accident. I am having a problem with minimum threshold value is required to detect the car accident. What minimum threshold required to detect car accident.</p>
  
  <pre><code>@Override
  public void onSensorChanged(SensorEvent event) {
      float x = event.values[0];
      float y = event.values[1];
      float z = event.values[2];
  
      float gX = x / 9.8f;
      float gY = y / 9.8f;
      float gZ = z / 9.8f;
  
      float gForce = FloatMath.sqrt(gX * gX + gY * gY + gZ * gZ);
      if(gForce &gt; //HERE IS NEED THRESHOLD VALUE)
  }
  </code></pre>