title: Open a dialog from a custom adapter
body: <p>I have a custom adapter for a listview whose cells contain a delete button.
  I want to display a message "really delete this entry?" when delete is pressed.</p>
  
  <p>I handle the delete button event from the inside of the custom adapter, problem is that in order to create a dialog I need a reference to the current activity...how can I solve this?
  Just using the context leads me to a null pointer exception.</p>