Android :: Dismiss Popup Window When Switching To New Tab In TabActivity?Nov 19, 2010
I have a MapActivity as one of four tabs in a TabActivity.This MapActivity can launch a PopupWindow that is a legend. The PopupWindow remains on the screen, on top of the map, until the "Show Legend" button is clicked again (back and forth, etc.).The problem is that, when a user switches to another tab, the PopupWindow remains persistent over the view.I've tried implementing the onPause() method in the MapActivity class, and dismissing it from there. The application force closes with this method in place.I hope this provides an idea of where I'm at. Everything works perfectly well on the Map tab. It's only when you have the Legend shown and switch tabs that it is still displayed on other views.