Android: Put parameter on DatePickerDialog
<p>I have these methods to display <code>DatePickerDialog</code> on <code>CalendarUtils</code>:</p>

<pre><code> @Override
    protected Dialog onCreateDialog(int id) {
        switch (id) {
        case DATE_DIALOG_ID:
            return new DatePickerDialog(this, datePickerListener, year, month, day);
        }
        return null;
    }

    private final DatePickerDialog.OnDateSetListener datePickerListener = new DatePickerDialog.OnDateSetListener() {

        @Override public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {
            year = selectedYear;
            month = selectedMonth;
            day = selectedDay;

            textBirthdate.setText(new StringBuilder().append(day).append("-").append(month + 1).append("-").append(year).append(" "));
        }
    };
</code></pre>

<p>Usually, when I put these methods on the same Activity, I only need to call: <code>showDialog(DATE_DIALOG_ID)</code> to display the <code>DatePickerDialog</code>, the day, month, and year fields are on the same class, so I don't need to put extra paramters. But this time I put those methods inside a class separately and want to call them from another activity. How can I call the <code>DatePickerDialog</code> and put the parameters <code>day</code>, <code>month</code>, and <code>year</code> fon another activity?</p>
