androidandroid-sensorspressure

Android: Where is the SensorEvent's values for TYPE_PRESSURE?


I've read this documentation -> SensorEvent

then, I found that in order to get the values for TYPE_PRESSURE sensor type, I need to listen for SensorEventListener.

The problem is the documentation for TYPE_PRESSURE sensor's values is missing. Anyone knows it?

UPDATES1 I previously created questions that may relate on this matter. Would you take a look also these links: Obtain Altitude value & SensorManager.getAltitude


Solution

  • I found the WSP url and post another question on how to read the result. Eventually, I found the answer too.

    Here's the url to obtain the Pressure At Sea Level value to pass on SensorManager.getAltitude as parameter. Obtaining Pressure At Sea Level

    Then, the second parameter Atmospheric Pressure may be obtained via event.values[0]. I came up this from @Marioo O. Lenci 's idea.