[android-developers] Best way to have Service inform Activity where user currently is
My navigation program is all in an Activity, and now I need to have the part that makes the determination where the user is.
So, the activity will be in charge of drawing on the MapOverlay, but the Service will be getting the location updates.
How should the service inform the drawing activity of the current location and the path?
It would seem that the activity should probably just poll the service, so that if there is no request for information then the service will just quietly keep track of what is going on, and just put up a notification when the user reaches their endpoint.
But I am not certain if this is the best approach.
Thank you.
--
"I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant."
- Robert McCloskey
-- "I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant."
- Robert McCloskey
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home