I have a popupwindow class, which is used to display a popupwindow by clicking a button on the MainActivity.
Now the popup window has basically a listview. THe onItemClick Handler is in the derived class of popupWindow.
My Question is how to trigger the dismiss of popupWIndow from onItemClickHandler of the derived class, so that the memory leak would not happen.