It's an object method, not a standalone function, so it would look like this (assuming start and end are Location objects):
float res = start.distanceTo(end); As for an example of using SensorManager and SensorListener, I don't have anything handy, but there is an example in the API demos: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/os/Sensors.html If you're looking for a compass display, a good example of that is in the Professional Android Application Development book from Wrox. It has both simple and complex compass examples to get ideas from. I don't think Android has any stock widgets for that kind of thing. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

