I'm looking for a technical answer to how the android robospice library manages activity lifecycle. From the getting started page:
https://github.com/octo-online/robospice/wiki/Starter-Guide
"As an inner class of your Activity (or other context), add a RequestlListener that will update your UI. Don't worry about memory leaks, RoboSpice manages your activity's life cycle."
My question is how does robospice automatically update the request listeners so that it still is able to call the correct listener with the correct context after a rotation and after the activity has been destroyed and recreated as a new instance?
I've been trying to reverse engineer the source code but haven't found an answer yet: