Don't know if you're still having this problem, but try this. http://www.websmithing.com/2011/02/01/how-to-update-the-ui-in-an-android-activity-using-data-from-a-background-service/comment-page-1/#comment-734
Your service broadcasts the data with an intent, for your main application to access. sorry if this sounds wack, but just try the turorial in the link. I had the same problem for 2 days and couldn't get a descent link to a solution till this. On Friday, January 14, 2011 3:57:26 PM UTC+2, AntiWiggin wrote: > > Hello, I'm writing an application that keeps track of certain > statistics using the devices GPS (average speed, distance from the > last location, etc...). Now initially I just did this in my activity > but then I realized I would like the user to be able to turn off the > screen and still have the GPS keep track of these statistics. > > My question is how can my activity retrieve this data from the > service? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en