Hai Nagu,
Refer this code snippet
dialog.setButton(DialogInterface.BUTTON_NEGATIVE,
getString(R.string.cancel), new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
               if (which == DialogInterface.BUTTON_NEGATIVE) {

                  dialog.dismiss();
                  onBackPressed();
               }
            }
          });

On Tue, Jul 10, 2012 at 1:22 PM, nageswara rao rajana <nagu.raj...@gmail.com
> wrote:

> Hi,
>
> How to implement "Cancel" button in DatePickerDialog ?
>
> thanking you,
> nagu.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to