I have a Listview with several members and each member is composed of 5 items 

One of these 5 items is an Imageview called "delete\_item" which is there to delete the member it belongs to (if user long clicks on it) 

When the user long clicks on "delete\_item", I open a popup menu composed of 2 items so that the user select one of them:  

1 - trash Imageview  

2 - return Imageview

If the the user clicks on trash Imageview then that member is deleted and if the user clicks on the return item, nothing would happen but dismissing the dialog as following: 

`popupWindow.dismiss();` 

I have to pass Activity from Listview adapter to the popup class for inflation too: 

```
LayoutInflater inflater = (LayoutInflater) myActivity.getSystemService(LAYOUT_INFLATER_SERVICE);

```

Everything works fine but there are 2 questions as following: 

Question 1 - Is it a true action to send Activity as argument firstly to the custom adapter of the Listview and then for the second time to the popup class called from that adapter ? 

Question 2 - When the user clickes on trash Imageview and I delete the member, I re-intent the activity which the popup menu comes from, Is it a true action to intent the same activity which we are in ?