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
Simply, if you are using or extending AppCompatDialogFragment() just override the
AppCompatDialogFragment()
override fun onCancel(dialog: DialogInterface) { super.onCancel(dialog) // write your own code }
That is it :)