prachi wrote: > Hey hiii allll > > Im tryin to get the directional information using compass on my > android phone.Bt it gives me the error ----------------->>>> > > could not enable sensor 2 > for the method----->>>>> > sensorMan.registerListener( > listener, > sensorMan.getDefaultSensor( > Sensor.TYPE_ORIENTATION), > SensorManager.SENSOR_DELAY_FASTEST); > > > Plssss help me out its a bit urgent....ny help would b > appreciated :):)
Try running: http://github.com/commonsguy/cw-advandroid/tree/master/Sensor/Compass/ This is known to work. If it works for you, figure out where you are doing things differently. If it does not work for you, please confirm that your device has a compass sensor. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Consulting/App Development: http://commonsware.com/consulting -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

