i am using following example of date picker
http://developer.android.com/guide/tutorials/views/hello-datepicker.html
now i want to perform some functionality
The following code helped me solve an issue with the Cancel button not closing out the Date picker window. Thanks to eSilver for the solution.
dialog.setButton(DialogInterface.BUTTON_NEGATIVE, "Cancel", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int which) {
if (which == DialogInterface.BUTTON_NEGATIVE) {
datePickerPlugin.success(new PluginResult(PluginResult.Status.OK, ""), callBackId);
dateDialog.hide();
}
}
});