OK. I give up. Calling: context.getSystemService(Context.SENSOR_SERVICE); in the emulator hangs under 1.5.
It hangs in the native method: SensorManager.sensors_module_get_next_sensor(Sensor, int) Any ideas? I checked my AVD and it has Accelerometer turned on. Thanks. On Apr 28, 9:48 am, CraigsRace <[email protected]> wrote: > I'm not sure the Sensor Manager is backwards compatible? When I run: > SensorManager sensorMgr = (SensorManager)this.getContext > ().getSystemService(Context.SENSOR_SERVICE); > > Under 1.1 it works fine. Under 1.5 it hangs. No errors, just sits > there. > > If anyone else has had this problem, please let me know. I'm > continuing to look into it. > > Cheers. > > On Apr 15, 6:06 am, Dianne Hackborn <[email protected]> wrote: > > > On Tue, Apr 14, 2009 at 12:58 PM, droozen <[email protected]> wrote: > > > Does the onscreen keyboard pop-up automatically when the user enters a > > > text field? Or is that something we'll have to add in our code to > > > enable? > > > You don't need to do anything special, though there are things you should to > > do improve the user experience. There will be a blog post on this sometime > > soon. > > > > Does an onscreen numpad pop-up when entering a numerical restricted > > > text field? > > > It is the on-screen keyboard with a numeric key layout. > > > > The what's new notes said the Sensor Manager APIs have been > > > redesigned. Does the "re" mean they won't be backwards compatible? Or > > > just new things added? > > > The old APIs still exist and work the same; our goal is to not break any > > applications using the official SDK (though of course subtle problems can > > happen so this isn't 100%). > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] > > > Note: please don't send private questions to me, as I don't have time to > > provide private support, and so won't reply to such e-mails. All such > > questions should be posted on public forums, where I and others can see and > > answer them. > > --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

