Can't get an AlertDialog to work
问题 I have an onLongClickListener that resets some values when called. I would like to ad an alertDialog to check if the user really does want to reset all the values. However I am having no joy making it work. The reset section works fine on it's own but if I try to add the AlertDialog I get the following error: Multiple markers at this line - The constructor AlertDialog.Builder(new View.OnLongClickListener(){}) is undefined - Line breakpoint:SatFinder [line: 174] - onLongClick(View) What