Handling popup menu items click

I’ve implemented a popup menu to my android application. I’ve created a xml for popup menu and code also works fine. Now what i cant figure out is how to handle popup menu items click. I’ve tried …