So I have an onItemLongClickListener for a list view that gets a parameter \'int position\' passed in. Inside, I have an alertDialogBuilder which has two buttons. I have another
If you change position to final, then it should let you access it from within the onClick method.