fix [2475541] Deprecate Sensor.TYPE_ORIENTATION

It's much better to use SensorManager.getRotation() instead.
This commit is contained in:
Mathias Agopian
2010-02-26 18:06:26 -08:00
parent 7895da44e3
commit 61a449393c
2 changed files with 4 additions and 1 deletions

View File

@@ -73111,7 +73111,7 @@
value="3"
static="true"
final="true"
deprecated="not deprecated"
deprecated="deprecated"
visibility="public"
>
</field>

View File

@@ -41,7 +41,10 @@ public class Sensor {
* A constant describing an orientation sensor type.
* See {@link android.hardware.SensorEvent SensorEvent}
* for more details.
* @deprecated use {@link android.hardware.SensorManager#getOrientation
* SensorManager.getOrientation()} instead.
*/
@Deprecated
public static final int TYPE_ORIENTATION = 3;
/** A constant describing a gyroscope sensor type */