Is it safe for a view to reference the activity that's displaying it?
<p>I have extended View and passed it an instance of my Activity so the view can access some member variables and methods.  </p>

<p>But now I'm thinking this could be a potential memory leak, because even after the Activity is destroyed, it still has a reference to the view in a member variable, and vice versa. So the garbage collector may never clean them up.</p>

<p>However, I've seen in some of the Google API demos and examples cases where they have passed the Activity to the View as a listener.</p>
