Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the current provided android emulator able to simulate the sensors?

Tags:

android

Is the current provided android emulator able to simulate the sensors? If not, can I get a link to third party that will provide me with this? Previous post on stackoverflow and its links are not working


1 Answers

enter image description here

You do not need a device to simulate Android sensors. The Android Emulator (v25.2.2 and higher), launched with Android Studio 2.2 can simulate the following sensor types:

  • TYPE_ACCELEROMETER
  • TYPE_AMBIENT_TEMPERATURE
  • TYPE_GRAVITY
  • TYPE_GYROSCOPE
  • TYPE_LIGHT
  • TYPE_LINEAR_ACCELERATION
  • TYPE_MAGNETIC_FIELD
  • TYPE_ORIENTATION
  • TYPE_PRESSURE
  • TYPE_PROXIMITY
  • TYPE_RELATIVE_HUMIDITY
  • TYPE_ROTATION_VECTOR
  • TYPE_TEMPERATURE

As defined here: https://developer.android.com/guide/topics/sensors/sensors_overview.html

like image 145
Jamal Eason Avatar answered Jan 20 '26 08:01

Jamal Eason



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!