According to

http://groups.google.com/group/android-developers/browse_thread/thread/0effc78a5c429359

> its not possible to test any Sensor related code on emulator.

The openintents SensorSimulator

http://code.google.com/p/openintents/wiki/SensorSimulator

might work but looks like it needs updating, because it reads

> The three orientation values returned by the sensor "orientation"
> indicate yaw, pitch, and roll angles in DEGREE, with values between
> -180(exclusive) and +180 (inclusive).

whereas the Android documentation

http://code.google.com/android/reference/android/hardware/SensorManager.html

currently instead reads

> Sensor values are yaw, pitch and roll Yaw is the compass heading
> in degrees, range [0, 360[ 0 = North, 90 = East, 180 = South,
> 270 = West Pitch indicates the tilt of the top of the device, with
> range -90 to 90. [...]
> Roll indicates the side to side tilt of the device, with range -90 to 90.

Regards


On Aug 30, 5:11 pm, "Olexiy K." <[EMAIL PROTECTED]> wrote:
> Does anybody know how to simulate the changes of device orientation in
> emulator?
> I want to use OrientationListener.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to