android-sensors
Fire onSensorChanged only if there is a motion
I have a background service which need much power, but is only needed if the device ist moving. I registered a sensor[详细]
2023-04-11 17:07 分类:问答Which Android device has all possible orientation sensors [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-04-10 08:17 分类:问答Why i can not use Sensor.TYPE_ORIENTATION_VECTOR. Type is not recognised
The problem is, that this sensors should be available: int TYPE_ACCELEROMETER int TYPE_ALL int TYPE_GRAVITY[详细]
2023-04-06 21:13 分类:问答Android: Unit Test: How can I create unit test with SensorManager?
I have plain Jar Project that reference by android application. Then, I have Functions.java for my common functions which I want to create unit test class.[详细]
2023-04-06 11:08 分类:问答Replacing ACTION_SCREEN_ON withy ACTION_USER_PRESENT?
I have a long-running service listening for sensor input. To conserve battery power, I\'ve stopped the sampling of the sensors on ACTION_SCREEN_OFF and started it back up again on ACTION_SCREEN_ON.[详细]
2023-04-06 05:45 分类:问答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.[详细]
2023-04-05 01:13 分类:问答Android: Is there a way to obtain altitude aside from Location.getAltitude()? (I've heard using Sensor)
Is there a way to obtain altitude aside from Location.getAltitude()? I\'ve heard using Sensor but don\'t have idea and can\'t find on net.[详细]
2023-04-04 21:37 分类:问答Android: How do I call a method which is existing in other API Level?
I开发者_如何转开发 have application using Android 2.1 which utilize LocationManager to get the altitude. But now, I need to obtain the altitude using SensorManager which requires API Level 9 (2.3).[详细]
2023-04-04 21:35 分类:问答Why three (redundant?) accelerometer variations in android sensors
In android, we have Sensor.TYPE_GRAVITY, Sensor.TYPE_ACCELEROMETER, Sensor.TYPE_LINEAR_ACCELERATION. And it is known from android developer forum that,[详细]
2023-04-03 19:43 分类:问答How to calculate orientation on accelerating phone
I want to calculate orientation of the phone. Android documentation says that I can do that using getRotationMatrix (float[] R, float[] I, float[] gravity, float[] geomagnetic) and remapCoordinateSyst[详细]
2023-04-02 05:43 分类:问答