Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7192283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:54:31+00:00 2026-05-28T19:54:31+00:00

The code: final Time today = new Time(); today.setToNow(); OnDateChangedListener dateChangeListener = new OnDateChangedListener()

  • 0

The code:

    final Time today = new Time();
    today.setToNow();
    OnDateChangedListener dateChangeListener = new OnDateChangedListener() {

        public void onDateChanged(DatePicker view, int year, int monthOfYear,
                int dayOfMonth) {

            android.util.Log.i(TAG, "entered onDateChanged"); //TODO: 

        }
    };
    datePickerDataInicio.init(today.year, today.month, today.monthDay, dateChangeListener);

So, whenever I change the spinners from the day, month, or year, it seems not to be calling. What I missed?

Thanks!

EDIT!

Sorry guys, it was flaw of attention. I was just calling DatePicker.init() from another point of the code with null listener. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:54:32+00:00Added an answer on May 28, 2026 at 7:54 pm

    Try This code it is working..

    // Creating dialog
            @Override
            protected Dialog onCreateDialog(int id) {
             c = Calendar.getInstance();
            int cyear = c.get(Calendar.YEAR);
            int cmonth = c.get(Calendar.MONTH);
            int cday = c.get(Calendar.DAY_OF_MONTH);
            return new DatePickerDialog(this,  mDateSetListener,  cyear, cmonth, cday);
            }
    
        private DatePickerDialog.OnDateSetListener mDateSetListener = new DatePickerDialog.OnDateSetListener() {
        // onDateSet method
        public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
            Log.e("----------------", "D.O.B  "+monthOfYear+""+dayOfMonth+""+year);
            date_selected = String.valueOf(monthOfYear+1)+" /"+String.valueOf(dayOfMonth)+" /"+String.valueOf(year);
        }
        };
    

    call this method onClick of any button or text where

    DATE_DIALOG_ID=1;  
    showDialog(DATE_DIALOG_ID);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whi with this code public final String[] array_titoli_serie_prima = new String[]{ getResources().getString(R.string.titolo_p1), getResources().getString(R.string.titolo_p2), getResources().getString(R.string.titolo_p3),
This code is invalid: interface Foo { public void foo(final String string); } public
I have the following code: public void post(String message) { final String mess =
My code: import net.sf.json.JSONObject; import net.sf.json.JSONSerializer; ... public void testDateSerializer() { final Date date
I have the following Java code: final Future future = exeService.submit( new Runnable() {
I'm trying to make this code generic: public final Object unwrap(Class arg0) { throw
i put a drawable in a EditText with this code: final Drawable x =
I'm using jquery to build some html and the final code should look like
I have the following code: private static final Set<String> allowedParameters; static { Set<String> tmpSet
If you are familiar with TopCoder you know that your source-code gets a final

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.