Hey guys,
New to android development. I have built an application which reads
the digital compass and accelerometer data and displays them in
textfields. The issue I am facing is that the digital compass data
comes in VERY Slowly. I have seen other apps like the orienteer or
compass which respond a lot quicker than my application does so Im
trying to figure out why:
all I do in my code is to respond on every sensorChange. This is a
simplified view of my code:
mysensormanager.registerListener(this,1);
...
...
onSensorChanged(..) {
textfield1.setText(Values[0].shortValue());
textfield2.setText(Values[1].shortValue());
textfield3.setText(Values[2].shortValue());
}
It takes incredibly long for the current heading value to come up.
Much longer than orienteer and compass. What am I doing wrong? Any
ideas would be appreciated.
Nick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---