I didn't architect this, but here's the situation : there is a PopupWindow with a button in it. The button handler is in a different activity from the Activity that created the PopupWindow. I want to know if there's a way to use the View param to the button handler to access the PopupWindow to have it dismiss() itself when I tap the button.
So far I've been able to use a series of getParent()'s to iterate up to the containing PopupWindow. But when I do it says it's a "PopupWindow$PopupViewContainer" (PopupWindow itself is not derived from View; it's derived from Object)
Is there any way I can use this to access the actual PopupWindow so I can call its dismiss() method?
Thanks in advance!