Hi mohit,

I am new in android can you give me some guideline about android.
I want to create an application which takes backup of phone details..

plz give mi some hints how can I achieve this....

On Wed, Jan 18, 2012 at 12:18 AM, Mohit sharma <[email protected]> wrote:

> Hi ,
>
> I have 4 DatePicker Dialog in my Activity Class which are shown on
> click of 4 buttons . Now for these datePickerDialog i want to use same
> listener .
>
>        DatePickerDialog taxPickerDialog = new
>
> DatePickerDialog(getCurrentContext(),dateSetListener,calendar.get(Calendar.YEAR),
> calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE));
>        taxPickerDialog.show();
>
>        DatePickerDialog fcPickerDialog = new
>
> DatePickerDialog(getCurrentContext(),dateSetListener,calendar.get(Calendar.YEAR),
> calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE));
>        fcPickerDialog.show();
>        break;
>
>        DatePickerDialog expiryPickerDialog = new
>
> DatePickerDialog(getCurrentContext(),dateSetListener,calendar.get(Calendar.YEAR),
> calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE));
>        expiryPickerDialog.show();
>
>
>        DatePickerDialog permitPickerDialog = new
>
> DatePickerDialog(getCurrentContext(),dateSetListener,calendar.get(Calendar.YEAR),
> calendar.get(Calendar.MONTH),calendar.get(Calendar.DATE));
>        permitPickerDialog.show();
>
> Now i want a use listener for all the 4 dialog but dnot know how to
> implement this ???
>
> DatePickerDialog.OnDateSetListener dateSetListener =new
> DatePickerDialog.OnDateSetListener() {
>
>    @Override
>    public void onDateSet(DatePicker view, int year, int month, int
> day) {
>    switch(????){????}
> }
> };
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Reply via email to