Re: [android-developers] Service callback references ghost instance of my activity

2011-09-04 Thread Dianne Hackborn
When you say you receive callbacks from the service, there must be some call you are making on to it to register to receive the callback. You need to unregister this callback in onDestroy, through whatever mechanism the service provides. On Sat, Aug 27, 2011 at 9:56 AM, Jason

Re: [android-developers] Service callback references ghost instance of my activity

2011-09-03 Thread Nick Risaro
On Sat, Aug 27, 2011 at 1:56 PM, Jason dummytes...@gmail.com wrote: 1) Is it possible for instance A to be referenced even after onDestroy() is called on it? Yes, because the instance is still loaded and the service holds a reference to it. 2) Is there a way to immediately invoke the

[android-developers] Service callback references ghost instance of my activity

2011-08-29 Thread Jason
Hello all, I'm running into an issue in my app and am trying to determine the root cause. Here's some background info: I have an activity that can be triggered from various places throughout my application. I am also using a service developed by a third party ( it is a library that i make calls