Does anybody know if the built-in Android emulator has an emulated device that has a barometric sensor?
Asked
Active
Viewed 90 times
0
-
3The Android tooling available with VS is all provided by Google, not Microsoft. AFAIK there is no barometer available in the emulator – Jason Jun 04 '23 at 14:36
-
Thanks, @Jason. That is what I suspected. This explains why IsSupported found in Microsoft.Maui.Essentials returns false but other methods like Start, Stop and the ReadingChanged event handler still function and reads the virtual sensor data from the emulator. – cramar Jun 05 '23 at 01:16
-
Please accept it as an answer if it's helpful to others facing the same problem. Thanks in advance! – Jianwei Sun - MSFT Jun 23 '23 at 08:26
1 Answers
1
Android emulator can't simulate any sensors. Also as Jason said, the Android tooling available with VS is all provided by Google, not Microsoft. And there is no barometer available in the emulator.
For more info about sensor for emulator, you can see this case: Pressure sensor not getting any values.

Jianwei Sun - MSFT
- 2,289
- 1
- 3
- 7