how to get gravity sensor information?
<p>i'm trying to write an app for testing sensors by my Nexus S.</p>

<p>well , i wrote this to show the sensors lists through a listview.</p>

<pre><code>@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //get all sensors
        sensorManager = (SensorManager) this.getSystemService(SENSOR_SERVICE);
        sensors = sensorManager.getSensorList(Sensor.TYPE_ALL);

        setContentView(R.layout.main);

        sensorListView = (ListView) findViewById(R.id.sensor_listview);
        sensorListView.setOnItemClickListener(new OnItemClickListener() {
            public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int position,
                    long arg3) {
                showSensorInfo(sensors.get(position).getType());
            }
        });



        //set an empty adapter for ListView
        sensorNames = new ArrayAdapter&lt;String&gt;(getApplicationContext(),
                android.R.layout.simple_list_item_1);


        for (Sensor s : sensors) {
            sensorNames.add(s.getName());
            Log.i("sensor", s.getName());
        }
        sensorListView.setAdapter(sensorNames);
    }
</code></pre>

<p>i saw this ~
<img src="http://i.stack.imgur.com/oRfAc.png" alt="enter image description here"></p>

<p>there is a sensor called 「Gravity Sensor」,</p>

<p>my question is , there are sensors CONSTANT such as : </p>

<p>Sensor.TYPE_ACCELEROMETER</p>

<p>Sensor.TYPE_GYROSCOPE</p>

<p>Sensor.TYPE_LIGHT
..
.</p>

<p>and so on .But i couldn't find a CONSTANT called  「Sensor.TYPE_GRAVITY」</p>

<p>where is the Gravity Sensor from =..=a?? ( i'm a really newbie~ )</p>
