Android activity inner class - change reference to parent
<p>I have an inner class inside an activity.</p>

<p>In the onSaveInstanceState method I save an instance of the inner class in the bundle as a serializable object. When the activity resumes, the object gets restored.</p>

<p>In the inner class uses some of the outer class methods, findViewById for example.
The problem is that the resumed activity is now a different instance, but MyActivity.this still references the old one, thus for example returning me wrong views in the case of findViewById.</p>

<p>I know I could just pass to the inner class the new reference and use that but I was wondering if there's a way to change the reference so that it points to the new instance.</p>
