not sure if there is a work around but I believe this is a known issue
according to the latest sdk release notes 
http://developer.android.com/sdk/RELEASENOTES.html

(copy and pasted below for convenience)
Known Issues

Sensor problems in Emulator

    * If your application uses the Sensor API and you are running it
in the emulator on the Android 1.5 system image, you may experience
problems. Your application may generate ANR messages or crash when
using the sensors. The problem is being investigated.

Other

    * We regret to inform developers that Android 1.5 will not include
support for the Zilog Z80 processor architecture.


I have a few apps that make use of the Sensor API and they are all
working great on my ADP1 with the 1.5 image installed, so it looks to
be just an emulator issues

---snctln
www.snctln.com

On Apr 29, 11:33 pm, JP <joachim.pfeif...@gmail.com> wrote:
> One more find in the 1.5 emulator.
> A call to getSystemService(SENSOR_SERVICE) just hangs. Works just fine
> in 1.0 and goes through both on a device (G1 with latest OTA update
> from T-Mobile) and the 1.0 emulator.
> Accelerator is a "yes" AVD option by default, so that should go
> through? Can anybody confirm this issue... is there a known workaround/
> solution?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to