Hey community,
I am noticing a problem on android 6+ devices. The PhoneSensors don't show correct values. It is only "0" all the time when i try to get the altitude value.
Code:
Dim ps as phonesensors
ps.Initialize(ps.TYPE_PRESSURE)
ps.StartListening("PS")
Sub PS_SensorChanged(SensorValues() As Float)
Log(SensorValues(1))
end sub
On other android versions it works. e.g. Android 5
Maybe I have to ask for permission. But how do I do this?
Update: HPA works. But not altitude
I am noticing a problem on android 6+ devices. The PhoneSensors don't show correct values. It is only "0" all the time when i try to get the altitude value.
Code:
Dim ps as phonesensors
ps.Initialize(ps.TYPE_PRESSURE)
ps.StartListening("PS")
Sub PS_SensorChanged(SensorValues() As Float)
Log(SensorValues(1))
end sub
On other android versions it works. e.g. Android 5
Maybe I have to ask for permission. But how do I do this?
Update: HPA works. But not altitude
Last edited: