title: Android:DatePickerdialog with Cancel button
body: <p>I am working on <code>datepicker</code> dialog and one issue that i am facing is to have the cancel button on the picker(no cancel button for android jelly bean). now the problem is also with that my datepicker dialog is getting invoked on button(in <code>listview</code> adapter class) press.In adapter class i am using date_picker_id concept.. Any help would be really appreciated.</p>
  
  <pre><code>((Activity) LessonListViewAdapter.this.context).showDialog(DATE_DIALOG_ID);
  </code></pre>
  
  <p>This calls the createdialog function in <code>Activity</code>.</p>