[android-developers] Re: How to Implement the Compass function to my application?

2009-06-08 Thread Georgy
btw Brian the code in that book is REALLY good I just embedded the compass.. I wish I had the book to understand what are those two spheres animating in the center.. thanks On Jun 7, 12:35 pm, Georgy georgearna...@gmail.com wrote: anyone has any idea how to embed the radar app into a map

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-08 Thread Brian Smith
Indeed :-) It's come in very handy for me as far as getting a grasp on Android's architecture, as well as getting ideas for doing certain things with it. On Jun 8, 11:46 am, Georgy georgearna...@gmail.com wrote: btw Brian the code in that book is REALLY good I just embedded the compass.. I

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-07 Thread Georgy
anyone has any idea how to embed the radar app into a map application?? On Jun 6, 12:37 am, Numan Ahmed numan@gmail.com wrote: on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Brian Smith
You're trying to get the distance and bearing from the start point to the end point? If so, then you don't need to work with the compass hardware... unless you later want to use it to help the user navigate to the point. The Location class (in android.location) can be used compute those two

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Georgy
yeah I need to bring up the compass to tell the user where EXACTLY is the destination when the user is close. thanks, On Jun 5, 10:17 am, Brian Smith avalo...@caerleon.us wrote: You're trying to get the distance and bearing from the start point to the end point?  If so, then you don't need

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Georgy
Ok for 1) I looked it up (thanks U SAVED ME TREMENDOUS CALCULATIONS) but the function: float res = distanceTo(loc); that takes loc which is a location is not recognized. Is it deprecated or somethign? for 2) do you have any working sample? thnaks a lot! On Jun 5, 11:14 am, Brian Smith

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Brian Smith
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:

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Georgy
Thanks Brian, I could use the radar from : http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Radar/src/com/google/android it is very helpful as well On Jun 5, 3:22 pm, Brian Smith avalo...@caerleon.us wrote: It's an object method, not a standalone function, so it would look

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Numan Ahmed
on sat, 6/ 6/ 2009 numan numan@gmail.com helllo my friends have a nice day latest summer fashion more fashion shows videos visit us http://www.fashioninfokit.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups