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
Try this:
if (resultCode == RESULT_CANCELED) { Toast toast = Toast.makeText(this,"Datepicker Canceled", 10000); toast.show(); return; }